diff options
Diffstat (limited to 'ui.js')
-rw-r--r-- | ui.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ui.js b/ui.js index 21ac9df..4fe1d8a 100644 --- a/ui.js +++ b/ui.js @@ -139,17 +139,15 @@ class AppElement extends FocusElement { return } - if (telc.isRight(keyBuf) || telc.isCaselessLetter(keyBuf, 'l')) { + if (telc.isRight(keyBuf)) { this.seekAhead(10) - } else if (telc.isLeft(keyBuf) || telc.isCaselessLetter(keyBuf, 'j')) { + } else if (telc.isLeft(keyBuf)) { this.seekBack(10) - } else if (telc.isCaselessLetter(keyBuf, 'p') || telc.isCaselessLetter(keyBuf, 'k')) { - this.togglePause() } else if (telc.isEscape(keyBuf)) { this.clearPlayingTrack() - } else if (telc.isShiftUp(keyBuf)) { + } else if (telc.isShiftUp(keyBuf) || telc.isCaselessLetter(keyBuf, 'p')) { this.playPreviousTrack(this.playingTrack) - } else if (telc.isShiftDown(keyBuf)) { + } else if (telc.isShiftDown(keyBuf) || telc.isCaselessLetter(keyBuf, 'n')) { this.playNextTrack(this.playingTrack) } else if (telc.isCharacter(keyBuf, '1') && this.grouplikeListingElement.selectable) { this.form.curIndex = this.form.inputs.indexOf(this.grouplikeListingElement) |