On an Ubuntu system I tried to get the pressed keys in JavaScript. I noticed that it's not possible to detect the SPACE key when UP ARROW and LEFT ARROW are pressed at the same moment. How can I figure out why it's blocked?

Same behavior with Chrome and Firefox.

  • Which version of Ubuntu? – iglvzx May 4 '12 at 20:28
  • 1
    Is it perhaps the same everywhere? It is probable that it is a hardware limitation in the keyboard. Can you try it somewhere else as well? – Daniel Andersson May 4 '12 at 20:34
  • 12.04. Have no other machine here. But same behavior outside a browser. – Max Maennle May 5 '12 at 7:01

This may be a limitation of your keyboard. It is commonplace for keyboards to have "zones" to hedge the costs of making keyboards. Is this only in your browsers? If it is, then it's not the keyboard. But if it happens everywhere, then try another keyboard, as in a different brand and model. If you're using PS/2 try USB, if you're using USB try PS/2. If you want to buy a keyboard that never has this problem, look for something that is PS/2 and has N-Key Rollover.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.