Prevented ctrl+alt from triggering a spurious hotkey.

This commit is contained in:
Guillaume Melquiond 2010-03-22 16:04:03 +00:00
parent a326d16696
commit acee49a420

View file

@ -525,7 +525,7 @@ hotkey_item& get_hotkey(int character, int keycode, bool shift, bool ctrl,
<< "\n";
// Sometimes control modifies by -64, ie ^A == 1.
if (character < 64 && ctrl) {
if (0 < character && character < 64 && ctrl) {
if (shift)
character += 64;
else