Skip to content

Commit

Permalink
Merge pull request thestinger#375 from ixjlyons/consume-f11-keypress
Browse files Browse the repository at this point in the history
Consume F11 key press event.
  • Loading branch information
thestinger authored Jul 5, 2016
2 parents 3170adf + fa1c0d7 commit ee16ae0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion termite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ee16ae0

Please sign in to comment.