From e7edc39b34c9cf6f38fb4b30dc6e573fb4cc7224 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 9 Oct 2016 10:57:25 +0000 Subject: [PATCH] Alias the "=" key to "+" key. --- src/mouse.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mouse.cpp b/src/mouse.cpp index ebd3b757..c6f2178e 100644 --- a/src/mouse.cpp +++ b/src/mouse.cpp @@ -1379,6 +1379,13 @@ bool GraphicsWindow::KeyDown(int c) { // Treat backspace identically to escape. MenuEdit(Command::UNSELECT_ALL); return true; + } else if(c == '=') { + // Treat = as +. This is specific to US (and US-compatible) keyboard layouts, + // but makes zooming from keyboard much more usable on these. + // Ideally we'd have a platform-independent way of binding to a particular + // physical key regardless of shift status... + MenuView(Command::ZOOM_IN); + return true; } return false;