1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-20 06:56:40 +02:00

trigger auto-type change on item select

This commit is contained in:
antelle 2016-07-14 22:33:46 +03:00
parent 0c6f8bcf00
commit 09ccfdf038

View File

@ -76,6 +76,7 @@ var AutoTypeHintView = Backbone.View.extend({
var pos = this.input.selectionEnd || this.input.value.length;
this.input.value = this.input.value.substr(0, pos) + text + this.input.value.substr(pos);
this.input.selectionStart = this.input.selectionEnd = pos + text.length;
$(this.input).trigger('input');
}
});