diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2015-11-06 18:56:34 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2015-11-06 20:17:39 +0000 |
commit | f5231d3e7d93830920b785dca4c770939ff8a138 (patch) | |
tree | e4ab069927459e9b19c403a0a8c709b3c05807c6 | |
parent | d2db32a1fc2518852c4c3045d3c70dd22842d70a (diff) | |
download | imv-f5231d3e7d93830920b785dca4c770939ff8a138.tar.gz |
Add [,] and +,- shortcuts
-rw-r--r-- | main.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -103,7 +103,7 @@ void remove_current_path() struct loop_item_s* cur = g_path.cur; cur->next->prev = cur->prev; cur->prev->next = cur->next; - if(g_path.dir > 0) { + if(g_path.dir < 0) { g_path.cur = cur->prev; } else { g_path.cur = cur->next; @@ -209,10 +209,14 @@ int main(int argc, char** argv) case SDL_KEYDOWN: switch (e.key.keysym.sym) { case SDLK_q: quit = 1; break; - case SDLK_RIGHT: prev_path(); break; - case SDLK_LEFT: next_path(); break; + case SDLK_LEFTBRACKET: + case SDLK_LEFT: prev_path(); break; + case SDLK_RIGHTBRACKET: + case SDLK_RIGHT: next_path(); break; + case SDLK_EQUALS: case SDLK_i: case SDLK_UP: zoom_view(1); break; + case SDLK_MINUS: case SDLK_o: case SDLK_DOWN: zoom_view(-1); break; case SDLK_r: reset_view(); break; |