mirror of https://github.com/keeweb/keeweb.git
fix #1387: fixed drag-drop for otp fields
This commit is contained in:
parent
19e899ba97
commit
a5c6180154
|
@ -33,6 +33,10 @@ class FieldViewOtp extends FieldViewText {
|
||||||
return value && value.url;
|
return value && value.url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTextValue() {
|
||||||
|
return this.otpValue;
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
super.render();
|
super.render();
|
||||||
this.fieldOpacity = null;
|
this.fieldOpacity = null;
|
||||||
|
|
|
@ -134,7 +134,7 @@ class FieldView extends View {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const dt = e.dataTransfer;
|
const dt = e.dataTransfer;
|
||||||
const txtval = this.value.isProtected ? this.value.getText() : this.value;
|
const txtval = this.getTextValue();
|
||||||
if (this.valueEl[0].tagName.toLowerCase() === 'a') {
|
if (this.valueEl[0].tagName.toLowerCase() === 'a') {
|
||||||
dt.setData('text/uri-list', txtval);
|
dt.setData('text/uri-list', txtval);
|
||||||
}
|
}
|
||||||
|
@ -345,6 +345,10 @@ class FieldView extends View {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTextValue() {
|
||||||
|
return this.value.isProtected ? this.value.getText() : this.value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export { FieldView };
|
export { FieldView };
|
||||||
|
|
|
@ -12,6 +12,7 @@ Release notes
|
||||||
`*` fix #1348: fixed password generation entropy
|
`*` fix #1348: fixed password generation entropy
|
||||||
`-` fix #1385: fixed a file watcher error on network locations
|
`-` fix #1385: fixed a file watcher error on network locations
|
||||||
`-` fix #1391: passwords imported from CSV were not hidden
|
`-` fix #1391: passwords imported from CSV were not hidden
|
||||||
|
`-` fix #1387: fixed drag-drop for otp fields
|
||||||
|
|
||||||
##### v1.12.3 (2019-11-06)
|
##### v1.12.3 (2019-11-06)
|
||||||
`-` fix #1335: removed the menubar on Windows and Linux
|
`-` fix #1335: removed the menubar on Windows and Linux
|
||||||
|
|
Loading…
Reference in New Issue