Skip to content

Commit 5a10ad0

Browse files
alt esc also works
1 parent e8281e0 commit 5a10ad0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/public/js/controls.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ function fullscreen() {
9999
iframe.style.zIndex = '';
100100
iframe.style.transition = '';
101101
}
102+
else if (e.key === 'Escape' && e.altKey) {
103+
//reset all styles
104+
iframe.style.position = '';
105+
iframe.style.top = '';
106+
iframe.style.left = '';
107+
iframe.style.width = '';
108+
iframe.style.height = '';
109+
iframe.style.zIndex = '';
110+
iframe.style.transition = '';
111+
}
102112
});
103113
}
104114
} catch (err) {};

0 commit comments

Comments
 (0)