diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2023-01-09 22:23:50 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2023-01-17 22:33:32 +0100 |
commit | 344c0c6e5ebd62b4e89c9c4fbc7e6dbdd09b0647 (patch) | |
tree | 7a79a3e8c1356e4f5c590ae89ff55c28711ba41d /src | |
parent | 1c4e10e94ee8b993e45039fadcde4b4292928106 (diff) | |
download | gnome-maps-344c0c6e5ebd62b4e89c9c4fbc7e6dbdd09b0647.tar.gz |
mainWindow: Remove shortcuts for using bare +,=, and - for zooming
Supporting these (without modifier) causes issues when trying to type
in e.g. a place name containing a - in a place name in the search entry.
We used to have some workaround in the GTK 3 days, overriding the key-pressed
signal and filtering depending on the widget the event originated from to
support typing these characters into a search entry without triggering the
shortcut.
But this is not working anymore, and it seems to not be worth the effort
of trying to actually support this.
So we're probably better off dropping these. Can still support num pad
"add" and "subtract" keys still for zooming.
Diffstat (limited to 'src')
-rw-r--r-- | src/mainWindow.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainWindow.js b/src/mainWindow.js index a3b6d7dd..4506b1d2 100644 --- a/src/mainWindow.js +++ b/src/mainWindow.js @@ -209,11 +209,11 @@ export class MainWindow extends Gtk.ApplicationWindow { onChangeState: (a, v) => this._onToggleSidebarChangeState(a, v) }, 'zoom-in': { - accels: ['plus', '<Primary>plus', 'KP_Add', '<Primary>KP_Add', 'equal', '<Primary>equal'], + accels: ['<Primary>plus', 'KP_Add', '<Primary>KP_Add', '<Primary>equal'], onActivate: () => this._mapView.zoomIn() }, 'zoom-out': { - accels: ['minus', '<Primary>minus', 'KP_Subtract', '<Primary>KP_Subtract'], + accels: ['<Primary>minus', 'KP_Subtract', '<Primary>KP_Subtract'], onActivate: () => this._mapView.zoomOut() }, 'show-scale': { |