Don't close the menu when you held control even for execute
This commit is contained in:
parent
d00a0060f0
commit
7cfaae8da9
2 changed files with 3 additions and 2 deletions
|
@ -206,7 +206,8 @@ static gboolean run_func(ObActionsData *data, gpointer options)
|
|||
|
||||
/* If there is a keyboard grab going on then we need to cancel
|
||||
it so the application can grab things */
|
||||
event_cancel_all_key_grabs();
|
||||
if (data->uact != OB_USER_ACTION_MENU_SELECTION)
|
||||
event_cancel_all_key_grabs();
|
||||
|
||||
e = NULL;
|
||||
if (!g_shell_parse_argv(cmd, NULL, &argv, &e)) {
|
||||
|
|
|
@ -1266,7 +1266,7 @@ void menu_entry_frame_execute(ObMenuEntryFrame *self, guint state)
|
|||
|
||||
/* release grabs before executing the shit */
|
||||
if (!(state & ControlMask)) {
|
||||
menu_frame_hide_all();
|
||||
event_cancel_all_key_grabs();
|
||||
frame = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue