Make Shift+directional keys do opposite

This commit is contained in:
2025-01-20 15:12:24 -06:00
parent ead987fff7
commit 98f8cf9abe
2 changed files with 4 additions and 3 deletions

View File

@@ -1299,7 +1299,7 @@ void screen_shift(int dx, int dy, bool& need_redraw) {
// If configured to move the screen with arrow keys, do it and return true
bool handle_screen_shift(location delta, bool& need_redraw) {
if(scrollableModes.count(overall_mode) && get_bool_pref("DirectionalKeyScrolling", false)){
if(scrollableModes.count(overall_mode) && get_bool_pref("DirectionalKeyScrolling", false) != kb.isShiftPressed()){
screen_shift(delta.x, delta.y, need_redraw);
return true;
}