Disable browser shortcuts / keybinds

Hello!

I am making a typing game by using the “browser-events” extension. However, there is an issue with the “P” key. Pressing it prompts the editor to download / save the game and opens the explorer window. Is there a way to disable that?

Thank you.

1 Like
5 Likes

If you want, I can make it easier for them to disable keys and shortcuts/keybinds by making an extension out of it if you would like me to make one repository out of it. I do know how to make extensions and I think I can make an extension for keymaps for any user to use it. Let me know if I should make a extension so the user can see it on the block editor easier without just using the JavaScript editor.

1 Like

Thank you! It works, and honestly, the swap to JavaScript isn’t too bad especially that I don’t have a lot of code yet,

2 Likes

I appreciate the offer! If you have the time and really don’t mind it, I think that would be a great thing to do as it would help me and others in a similar situation. While we’re on the subject of making extensions, is there a way to get the keyboard input key return instead of having to check for every single key press?

In other words, a block that says “return key press” that returns a string with the name of the key that was pressed instead of having to do it manually like this:

1 Like

I made the extension now for you here is the extension link you need to import to paste it in the Search or enter project URL for the extensions link

developertryingtocodelikeotherofthem/arcade-keymaps-disabling-shortcuts

paste that there then import that extension then after you will see it say keymap and you can now see the block you are looking for. I hope this helps.

1 Like

Thank you!!

1 Like

No problem, and thank you too.

1 Like