mirror of
https://github.com/tmux/tmux.git
synced 2026-10-13 14:24:28 +00:00
Ignore focus events earlier to avoid them interfering with prefix,
GitHub issue 5539.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: server-client.c,v 1.508 2026/08/25 06:14:16 nicm Exp $ */
|
/* $OpenBSD: server-client.c,v 1.509 2026/08/28 07:36:01 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
|
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||||
@@ -1504,6 +1504,10 @@ server_client_key_callback(struct cmdq_item *item, void *data)
|
|||||||
TAILQ_EMPTY(&wp->modes))
|
TAILQ_EMPTY(&wp->modes))
|
||||||
goto forward_key;
|
goto forward_key;
|
||||||
|
|
||||||
|
/* Focus events are not keys and cannot be bound. */
|
||||||
|
if (key == KEYC_FOCUS_IN || key == KEYC_FOCUS_OUT)
|
||||||
|
goto forward_key;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Work out the current key table. If the pane is in a mode, use
|
* Work out the current key table. If the pane is in a mode, use
|
||||||
* the mode table instead of the default key table.
|
* the mode table instead of the default key table.
|
||||||
|
|||||||
Reference in New Issue
Block a user