Merge branch 'release-1.11'

This commit is contained in:
antelle 2019-10-13 23:10:24 +02:00
commit 2c9c8b9ab4
10 changed files with 13 additions and 9 deletions

View File

@ -77,7 +77,7 @@ class AutoTypeHintView extends View {
const pos = this.input.selectionEnd || this.input.value.length; const 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.value = this.input.value.substr(0, pos) + text + this.input.value.substr(pos);
this.input.selectionStart = this.input.selectionEnd = pos + text.length; this.input.selectionStart = this.input.selectionEnd = pos + text.length;
this.input.dispatchEvent(new Event('input')); this.input.dispatchEvent(new Event('input', { bubbles: true }));
} }
} }

View File

@ -17,7 +17,7 @@ class FieldViewAutocomplete extends FieldViewText {
startEdit() { startEdit() {
super.startEdit(); super.startEdit();
const fieldRect = this.input[0].getBoundingClientRect(); const fieldRect = this.input[0].getBoundingClientRect();
const shadowSpread = parseInt(this.input.css('--focus-shadow-spread')); const shadowSpread = parseInt(this.input.css('--focus-shadow-spread')) || 0;
this.autocomplete = $('<div class="details__field-autocomplete"></div>').appendTo('body'); this.autocomplete = $('<div class="details__field-autocomplete"></div>').appendTo('body');
this.autocomplete.css({ this.autocomplete.css({
top: fieldRect.bottom + shadowSpread, top: fieldRect.bottom + shadowSpread,

View File

@ -42,7 +42,7 @@ class FieldViewDate extends FieldViewText {
adjustPickerPosition(...args) { adjustPickerPosition(...args) {
window.Pikaday = Pikaday; window.Pikaday = Pikaday;
Pikaday.prototype.adjustPosition.apply(this.picker, args); Pikaday.prototype.adjustPosition.apply(this.picker, args);
const shadowSpread = parseInt(this.input.css('--focus-shadow-spread')); const shadowSpread = parseInt(this.input.css('--focus-shadow-spread')) || 0;
if (shadowSpread) { if (shadowSpread) {
const isOnTop = this.picker.el.classList.contains('top-aligned'); const isOnTop = this.picker.el.classList.contains('top-aligned');
const offset = isOnTop ? -shadowSpread : shadowSpread; const offset = isOnTop ? -shadowSpread : shadowSpread;

View File

@ -41,7 +41,7 @@ class FieldViewTags extends FieldViewText {
startEdit() { startEdit() {
super.startEdit(); super.startEdit();
const fieldRect = this.input[0].getBoundingClientRect(); const fieldRect = this.input[0].getBoundingClientRect();
const shadowSpread = parseInt(this.input.css('--focus-shadow-spread')); const shadowSpread = parseInt(this.input.css('--focus-shadow-spread')) || 0;
this.tagsAutocomplete = $('<div class="details__field-autocomplete"></div>').appendTo( this.tagsAutocomplete = $('<div class="details__field-autocomplete"></div>').appendTo(
'body' 'body'
); );

View File

@ -102,7 +102,7 @@ class FieldViewText extends FieldView {
this.hideGenerator(); this.hideGenerator();
} else { } else {
const fieldRect = this.input[0].getBoundingClientRect(); const fieldRect = this.input[0].getBoundingClientRect();
const shadowSpread = parseInt(this.input.css('--focus-shadow-spread')); const shadowSpread = parseInt(this.input.css('--focus-shadow-spread')) || 0;
this.gen = new GeneratorView({ this.gen = new GeneratorView({
pos: { left: fieldRect.left, top: fieldRect.bottom + shadowSpread }, pos: { left: fieldRect.left, top: fieldRect.bottom + shadowSpread },
password: this.value password: this.value

View File

@ -1,6 +1,6 @@
{ {
"name": "KeeWeb", "name": "KeeWeb",
"version": "1.11.8", "version": "1.11.9",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "KeeWeb", "name": "KeeWeb",
"version": "1.11.8", "version": "1.11.9",
"description": "Free cross-platform password manager compatible with KeePass", "description": "Free cross-platform password manager compatible with KeePass",
"main": "main.js", "main": "main.js",
"homepage": "https://keeweb.info", "homepage": "https://keeweb.info",

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "keeweb", "name": "keeweb",
"version": "1.11.8", "version": "1.11.9",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "keeweb", "name": "keeweb",
"version": "1.11.8", "version": "1.11.9",
"description": "Free cross-platform password manager compatible with KeePass", "description": "Free cross-platform password manager compatible with KeePass",
"main": "Gruntfile.js", "main": "Gruntfile.js",
"private": true, "private": true,

View File

@ -1,5 +1,9 @@
Release notes Release notes
------------- -------------
##### v1.11.9 (2019-10-13)
`-` fix #1300: selecting auto-type sequence items issues
`-` fix #1290: generator popup positioning in custom themes
##### v1.11.8 (2019-10-11) ##### v1.11.8 (2019-10-11)
`-` fix #1292: macOS app notarization `-` fix #1292: macOS app notarization
`-` fix #1296: search in auto-type `-` fix #1296: search in auto-type