From 97a9be05817b9f3c312863954031215de993a1f4 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 7 Feb 2022 02:47:32 -0500 Subject: [PATCH] GUI: add move by one row keys --- src/gui/gui.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index a2f16b832..02c592b16 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -4924,10 +4924,18 @@ void FurnaceGUI::keyDown(SDL_Event& ev) { moveCursor(0,16,ev.key.keysym.mod&KMOD_SHIFT); break; case SDLK_HOME: - moveCursorTop(); + if (ev.key.keysym.mod&KMOD_SHIFT) { + moveCursor(0,-1,false); + } else { + moveCursorTop(); + } break; case SDLK_END: - moveCursorBottom(); + if (ev.key.keysym.mod&KMOD_SHIFT) { + moveCursor(0,1,false); + } else { + moveCursorBottom(); + } break; case SDLK_DELETE: doDelete();