mirror of https://github.com/keeweb/keeweb.git
fix #304: select input on focus
This commit is contained in:
parent
71c443a0e6
commit
dc74f763fb
|
@ -14,6 +14,7 @@ var ListSearchView = Backbone.View.extend({
|
|||
'keydown .list__search-field': 'inputKeyDown',
|
||||
'keypress .list__search-field': 'inputKeyPress',
|
||||
'input .list__search-field': 'inputChange',
|
||||
'focus .list__search-field': 'inputFocus',
|
||||
'click .list__search-btn-new': 'createOptionsClick',
|
||||
'click .list__search-btn-sort': 'sortOptionsClick',
|
||||
'click .list__search-icon-search': 'advancedSearchClick',
|
||||
|
@ -128,6 +129,10 @@ var ListSearchView = Backbone.View.extend({
|
|||
Backbone.trigger('add-filter', { text: this.inputEl.val() });
|
||||
},
|
||||
|
||||
inputFocus: function(e) {
|
||||
$(e.target).select();
|
||||
},
|
||||
|
||||
documentKeyPress: function(e) {
|
||||
if (this._hidden) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue