mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-21 20:46:14 -04:00
Avoid fullscreen on ctrl+f
This commit is contained in:
parent
67ac6ef711
commit
8a1f8fedbd
1 changed files with 2 additions and 2 deletions
|
@ -3195,7 +3195,7 @@ function setKeyPressed(key, on) {
|
|||
}
|
||||
|
||||
document.addEventListener('keydown', e => {
|
||||
if (e.key.toLowerCase() === 'f') {
|
||||
if (e.key.toLowerCase() === 'f' && !e.ctrlKey && !e.metaKey) {
|
||||
toggleFullScreen()
|
||||
} else if (e.key in pressed) {
|
||||
setKeyPressed(e.key, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue