Skip to content

Commit

Permalink
feat: Set focus to input controller when opening search tool (close #405
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cnouguier committed Dec 11, 2024
1 parent fee8ff6 commit 273dd55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ module.exports = {
'search-location': [
{ id: 'back', icon: 'las la-arrow-left', handler: { name: 'setTopPaneMode', params: ['default'] } },
{ component: 'QSeparator', vertical: true },
{ component: 'tools/KSearchTool' }
{ component: 'tools/KSearchTool', autofocus: true }
],
'edit-layer-data': [
{ id: 'accept', icon: 'las la-arrow-left', handler: { name: 'onEndLayerEdition', params: ['accept'] } },
Expand Down Expand Up @@ -656,7 +656,7 @@ module.exports = {
'search-location': [
{ id: 'back', icon: 'las la-arrow-left', handler: { name: 'setTopPaneMode', params: ['default'] } },
{ component: 'QSeparator', vertical: true },
{ component: 'tools/KSearchTool' }
{ component: 'tools/KSearchTool', autofocus: true }
]
},
// Hide zoom by default but keep it in config so that it can be easily shown by configuring the filter
Expand Down

0 comments on commit 273dd55

Please sign in to comment.