diff options
author | Kam Kudla <kam@kam.codes> | 2021-04-08 14:01:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 21:01:47 +0000 |
commit | 40bcdb11335cc49d4d42694b953be746cb383cb9 (patch) | |
tree | 7f82911227a6e6e6269e1ab3e632e2ac86a14032 /alacritty/src/config/bindings.rs | |
parent | 78953e4f7e89d0e90b8e1981bf76b03df16eded3 (diff) | |
download | r-alacritty-40bcdb11335cc49d4d42694b953be746cb383cb9.tar.gz r-alacritty-40bcdb11335cc49d4d42694b953be746cb383cb9.tar.bz2 r-alacritty-40bcdb11335cc49d4d42694b953be746cb383cb9.zip |
Add hide other windows binding on macOS
Fixes #3697.
Diffstat (limited to 'alacritty/src/config/bindings.rs')
-rw-r--r-- | alacritty/src/config/bindings.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs index 732875db..91cc09d6 100644 --- a/alacritty/src/config/bindings.rs +++ b/alacritty/src/config/bindings.rs @@ -161,6 +161,10 @@ pub enum Action { /// Hide the Alacritty window. Hide, + /// Hide all windows other than Alacritty on macOS. + #[cfg(target_os = "macos")] + HideOtherApplications, + /// Minimize the Alacritty window. Minimize, @@ -685,6 +689,7 @@ pub fn platform_key_bindings() -> Vec<KeyBinding> { C, ModifiersState::LOGO; Action::Copy; C, ModifiersState::LOGO, +BindingMode::VI, ~BindingMode::SEARCH; Action::ClearSelection; H, ModifiersState::LOGO; Action::Hide; + H, ModifiersState::LOGO | ModifiersState::ALT; Action::HideOtherApplications; M, ModifiersState::LOGO; Action::Minimize; Q, ModifiersState::LOGO; Action::Quit; W, ModifiersState::LOGO; Action::Quit; |