Merge pull request #375 from ixjlyons/consume-f11-keypress

Consume F11 key press event.
This commit is contained in:
Daniel Micay 2016-07-05 12:57:01 -04:00 committed by GitHub
commit ee16ae0e5f
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) { gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info) {
const guint modifiers = event->state & gtk_accelerator_get_default_mod_mask(); 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); info->fullscreen_toggle(info->window);
return TRUE;
}
if (info->select.mode != vi_mode::insert) { if (info->select.mode != vi_mode::insert) {
if (modifiers == GDK_CONTROL_MASK) { if (modifiers == GDK_CONTROL_MASK) {