diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-06 08:56:12 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-06 08:56:12 +0300 |
| commit | 1d68090f09b791c060dee7222dd2963a74c8e19b (patch) | |
| tree | 7730bb20d9d03aa798c8817aac54914f8e1d5ba3 /web/js/app.js | |
| parent | e2958122bfb7304a43b7815d80e0f42c761aa68c (diff) | |
Add q hotkey to stop playback and close player
Diffstat (limited to 'web/js/app.js')
| -rw-r--r-- | web/js/app.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/js/app.js b/web/js/app.js index 2e3caa7..102072b 100644 --- a/web/js/app.js +++ b/web/js/app.js @@ -1,7 +1,7 @@ import { API } from './api.js'; import { initKeyboard } from './keyboard.js'; import { initSelection, clearSelection, select, selectByElement, next, prev, currentIndex, currentElement, navUp, navDown, navLeft, navRight } from './selection.js'; -import { initPlayer, togglePlay, toggleFullscreen, toggleMinimize, toggleDetach, exitFullscreenIfNeeded, toggleCrop, shiftCropPosition, cycleCropPosition, currentMediaId, currentMediaInfo, hasLoadedMedia, isPlaybackActive, seekRelative, seekPercent, selectAndPlay, zoomIn as playerZoomIn, zoomOut as playerZoomOut, toggleSlideshow as playerToggleSlideshow, isImageMode as playerIsImageMode } from './player.js'; +import { initPlayer, togglePlay, toggleFullscreen, toggleMinimize, toggleDetach, exitFullscreenIfNeeded, toggleCrop, shiftCropPosition, cycleCropPosition, currentMediaId, currentMediaInfo, hasLoadedMedia, isPlaybackActive, seekRelative, seekPercent, selectAndPlay, stopAndClose, zoomIn as playerZoomIn, zoomOut as playerZoomOut, toggleSlideshow as playerToggleSlideshow, isImageMode as playerIsImageMode } from './player.js'; import { initSearch, focusSearch, trigger as triggerSearch, parseQuery, showSearchHelp } from './search.js'; import { initShuffle, toggle as toggleShuffle, isOn as isShuffle } from './shuffle.js'; import { initThemes } from './themes.js'; @@ -150,6 +150,7 @@ async function initApp() { notes: openNotesForSelected, tags: openTagsForSelected, toggleDetach: () => toggleDetach(), + stopAndClose: () => stopAndClose(), download: downloadSelected, help: toggleHelp, backspace: () => { navigateBack(); }, |
