mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 15:26:17 -04:00
add btn shortcut as title tooltip
This commit is contained in:
parent
4756a52278
commit
ea9613f2cf
2 changed files with 15 additions and 12 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue