summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-11-14 12:40:17 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-11-14 12:40:17 +0200
commitc9b1a0d3e42d27ec2786103ec3bc812a5d38da6c (patch)
tree5455f1354e4911d6a52a3ddfba2f405f48e0a1f8 /src/ui/util.c
parente093892eddf5481b310aac5d66b775d3e1c013cf (diff)
Navigating to parent directory or site root
Added keyboard shortcuts for navigating up to the parent directory and to the site root. Clicking the top banner also navigates to the site root. IssueID #29
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index ae3ddb18..bf044c03 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -92,6 +92,12 @@ void toString_Sym(int key, int kmods, iString *str) {
92 else if (key == SDLK_RIGHT) { 92 else if (key == SDLK_RIGHT) {
93 appendChar_String(str, 0x2192); 93 appendChar_String(str, 0x2192);
94 } 94 }
95 else if (key == SDLK_UP) {
96 appendChar_String(str, 0x2191);
97 }
98 else if (key == SDLK_DOWN) {
99 appendChar_String(str, 0x2193);
100 }
95 else if (key < 128 && (isalnum(key) || ispunct(key))) { 101 else if (key < 128 && (isalnum(key) || ispunct(key))) {
96 appendChar_String(str, upper_Char(key)); 102 appendChar_String(str, upper_Char(key));
97 } 103 }