fix: don't overwrite shifted keycode with alternate text
This commit is contained in:
parent
3b24cd11a2
commit
1298ba3195
1 changed files with 1 additions and 5 deletions
|
|
@ -119,7 +119,7 @@ pub const KeyEvent = struct {
|
|||
pub fn from_message(
|
||||
event_: Event,
|
||||
keypress_: Key,
|
||||
keypress_shifted_: Key,
|
||||
keypress_shifted: Key,
|
||||
text: []const u8,
|
||||
modifiers: Mods,
|
||||
) @This() {
|
||||
|
|
@ -131,10 +131,6 @@ pub const KeyEvent = struct {
|
|||
else => modifiers,
|
||||
};
|
||||
|
||||
var keypress_shifted: Key = keypress_shifted_;
|
||||
if (text.len > 0) blk: {
|
||||
keypress_shifted = tryUtf8Decode(text) catch break :blk;
|
||||
}
|
||||
const keypress, const mods = if (keypress_shifted == keypress_)
|
||||
map_key_to_unshifed_legacy(keypress_shifted, mods_)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue