client: shortcuts window scrollable with arrows. closes #28
This commit is contained in:
parent
8f13aa795a
commit
43d96fb348
2 changed files with 10 additions and 5 deletions
|
|
@ -1361,10 +1361,8 @@ var keyboardHandlers = (function(){
|
|||
title: "Keyboard Shortcuts",
|
||||
minWidth: 600,
|
||||
height: $document.height() - 40,
|
||||
close: function(){
|
||||
$shortcuts.remove();
|
||||
}
|
||||
});
|
||||
$shortcuts.focus();
|
||||
} else {
|
||||
clickTab('library');
|
||||
$lib_filter.focus().select();
|
||||
|
|
@ -1561,6 +1559,12 @@ function setUpGenericUi(){
|
|||
handler.handler(event);
|
||||
return false;
|
||||
});
|
||||
$shortcuts.on('keydown', function(event) {
|
||||
event.stopPropagation();
|
||||
if (event.which === 27) {
|
||||
$shortcuts.dialog('close');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function setUpPlaylistUi(){
|
||||
|
|
@ -1790,6 +1794,7 @@ var perDom = document.getElementById('edit-tags-per');
|
|||
var perLabelDom = document.getElementById('edit-tags-per-label');
|
||||
var prevDom = document.getElementById('edit-tags-prev');
|
||||
var nextDom = document.getElementById('edit-tags-next');
|
||||
var editTagsFocusDom = document.getElementById('edit-tag-name');
|
||||
function updateEditTagsUi() {
|
||||
var multiple = editTagsTrackKeys.length > 1;
|
||||
prevDom.disabled = !perDom.checked || editTagsTrackIndex === 0;
|
||||
|
|
@ -1834,9 +1839,9 @@ function showEditTags() {
|
|||
});
|
||||
perDom.checked = false;
|
||||
updateEditTagsUi();
|
||||
editTagsFocusDom.focus();
|
||||
}
|
||||
|
||||
var editTagsFocusDom = document.getElementById('edit-tag-name');
|
||||
function setUpEditTagsUi() {
|
||||
$editTagsDialog.find("input").on("keydown", function(event) {
|
||||
event.stopPropagation();
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@
|
|||
<div id="main-err-msg-text">Loading...</div>
|
||||
</p>
|
||||
</div>
|
||||
<div id="shortcuts" style="display: none">
|
||||
<div id="shortcuts" style="display: none" tabindex="-1">
|
||||
<h1>Playback</h1>
|
||||
<dl>
|
||||
<dt>Space</dt>
|
||||
|
|
|
|||
Loading…
Reference in a new issue