don't swallow things like ctrl+

This commit is contained in:
Wez Furlong committed 2019-11-02 13:42:10 -07:00
1 parent 2120b1e2ee
commit f88fed9dfb
1 file changed
+3 -1
+3 -1
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,
}
};