mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 23:36: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
|
@ -168,9 +168,9 @@
|
||||||
<div class="font-body2 text-center file-size"></div>
|
<div class="font-body2 text-center file-size"></div>
|
||||||
<div class="center file-preview"></div>
|
<div class="center file-preview"></div>
|
||||||
<div class="row-reverse space-between">
|
<div class="row-reverse space-between">
|
||||||
<button class="button" id="acceptRequest" title="Accept Request" close autofocus>Accept</button>
|
<button class="button" id="acceptRequest" title="ENTER" close autofocus>Accept</button>
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
<button class="button" id="declineRequest" title="Decline Request" close>Decline</button>
|
<button class="button" id="declineRequest" title="ESCAPE" close>Decline</button>
|
||||||
</div>
|
</div>
|
||||||
</x-paper>
|
</x-paper>
|
||||||
</x-background>
|
</x-background>
|
||||||
|
@ -183,9 +183,9 @@
|
||||||
<h2 class="center text-center">Send a Message</h2>
|
<h2 class="center text-center">Send a Message</h2>
|
||||||
<div id="textInput" class="textarea" role="textbox" placeholder="Send a message" autocapitalize="none" spellcheck="false" autofocus contenteditable></div>
|
<div id="textInput" class="textarea" role="textbox" placeholder="Send a message" autocapitalize="none" spellcheck="false" autofocus contenteditable></div>
|
||||||
<div class="row-reverse">
|
<div class="row-reverse">
|
||||||
<button class="button" type="submit" close>Send</button>
|
<button class="button" type="submit" title="STR + ENTER" close>Send</button>
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
<a class="button" close>Cancel</a>
|
<a class="button" title="ESCAPE" close>Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</x-paper>
|
</x-paper>
|
||||||
</x-background>
|
</x-background>
|
||||||
|
@ -198,14 +198,14 @@
|
||||||
<h2>Message Received</h2>
|
<h2>Message Received</h2>
|
||||||
<div class="font-subheading" id="text"></div>
|
<div class="font-subheading" id="text"></div>
|
||||||
<div class="row-reverse">
|
<div class="row-reverse">
|
||||||
<button class="button" id="copy" close autofocus>Copy</button>
|
<button class="button" id="copy" title="CTRL/⌘ + C" close>Copy</button>
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
<button class="button" close>Close</button>
|
<button class="button" title="ESCAPE" close>Close</button>
|
||||||
</div>
|
</div>
|
||||||
</x-paper>
|
</x-paper>
|
||||||
</x-background>
|
</x-background>
|
||||||
</x-dialog>
|
</x-dialog>
|
||||||
<!-- Receive Dialog -->
|
<!-- base64ZipDialog Dialog -->
|
||||||
<x-dialog id="base64ZipDialog">
|
<x-dialog id="base64ZipDialog">
|
||||||
<x-background class="full center">
|
<x-background class="full center">
|
||||||
<x-paper shadow="2">
|
<x-paper shadow="2">
|
||||||
|
|
|
@ -964,8 +964,7 @@ class SendTextDialog extends Dialog {
|
||||||
if (this.$el.attributes["show"]) {
|
if (this.$el.attributes["show"]) {
|
||||||
if (e.code === "Escape") {
|
if (e.code === "Escape") {
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
} else if (e.code === "Enter" && (e.ctrlKey || e.metaKey)) {
|
||||||
if (e.code === "Enter" && (e.ctrlKey || e.metaKey)) {
|
|
||||||
this._send();
|
this._send();
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
|
@ -1005,9 +1004,13 @@ class ReceiveTextDialog extends Dialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
async _onKeyDown(e) {
|
async _onKeyDown(e) {
|
||||||
if (this.$el.attributes["show"] && e.code === "KeyC" && (e.ctrlKey || e.metaKey)) {
|
if (this.$el.attributes["show"]) {
|
||||||
|
if (e.code === "KeyC" && (e.ctrlKey || e.metaKey)) {
|
||||||
await this._onCopy()
|
await this._onCopy()
|
||||||
this.hide();
|
this.hide();
|
||||||
|
} else if (e.code === "Escape") {
|
||||||
|
this.hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue