MacGapProject / MacGap1

Desktop WebKit wrapper for HTML/CSS/JS applications.
Other
3.55k stars 208 forks source link

Key presses trigger warning sounds #50

Closed mkilling closed 12 years ago

mkilling commented 12 years ago

Every time I press a key in my macgap app, it causes the system to play a warning sound (the same one that is played when you try to navigate past the prompt in a terminal).
My DOM does not have anything which is navigable via key presses, but I registered a few key press handlers via JavaScript. Is this a known problem?

maccman commented 12 years ago

Are you doing e.preventDefault() on the key press?

On Thu, Jun 7, 2012 at 11:10 AM, Marvin Killing < reply@reply.github.com

wrote:

Every time I press a key in my macgap app, it causes the system to play a warning sound (the same one that is played when you try to navigate past the prompt in a terminal). My DOM does not have anything which is navigable via key presses, but I registered a few key press handlers via JavaScript. Is this a known problem?


Reply to this email directly or view it on GitHub: https://github.com/maccman/macgap/issues/50

Alex MacCaw

+12147175129 @maccman

http://alexmaccaw.co.uk

mkilling commented 12 years ago

That fixed it. Thanks.