mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
By default, WOP_WANT_HOTKEY option is off.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
d44220c75f
commit
2dab74fddd
@ -138,7 +138,6 @@ gauge_new (int y, int x, int cols, gboolean shown, int max, int current)
|
||||
g = g_new (WGauge, 1);
|
||||
w = WIDGET (g);
|
||||
widget_init (w, y, x, 1, cols, gauge_callback, NULL);
|
||||
widget_want_hotkey (w, FALSE);
|
||||
|
||||
g->shown = shown;
|
||||
if (max == 0)
|
||||
|
@ -106,7 +106,6 @@ groupbox_new (int y, int x, int height, int width, const char *title)
|
||||
g = g_new (WGroupbox, 1);
|
||||
w = WIDGET (g);
|
||||
widget_init (w, y, x, height, width, groupbox_callback, NULL);
|
||||
widget_want_hotkey (w, FALSE);
|
||||
|
||||
g->title = NULL;
|
||||
groupbox_set_title (g, title);
|
||||
|
@ -136,7 +136,6 @@ hline_new (int y, int x, int width)
|
||||
l->text = NULL;
|
||||
l->auto_adjust_cols = (width < 0);
|
||||
l->transparent = FALSE;
|
||||
widget_want_hotkey (w, FALSE);
|
||||
|
||||
return l;
|
||||
}
|
||||
|
@ -147,7 +147,6 @@ label_new (int y, int x, const char *text)
|
||||
l->text = g_strdup (text);
|
||||
l->auto_adjust_cols = TRUE;
|
||||
l->transparent = FALSE;
|
||||
widget_want_hotkey (w, FALSE);
|
||||
|
||||
return l;
|
||||
}
|
||||
|
@ -307,7 +307,7 @@ menubar_finish (WMenuBar * menubar)
|
||||
menubar->is_dropped = FALSE;
|
||||
menubar->is_active = FALSE;
|
||||
w->lines = 1;
|
||||
widget_want_hotkey (w, 0);
|
||||
widget_want_hotkey (w, FALSE);
|
||||
|
||||
/* Move the menubar to the bottom so that widgets displayed on top of
|
||||
* an "invisible" menubar get the first chance to respond to mouse events. */
|
||||
@ -588,7 +588,7 @@ menubar_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void
|
||||
w->lines = LINES;
|
||||
|
||||
/* Trick to get all of the hotkeys */
|
||||
widget_want_hotkey (w, 1);
|
||||
widget_want_hotkey (w, TRUE);
|
||||
menubar_draw (menubar);
|
||||
return MSG_HANDLED;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user