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);
break;
case SDLK_HOME:
if (ev.key.keysym.mod&KMOD_SHIFT) {
moveCursor(0,-1,false);
} else {
moveCursorTop();
}
break;
case SDLK_END:
if (ev.key.keysym.mod&KMOD_SHIFT) {
moveCursor(0,1,false);
} else {
moveCursorBottom();
}
break;
case SDLK_DELETE:
doDelete();