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';
|
OpenAPI.BASE = env.PUBLIC_BASE_URL || 'https://run.lauf-fuer-kaya.de';
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
window.addEventListener('keydown', (e) => {
|
window.addEventListener('keydown', (e) => {
|
||||||
if(e.altKey) e.preventDefault();
|
// F1
|
||||||
// console.log(e);
|
if (e.keyCode === 112) e.preventDefault();
|
||||||
// const { key, altKey } = e;
|
// F5
|
||||||
// if (key === 'F4' && altKey) {
|
if (e.keyCode === 116) e.preventDefault();
|
||||||
// e.preventDefault();
|
|
||||||
// }
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user