add btn shortcut as title tooltip

This commit is contained in:
schlagmichdoch 2023-01-25 10:01:45 +01:00
parent 4756a52278
commit ea9613f2cf
2 changed files with 15 additions and 12 deletions

View file

@ -964,8 +964,7 @@ class SendTextDialog extends Dialog {
if (this.$el.attributes["show"]) {
if (e.code === "Escape") {
this.hide();
}
if (e.code === "Enter" && (e.ctrlKey || e.metaKey)) {
} else if (e.code === "Enter" && (e.ctrlKey || e.metaKey)) {
this._send();
this.hide();
}
@ -1005,9 +1004,13 @@ class ReceiveTextDialog extends Dialog {
}
async _onKeyDown(e) {
if (this.$el.attributes["show"] && e.code === "KeyC" && (e.ctrlKey || e.metaKey)) {
await this._onCopy()
this.hide();
if (this.$el.attributes["show"]) {
if (e.code === "KeyC" && (e.ctrlKey || e.metaKey)) {
await this._onCopy()
this.hide();
} else if (e.code === "Escape") {
this.hide();
}
}
}