Add additional key bindings for changing font size

This fixes #2010.
This commit is contained in:
Aaron Goodfellow 2019-03-15 16:41:48 -04:00 committed by Christian Duerr
parent 94cf97b42d
commit e2eb5bbd2e
3 changed files with 7 additions and 0 deletions

View File

@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support for alternate keyboard layouts on macOS
- Slow startup time on some X11 systems
- The AltGr key no longer sends escapes (like Alt)
- Fixes increase/decrease font-size keybindings on international keyboards
## Version 0.2.9

View File

@ -466,11 +466,14 @@ key_bindings:
#- { key: Insert, mods: Shift, action: PasteSelection }
#- { key: Key0, mods: Control, action: ResetFontSize }
#- { key: Equals, mods: Control, action: IncreaseFontSize }
#- { key: Add, mods: Control, action: IncreaseFontSize }
#- { key: Subtract, mods: Control, action: DecreaseFontSize }
#- { key: Minus, mods: Control, action: DecreaseFontSize }
# (macOS only)
#- { key: Key0, mods: Command, action: ResetFontSize }
#- { key: Equals, mods: Command, action: IncreaseFontSize }
#- { key: Add, mods: Command, action: IncreaseFontSize }
#- { key: Minus, mods: Command, action: DecreaseFontSize }
#- { key: K, mods: Command, action: ClearHistory }
#- { key: K, mods: Command, chars: "\x0c" }

View File

@ -186,7 +186,9 @@ pub fn platform_key_bindings() -> Vec<KeyBinding> {
Key::Insert, [shift: true]; Action::PasteSelection;
Key::Key0, [ctrl: true]; Action::ResetFontSize;
Key::Equals, [ctrl: true]; Action::IncreaseFontSize;
Key::Add, [ctrl: true]; Action::IncreaseFontSize;
Key::Subtract, [ctrl: true]; Action::DecreaseFontSize;
Key::Minus, [ctrl: true]; Action::DecreaseFontSize;
)
}
@ -196,6 +198,7 @@ pub fn platform_key_bindings() -> Vec<KeyBinding> {
KeyBinding;
Key::Key0, [logo: true]; Action::ResetFontSize;
Key::Equals, [logo: true]; Action::IncreaseFontSize;
Key::Add, [logo: true]; Action::IncreaseFontSize;
Key::Minus, [logo: true]; Action::DecreaseFontSize;
Key::K, [logo: true]; Action::ClearHistory;
Key::K, [logo: true]; Action::Esc("\x0c".into());