input: legacy encoding never emits sequence during dead key state

This commit is contained in:
Mitchell Hashimoto
2023-08-16 10:14:43 -07:00
parent 9b90692fc7
commit aadb78394b

View File

@ -36,6 +36,9 @@ pub fn legacy(
if (self.event.action != .press and
self.event.action != .repeat) return "";
// If we're in a dead key state then we never emit a sequence.
if (self.event.composing) return "";
// If we match a PC style function key then that is our result.
if (pcStyleFunctionKey(
self.event.key,