aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-27 23:03:06 -0400
committerGitHub <noreply@github.com>2021-03-27 23:03:06 -0400
commit34f8d8a8125571334fd0ed2b38124007dfb3c583 (patch)
treee6426b99d6ac91e5ba1ea1fb1a2f9d253fdc71be /ext
parent8fe0e5fdf5f2f205becbce7753bc384362c079b1 (diff)
Add a modal to confirm hotkey reset (#1567)
Diffstat (limited to 'ext')
-rw-r--r--ext/settings.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/ext/settings.html b/ext/settings.html
index 67510b99..8a2c1308 100644
--- a/ext/settings.html
+++ b/ext/settings.html
@@ -3061,7 +3061,7 @@
</div>
</div>
<div class="modal-footer">
- <button class="low-emphasis danger" id="hotkey-list-reset">Reset</button>
+ <button class="low-emphasis danger" data-modal-action="show,keyboard-shortcuts-reset">Reset</button>
<button class="low-emphasis" id="hotkey-list-add">Add</button>
<button data-modal-action="hide">Close</button>
</div>
@@ -3116,6 +3116,17 @@
</div>
</div></div>
+<div id="keyboard-shortcuts-reset-modal" class="modal" tabindex="-1" role="dialog" hidden><div class="modal-content modal-content-small">
+ <div class="modal-header"><div class="modal-title">Confirm Keyboard Shortcuts Reset</div></div>
+ <div class="modal-body">
+ Are you sure you want to reset all keyboard shortcuts to their defaults?
+ </div>
+ <div class="modal-footer">
+ <button class="low-emphasis" data-modal-action="hide">Cancel</button>
+ <button class="danger" id="hotkey-list-reset" data-modal-action="hide">Reset All</button>
+ </div>
+</div></div>
+
<!-- Keyboard shortcuts templates -->
<template id="hotkey-list-item-template"><div class="hotkey-list-item"><div class="hotkey-list-item-grid">
<div class="hotkey-list-item-index-cell generic-list-index-prefix"></div>