1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-11-02 06:42:59 +00:00

Feat: added keyboard shurtcuts help

Fix: use event.code instead of deprecated event.which
Feat: blur inputs on Esc
Feat: / focuses search fields
This commit is contained in:
jcorporation
2018-11-08 22:42:45 +00:00
parent a70ab4e48c
commit 9ca519c69a
5 changed files with 92 additions and 50 deletions

View File

@@ -941,6 +941,31 @@
</div>
</div>
</div>
<div class="modal fade" id="modalHelp" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"><span class="material-icons title-icon">keyboard</span> Keyboard Shortcuts</h5>
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<div class="modal-body">
<div class="table-responsive-md">
<table class="table table-sm">
<thead>
<tr><th>Key</th><th>Action</th></tr>
</thead>
<tbody id="tbodyShortcuts">
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="/js/keymap.min.js"></script>
<script src="/js/bootstrap-native-v4.min.js"></script>