aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Goodfellow <amgoodfellow@oakland.edu>2019-03-15 16:41:48 -0400
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-03-15 20:41:48 +0000
commite2eb5bbd2e564710d35d06f04789486b227ffeb8 (patch)
tree3bbaab6454cb823659ab2acb8df25f86d815f938
parent94cf97b42d9835976bc99463fc4e96330ceb0068 (diff)
downloadr-alacritty-e2eb5bbd2e564710d35d06f04789486b227ffeb8.tar.gz
r-alacritty-e2eb5bbd2e564710d35d06f04789486b227ffeb8.tar.bz2
r-alacritty-e2eb5bbd2e564710d35d06f04789486b227ffeb8.zip
Add additional key bindings for changing font size
This fixes #2010.
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty.yml3
-rw-r--r--src/config/bindings.rs3
3 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 67535e3f..f832462c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/alacritty.yml b/alacritty.yml
index 69268885..b35867c2 100644
--- a/alacritty.yml
+++ b/alacritty.yml
@@ -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" }
diff --git a/src/config/bindings.rs b/src/config/bindings.rs
index 410b6804..3e76acc1 100644
--- a/src/config/bindings.rs
+++ b/src/config/bindings.rs
@@ -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());