diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2023-01-25 23:47:56 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2023-04-27 22:03:38 +0200 |
commit | 8cabcffb9f0a825104f77e91ede1ccfa5ed1d9a4 (patch) | |
tree | c20678bb47a894b71a2e8a7152d8028cce92dcfd | |
parent | a5df16e863cde4c3e2cf034615d23515f02108d5 (diff) | |
download | gnome-maps-8cabcffb9f0a825104f77e91ede1ccfa5ed1d9a4.tar.gz |
mainWindow: Add action to browse POIs
-rw-r--r-- | src/mainWindow.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainWindow.js b/src/mainWindow.js index 993ced86..ecc1a16a 100644 --- a/src/mainWindow.js +++ b/src/mainWindow.js @@ -241,6 +241,10 @@ export class MainWindow extends Gtk.ApplicationWindow { accels: ['<Primary>F'], onActivate: () => this._onFindActivate() }, + 'browse': { + accels: ['<Shift><Primary>F'], + onActivate: () => this._onBrowseActivate() + }, 'print-route': { accels: ['<Primary>P'], onActivate: () => this._printRouteActivate() @@ -444,6 +448,10 @@ export class MainWindow extends Gtk.ApplicationWindow { this._placeEntry.select_region(0, this._placeEntry.text.length); } + _onBrowseActivate() { + this._placeEntry.browsePois(); + } + _onGotoUserLocationActivate() { let message; |