mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 01:35:07 +00:00
GUI: add move by one row keys
This commit is contained in:
parent
1bb81394aa
commit
97a9be0581
1 changed files with 10 additions and 2 deletions
|
@ -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:
|
||||||
moveCursorTop();
|
if (ev.key.keysym.mod&KMOD_SHIFT) {
|
||||||
|
moveCursor(0,-1,false);
|
||||||
|
} else {
|
||||||
|
moveCursorTop();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case SDLK_END:
|
case SDLK_END:
|
||||||
moveCursorBottom();
|
if (ev.key.keysym.mod&KMOD_SHIFT) {
|
||||||
|
moveCursor(0,1,false);
|
||||||
|
} else {
|
||||||
|
moveCursorBottom();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case SDLK_DELETE:
|
case SDLK_DELETE:
|
||||||
doDelete();
|
doDelete();
|
||||||
|
|
Loading…
Reference in a new issue