Fullscreen only when pressing F11
Make F11 only go fullscreen when no other modifier such as shift/ctrl is pressed.
This commit is contained in:
parent
470631b0b7
commit
5ae8b0f383
|
@ -809,7 +809,7 @@ gboolean window_state_cb(GtkWindow *, GdkEventWindowState *event, keybind_info *
|
|||
gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info) {
|
||||
const guint modifiers = event->state & gtk_accelerator_get_default_mod_mask();
|
||||
|
||||
if (info->config.fullscreen && event->keyval == GDK_KEY_F11) {
|
||||
if (info->config.fullscreen && event->keyval == GDK_KEY_F11 && !modifiers) {
|
||||
info->fullscreen_toggle(info->window);
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue