fix: remove named space
This commit is contained in:
parent
02149769ec
commit
ac24bbe80d
3 changed files with 4 additions and 6 deletions
|
|
@ -186,8 +186,6 @@ pub enum Named {
|
|||
Enter,
|
||||
/// The Horizontal Tabulation `Tab` key.
|
||||
Tab,
|
||||
/// Used in text to insert a space between words. Usually located below the character keys.
|
||||
Space,
|
||||
/// Navigate or traverse downward. (`KEYCODE_DPAD_DOWN`)
|
||||
ArrowDown,
|
||||
/// Navigate or traverse leftward. (`KEYCODE_DPAD_LEFT`)
|
||||
|
|
@ -991,6 +989,8 @@ pub enum Code {
|
|||
ShiftLeft,
|
||||
/// <kbd>Shift</kbd> or <kbd>⇧</kbd>
|
||||
ShiftRight,
|
||||
/// <kbd> </kbd> (space)
|
||||
Space,
|
||||
/// <kbd>Tab</kbd> or <kbd>⇥</kbd>
|
||||
Tab,
|
||||
/// Japanese: <kbd>変</kbd> (henkan)
|
||||
|
|
|
|||
|
|
@ -124,8 +124,8 @@ impl SubsurfaceApp {
|
|||
key,
|
||||
..
|
||||
}) => match key {
|
||||
iced::keyboard::Key::Named(
|
||||
iced::keyboard::key::Named::Space,
|
||||
iced::keyboard::Key::Character(
|
||||
" ".into()
|
||||
) => Some(Message::Toggle),
|
||||
_ => None,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -993,8 +993,6 @@ pub fn key_to_keysym(
|
|||
(Named::ExSel, _) => keysyms::_3270_ExSelect,
|
||||
(Named::CrSel, _) => keysyms::_3270_CursorSelect,
|
||||
|
||||
(Named::Space, _) => keysyms::space,
|
||||
|
||||
// XF86 multimedia / internet / power keys (subset shown)
|
||||
(Named::BrightnessUp, _) => keysyms::XF86_MonBrightnessUp,
|
||||
(Named::BrightnessDown, _) => keysyms::XF86_MonBrightnessDown,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue