Jump to content

Disable Browser Keyboard Shortcuts


Eraph
 Share

Recommended Posts

G'day folks,

 

There is probably a really easy solution to this but I can't find it in examples/documentation/forums. I'm using the Ctrl key to fire a weapon in my game, and WASD to move. Problem being of course that if you hold Ctrl and press a key, it triggers a browser action. Is there any way to prevent this?

 

Cheers!

Link to comment
Share on other sites

I found this it may help:

http://stackoverflow.com/questions/24764626/any-way-to-prevent-disable-ctrl-key-shortcuts-in-the-browser

 

Basically my understanding is Ctrl+W is reserved for chrome so its a bad combination.

 

Just wondering, how come you are using ctrl and not something else for firing, using the left-ctrl with the little finger tires out after awhile and from a usability perspective may not be the best choice.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...