feat: prevent F1 + F5
This commit is contained in:
parent
e512325115
commit
bb3c801908
@ -8,12 +8,10 @@
|
||||
OpenAPI.BASE = env.PUBLIC_BASE_URL || 'https://run.lauf-fuer-kaya.de';
|
||||
onMount(() => {
|
||||
window.addEventListener('keydown', (e) => {
|
||||
if(e.altKey) e.preventDefault();
|
||||
// console.log(e);
|
||||
// const { key, altKey } = e;
|
||||
// if (key === 'F4' && altKey) {
|
||||
// e.preventDefault();
|
||||
// }
|
||||
// F1
|
||||
if (e.keyCode === 112) e.preventDefault();
|
||||
// F5
|
||||
if (e.keyCode === 116) e.preventDefault();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user