Add a modal to confirm hotkey reset (#1567)
This commit is contained in:
parent
8fe0e5fdf5
commit
34f8d8a812
@ -3061,7 +3061,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<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 class="low-emphasis" id="hotkey-list-add">Add</button>
|
||||||
<button data-modal-action="hide">Close</button>
|
<button data-modal-action="hide">Close</button>
|
||||||
</div>
|
</div>
|
||||||
@ -3116,6 +3116,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div></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 -->
|
<!-- Keyboard shortcuts templates -->
|
||||||
<template id="hotkey-list-item-template"><div class="hotkey-list-item"><div class="hotkey-list-item-grid">
|
<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>
|
<div class="hotkey-list-item-index-cell generic-list-index-prefix"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user