@christianriedl/media 1.0.53 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/views/PhotoAlbumPage.vue +11 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christianriedl/media",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.54",
|
|
4
4
|
"description": "RIC media interfaces",
|
|
5
5
|
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"author": "Christian Riedl",
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@christianriedl/utils": "^1.0.
|
|
21
|
+
"@christianriedl/utils": "^1.0.79",
|
|
22
22
|
"@christianriedl/rest": "^1.0.47",
|
|
23
23
|
"@christianriedl/epg": "^1.0.26"
|
|
24
24
|
},
|
|
@@ -128,7 +128,15 @@
|
|
|
128
128
|
async function onKey(ev: KeyboardEvent) {
|
|
129
129
|
switch (ev.code) {
|
|
130
130
|
case "Escape":
|
|
131
|
-
|
|
131
|
+
if (appState.fullScreeen.value) {
|
|
132
|
+
await appState.exitFullScreen();
|
|
133
|
+
infoDialog.value = false;
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (infoDialog.value) {
|
|
137
|
+
infoDialog.value = false;
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
132
140
|
router.back();
|
|
133
141
|
break;
|
|
134
142
|
case "ArrowLeft":
|
|
@@ -158,29 +166,11 @@
|
|
|
158
166
|
case "KeyF": // Fullscreen
|
|
159
167
|
infoDialog.value = false;
|
|
160
168
|
if (appState.fullScreen.value) {
|
|
161
|
-
|
|
162
|
-
await window.document.exitFullscreen();
|
|
163
|
-
appState.fullScreen.value = !!window.document.fullscreenElement;
|
|
164
|
-
}
|
|
165
|
-
else if ((window.document as any).webkitExitFullscreen) {
|
|
166
|
-
(window.document as any).webkitExitFullscreen();
|
|
167
|
-
appState.fullScreen.value = false;
|
|
168
|
-
}
|
|
169
|
-
else
|
|
170
|
-
appState.fullScreen.value = false;
|
|
169
|
+
await appState.exitFullScreen();
|
|
171
170
|
}
|
|
172
171
|
else {
|
|
173
172
|
const mainEle = window.document.getElementsByTagName('main')[0];
|
|
174
|
-
|
|
175
|
-
await mainEle.requestFullscreen();
|
|
176
|
-
appState.fullScreen.value = !!window.document.fullscreenElement;
|
|
177
|
-
}
|
|
178
|
-
else if ((mainEle as any).webkitRequestFullScreen) {
|
|
179
|
-
(mainEle as any).webkitRequestFullScreen();
|
|
180
|
-
appState.fullScreen.value = true;
|
|
181
|
-
}
|
|
182
|
-
else
|
|
183
|
-
appState.fullScreen.value = true;
|
|
173
|
+
await appState.setFullScreen(mainEle);
|
|
184
174
|
}
|
|
185
175
|
break;
|
|
186
176
|
case "KeyP":
|