Consume F11 key press event.

This commit is contained in:
Kenneth Lyons 2016-06-16 17:38:22 -07:00
parent 3170adffa7
commit fa1c0d7266
1 changed files with 3 additions and 1 deletions

View File

@ -766,8 +766,10 @@ 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) {
info->fullscreen_toggle(info->window);
return TRUE;
}
if (info->select.mode != vi_mode::insert) {
if (modifiers == GDK_CONTROL_MASK) {