mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-29 02:51:24 +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);
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue