Skip to content

Commit

Permalink
Fix Linux CtrlPageUp/Down
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandavis18 committed Aug 16, 2024
1 parent 3c09884 commit 1b86deb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Input/Input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,12 @@ KeyAction _getch()
}
}
case '3': return KeyAction::CtrlDelete;
case '5': return KeyAction::CtrlPageUp;
case '6': return KeyAction::CtrlPageDown;
case '5':
if (read(fileno(stdin), seq, 2) < 2) return KeyAction::Esc;
return KeyAction::CtrlPageUp;
case '6':
if (read(fileno(stdin), seq, 2) < 2) return KeyAction::Esc;
return KeyAction::CtrlPageDown;
}
}
}
Expand Down

0 comments on commit 1b86deb

Please sign in to comment.