From 26af7f2192fc8125d40c99d24b24f2517b43fc09 Mon Sep 17 00:00:00 2001 From: Lexxie9952 <32187224+Lexxie9952@users.noreply.github.com> Date: Mon, 25 Mar 2024 00:15:39 -0700 Subject: [PATCH] Fix down arrow (numpad 2) key --- freeciv-web/src/main/webapp/javascript/control.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freeciv-web/src/main/webapp/javascript/control.js b/freeciv-web/src/main/webapp/javascript/control.js index ac1efb96f..7b9885334 100644 --- a/freeciv-web/src/main/webapp/javascript/control.js +++ b/freeciv-web/src/main/webapp/javascript/control.js @@ -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); }