Skip to content

Commit

Permalink
Fix down arrow (numpad 2) key
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexxie9952 committed Mar 25, 2024
1 parent 51606d7 commit 26af7f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion freeciv-web/src/main/webapp/javascript/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -4265,8 +4265,10 @@ function map_handle_key(keyboard_key, key_code, ctrl, alt, shift, the_event)
}

}
// if alt not pressed then ignore , key
if ((key_code==188) && (!alt || (shift || ctrl))) break; // alt , is a virtual numpad arrow
// alt , key
else if (key_code==188 && alt && !shift && !ctrl) { // alt , is a virtual numpad arrow
else { // alt , is a virtual numpad arrow
the_event.preventDefault(); // override possible browser shortcut
key_unit_move(DIR8_SOUTHEAST);
}
Expand Down

0 comments on commit 26af7f2

Please sign in to comment.