prevent ctrl + v, prevent ", prevent ;
This commit is contained in:
parent
b0637705f0
commit
890ddb0554
@ -530,6 +530,10 @@
|
||||
pingActive();
|
||||
});
|
||||
|
||||
canvas.addEventListener('contextmenu', e => {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
canvas.addEventListener('mousedown', e => {
|
||||
if (!pointerLocked || !isControlling) return;
|
||||
sendInput({ type: 'mouse_down', button: e.button + 1 });
|
||||
@ -578,6 +582,10 @@
|
||||
if (e.key === 'F4' && e.altKey) { e.preventDefault(); return; }
|
||||
if (e.key === 'w' && e.ctrlKey) { e.preventDefault(); return; }
|
||||
if (e.key === 'q' && e.ctrlKey) { e.preventDefault(); return; }
|
||||
if (e.key === 'v' && e.ctrlKey) { e.preventDefault(); return; }
|
||||
if (e.key === 'V' && e.ctrlKey) { e.preventDefault(); return; }
|
||||
if (e.key === ';') { e.preventDefault(); return; }
|
||||
if (e.key === '"') { e.preventDefault(); return; }
|
||||
if (e.key === 'F11') { e.preventDefault(); return; }
|
||||
if (e.key === 'Escape') {
|
||||
if (isControlling) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user