Add a modal to confirm hotkey reset (#1567)

This commit is contained in:
toasted-nutbread 2021-03-27 23:03:06 -04:00 committed by GitHub
parent 8fe0e5fdf5
commit 34f8d8a812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>