Skip to content

Commit 556cdd5

Browse files
committed
Fix the 'layout' example.
You now get the LShift keycode when shift is press, rather than nothing.
1 parent a38286b commit 556cdd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn main() {
2929
code: KeyCode::LShift,
3030
state: KeyState::Down,
3131
});
32-
assert_eq!(None, decoded_key);
32+
assert_eq!(Some(DecodedKey::RawKey(KeyCode::LShift)), decoded_key);
3333

3434
// User presses 'A' on their UK keyboard, now gets a Capital A
3535
let decoded_key = decoder.process_keyevent(KeyEvent {

0 commit comments

Comments
 (0)