mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
Added key mappings for [, ], , and \. (#3373)
Added key mappings for '[', ']', ',' and '\'. * Closes https://github.com/emilk/egui/issues/3372 ## Added keys * egui::Key::Backslash * egui::Key::OpenBracket * egui::Key::CloseBracket * egui::Key::Comma Co-authored-by: Mike Krüger <mkrueger@posteo.de>
This commit is contained in:
@@ -1066,6 +1066,10 @@ fn key_from_key_code(key: winit::keyboard::KeyCode) -> Option<egui::Key> {
|
||||
KeyCode::Period => Key::Period,
|
||||
// KeyCode::Colon => Key::Colon, // NOTE: there is no physical colon key on an american keyboard
|
||||
KeyCode::Semicolon => Key::Semicolon,
|
||||
KeyCode::Backslash => Key::Backslash,
|
||||
KeyCode::BracketLeft => Key::OpenBracket,
|
||||
KeyCode::BracketRight => Key::CloseBracket,
|
||||
KeyCode::Backquote => Key::Backtick,
|
||||
|
||||
KeyCode::Cut => Key::Cut,
|
||||
KeyCode::Copy => Key::Copy,
|
||||
|
||||
Reference in New Issue
Block a user