1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 23:21:08 +03:00

don't swallow things like ctrl+

This commit is contained in:
Wez Furlong 2019-11-02 13:42:10 -07:00
parent 2120b1e2ee
commit f88fed9dfb

View File

@ -955,7 +955,9 @@ unsafe fn key(hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option<L
// here because it will be a duplicate of the WM_CHAR or WM_IME_CHAR
// message that we're going to receive as well
match key {
Some(KeyCode::Char(_)) => None,
Some(KeyCode::Char(_)) if modifiers.is_empty() || modifiers == Modifiers::SHIFT => {
None
}
key @ _ => key,
}
};