fix #2211:CAPS Lock don't work
This commit is contained in:
parent
3b60304d14
commit
dff5d55f50
@ -122,7 +122,10 @@ mod components {
|
||||
std::thread::spawn(move || {
|
||||
let func = move |event: Event| match event.event_type {
|
||||
EventType::KeyPress(key) | EventType::KeyRelease(key) => {
|
||||
// todo!: CAPSLOCK don't work
|
||||
// fix #2211:CAPS LOCK don't work
|
||||
if key == Key::CapsLock || key == Key::NumLock {
|
||||
return Some(event);
|
||||
}
|
||||
if KEYBOARD_HOOKED.load(Ordering::SeqCst) {
|
||||
keyboard::client::process_event(event);
|
||||
return None;
|
||||
|
Loading…
x
Reference in New Issue
Block a user