Make directional key scrolling default on
This commit is contained in:
@@ -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
|
||||
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);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
cLedGroup& keyshiftOptions = dynamic_cast<cLedGroup&>(prefsDlog["keyshift-options"]);
|
||||
if(get_bool_pref("DirectionalKeyScrolling", false)){
|
||||
if(get_bool_pref("DirectionalKeyScrolling", true)){
|
||||
keyshiftOptions.setSelected("screen-shift");
|
||||
}else{
|
||||
keyshiftOptions.setSelected("target-adjacent");
|
||||
@@ -1794,6 +1794,9 @@ class cChooseScenario {
|
||||
flagPic.setPict(71); // flowers
|
||||
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();
|
||||
++j;
|
||||
|
||||
Reference in New Issue
Block a user