mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-26 20:24:20 +03:00
Don't get dialog hotkey from disabled widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
65d9697d69
commit
dc3d161e71
@ -448,7 +448,7 @@ dlg_try_hotkey (Dlg_head * h, int d_key)
|
||||
{
|
||||
current = (Widget *) hot_cur->data;
|
||||
|
||||
if ((current->options & W_WANT_HOTKEY) != 0)
|
||||
if ((current->options & W_WANT_HOTKEY) != 0 && (current->options & W_DISABLED) == 0)
|
||||
handled = send_message (current, WIDGET_HOTKEY, d_key);
|
||||
|
||||
if (handled == MSG_NOT_HANDLED)
|
||||
|
Loading…
x
Reference in New Issue
Block a user