Make directional key scrolling default on

This commit is contained in:
2025-09-01 10:40:47 -05:00
parent c023c0c424
commit b638bf3d4e
2 changed files with 5 additions and 2 deletions

View File

@@ -1483,7 +1483,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 // If configured to move the screen with arrow keys, do it and return true
bool handle_screen_shift(location delta, bool& need_redraw) { bool handle_screen_shift(location delta, bool& need_redraw) {
if(scrollableModes.count(overall_mode) && get_bool_pref("DirectionalKeyScrolling", false) != kb.isShiftPressed()){ if(scrollableModes.count(overall_mode) && get_bool_pref("DirectionalKeyScrolling", true) != kb.isShiftPressed()){
screen_shift(delta.x, delta.y, need_redraw); screen_shift(delta.x, delta.y, need_redraw);
return true; return true;
} }

View File

@@ -1530,7 +1530,7 @@ void pick_preferences(bool record, cDialog* parent) {
dynamic_cast<cLed&>(prefsDlog["target-lock"]).setState(get_bool_pref("TargetLock", true) ? led_red : led_off); dynamic_cast<cLed&>(prefsDlog["target-lock"]).setState(get_bool_pref("TargetLock", true) ? led_red : led_off);
cLedGroup& keyshiftOptions = dynamic_cast<cLedGroup&>(prefsDlog["keyshift-options"]); cLedGroup& keyshiftOptions = dynamic_cast<cLedGroup&>(prefsDlog["keyshift-options"]);
if(get_bool_pref("DirectionalKeyScrolling", false)){ if(get_bool_pref("DirectionalKeyScrolling", true)){
keyshiftOptions.setSelected("screen-shift"); keyshiftOptions.setSelected("screen-shift");
}else{ }else{
keyshiftOptions.setSelected("target-adjacent"); keyshiftOptions.setSelected("target-adjacent");
@@ -1794,6 +1794,9 @@ class cChooseScenario {
flagPic.setPict(71); // flowers flagPic.setPict(71); // flowers
flagPic.setTooltipText("OpenBoE is known to be compatible with this scenario!"); flagPic.setTooltipText("OpenBoE is known to be compatible with this scenario!");
} }
}else if(pair.first == "series"){
flagPic.setPict(119); // book
flagPic.setTooltipText(pair.second); // series and number
} }
flagPic.recalcRect(); flagPic.recalcRect();
++j; ++j;