diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2023-01-05 21:21:44 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2023-01-17 22:33:32 +0100 |
commit | 4c2dd75ff5c6dbdc39d006fd75aebe6426d5d1aa (patch) | |
tree | 71e524e7c742b1e14a4d46eae1b24b528c381531 /src | |
parent | ad73727d70a677c9b8017e03f26fa02cb493d3fc (diff) | |
download | gnome-maps-4c2dd75ff5c6dbdc39d006fd75aebe6426d5d1aa.tar.gz |
mainWindow: Grab focus on place entry at startup
Set focus on the search entry at startup.
This allows start typing to search without
first manually focusing on the search entry.
Diffstat (limited to 'src')
-rw-r--r-- | src/mainWindow.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mainWindow.js b/src/mainWindow.js index 5dc8b9f9..a3b6d7dd 100644 --- a/src/mainWindow.js +++ b/src/mainWindow.js @@ -320,6 +320,7 @@ export class MainWindow extends Gtk.ApplicationWindow { this._placeEntry = this._createPlaceEntry(); this._headerBar.title_widget = this._placeEntry; + this._placeEntry.grab_focus(); Application.geoclue.connect('notify::state', this._updateLocationSensitivity.bind(this)); |