Also cancel 'k' search when hotkeys (F1 - Shift-F8) are pressed

develop
lethosor 2021-01-29 00:28:32 -05:00
parent 865484f678
commit 4fbd763c1a
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 3 additions and 1 deletions

@ -1956,7 +1956,9 @@ public:
end_entry_mode();
return false;
}
if (cursor_key_pressed(input, in_entry_mode()))
bool hotkey_pressed =
input->lower_bound(interface_key::D_HOTKEY1) != input->upper_bound(interface_key::D_HOTKEY16);
if (cursor_key_pressed(input, in_entry_mode()) || hotkey_pressed)
{
end_entry_mode();
clear_search();