Clear implied Meta when discarding BackTab modifiers, GitHub issue 5730

from Joan Fabrégat.
This commit is contained in:
nicm
2026-10-12 09:37:07 +00:00
committed by tmux update bot
parent ef52b9e1cb
commit 8ba04e721c

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: input-keys.c,v 1.114 2026/06/15 21:47:01 nicm Exp $ */
/* $OpenBSD: input-keys.c,v 1.115 2026/10/12 09:37:07 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -621,7 +621,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
key = '\011' | (key & ~KEYC_MASK_KEY) | KEYC_SHIFT;
} else {
/* Otherwise clear modifiers. */
key &= ~KEYC_MASK_MODIFIERS;
key &= ~(KEYC_MASK_MODIFIERS|KEYC_IMPLIED_META);
}
}