Skip to content

Commit

Permalink
bug fix on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
callmeclover committed May 30, 2024
1 parent d02ae7c commit bef4ffa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,24 +117,27 @@ pub static MODIFIER_KEYS: &[(Key, usize)] = &[
pub static SPECIAL_KEYS: &[(Key, usize)] = &[
(Key::Backspace, 1),
(Key::Meta, 1),
#[cfg(any(target_os = "windows", all(unix, not(target_os = "macos"))))]
(Key::Clear, 1),
(Key::Delete, 1),
(Key::End, 1),
(Key::CapsLock, 1),
(Key::Escape, 1),
#[cfg(any(target_os = "windows", all(unix, not(target_os = "macos"))))]
(Key::Execute, 1),
(Key::Help, 1),
(Key::Home, 1),
#[cfg(any(target_os = "windows", all(unix, not(target_os = "macos"))))]
(Key::Insert, 1),
(Key::PageDown, 1),
(Key::PageUp, 1),
(Key::Return, 1),
(Key::Space, 1),
(Key::Tab, 1),
(Key::UpArrow, 1),
(Key::DownArrow, 1),
(Key::LeftArrow, 1),
(Key::RightArrow, 1),
(Key::UpArrow, 2),
(Key::DownArrow, 2),
(Key::LeftArrow, 2),
(Key::RightArrow, 2),
#[cfg(target_os = "windows")]
(Key::Numlock, 1),
#[cfg(target_os = "windows")]
Expand Down

0 comments on commit bef4ffa

Please sign in to comment.