Skip to content

Commit

Permalink
default to legacy directional key behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios committed Jan 20, 2025
1 parent 2681a28 commit ead987f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/boe.actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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", true)){
if(scrollableModes.count(overall_mode) && get_bool_pref("DirectionalKeyScrolling", false)){
screen_shift(delta.x, delta.y, need_redraw);
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/game/boe.dlgutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ void pick_preferences(bool record) {
}

cLedGroup& keyshiftOptions = dynamic_cast<cLedGroup&>(prefsDlog["keyshift-options"]);
if(get_bool_pref("DirectionalKeyScrolling", true)){
if(get_bool_pref("DirectionalKeyScrolling", false)){
keyshiftOptions.setSelected("screen-shift");
}else{
keyshiftOptions.setSelected("target-adjacent");
Expand Down

0 comments on commit ead987f

Please sign in to comment.