summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authornicm <nicm>2021-06-10 07:24:10 +0000
committernicm <nicm>2021-06-10 07:24:10 +0000
commit64c276c23bd729c03c2a3ff00c6f9e6ac4c644c6 (patch)
tree7bbcf995a08bacc55c39bae16767684177fc7df5 /input.c
parent1ee231956ca9d1436e101350f4246abc1f157224 (diff)
Add an "always" value to the extended-keys option to always forward
these keys to applications inside tmux.
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input.c b/input.c
index f6aeb027..b599f27d 100644
--- a/input.c
+++ b/input.c
@@ -1390,6 +1390,8 @@ input_csi_dispatch(struct input_ctx *ictx)
case INPUT_CSI_MODSET:
n = input_get(ictx, 0, 0, 0);
m = input_get(ictx, 1, 0, 0);
+ if (options_get_number(global_options, "extended-keys") == 2)
+ break;
if (n == 0 || (n == 4 && m == 0))
screen_write_mode_clear(sctx, MODE_KEXTENDED);
else if (n == 4 && (m == 1 || m == 2))