Skip to content

Commit a06656a

Browse files
committed
fix(ie-shell): fix Ctrl+Shift keybindings for tab list and bookmarks overlays #78
With Shift held, winit reports uppercase characters (T, B) instead of lowercase. Match both cases so Ctrl+Shift+T (ShowTabList) and Ctrl+Shift+B (ShowBookmarks) work on all platforms. Also fix Ctrl+L/W/D/Q to accept uppercase variants.
1 parent e87304d commit a06656a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

crates/ie-shell/src/keybindings.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ fn resolve_key(key: &Key, modifiers: &ModifiersState) -> Option<Action> {
3636
Key::Named(NamedKey::ArrowLeft) if alt => Some(Action::GoBack),
3737
Key::Named(NamedKey::ArrowRight) if alt => Some(Action::GoForward),
3838
Key::Character(c) if ctrl => match c.as_str() {
39-
"l" => Some(Action::ShowAddressBar),
39+
"l" | "L" => Some(Action::ShowAddressBar),
40+
"T" => Some(Action::ShowTabList),
4041
"t" if shift => Some(Action::ShowTabList),
4142
"t" => Some(Action::NewTab),
42-
"w" => Some(Action::CloseTab),
43-
"d" => Some(Action::BookmarkCurrentPage),
43+
"W" | "w" => Some(Action::CloseTab),
44+
"D" | "d" => Some(Action::BookmarkCurrentPage),
45+
"B" => Some(Action::ShowBookmarks),
4446
"b" if shift => Some(Action::ShowBookmarks),
45-
"q" => Some(Action::Quit),
47+
"Q" | "q" => Some(Action::Quit),
4648
_ => None,
4749
},
4850
_ => None,

0 commit comments

Comments
 (0)