Alias the "=" key to "+" key.

pull/33/merge
whitequark 2016-10-09 10:57:25 +00:00
parent ffd9c6241a
commit e7edc39b34
1 changed files with 7 additions and 0 deletions

View File

@ -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;