GUI: add move by one row keys

This commit is contained in:
tildearrow 2022-02-07 02:47:32 -05:00
parent 1bb81394aa
commit 97a9be0581

View file

@ -4924,10 +4924,18 @@ void FurnaceGUI::keyDown(SDL_Event& ev) {
moveCursor(0,16,ev.key.keysym.mod&KMOD_SHIFT); moveCursor(0,16,ev.key.keysym.mod&KMOD_SHIFT);
break; break;
case SDLK_HOME: case SDLK_HOME:
if (ev.key.keysym.mod&KMOD_SHIFT) {
moveCursor(0,-1,false);
} else {
moveCursorTop(); moveCursorTop();
}
break; break;
case SDLK_END: case SDLK_END:
if (ev.key.keysym.mod&KMOD_SHIFT) {
moveCursor(0,1,false);
} else {
moveCursorBottom(); moveCursorBottom();
}
break; break;
case SDLK_DELETE: case SDLK_DELETE:
doDelete(); doDelete();