hexi icon indicating copy to clipboard operation
hexi copied to clipboard

OSX: g.start() => browser reload keyboard shortcut no longer works

Open gamecubate opened this issue 9 years ago • 4 comments

On OSX, browser refresh shortcut (command-r) becomes non-functional once the hexi game loop (e.g., g.start()) is launched. Witnessed on OSX 10.11.5 with both Chrome 54+ and Firefox 49+.

gamecubate avatar Jan 10 '17 18:01 gamecubate

I traced this down to the tink module and its event.preventDefault() call inside the keyboard handler function. Should I transfer this issue over there?

gamecubate avatar Jan 10 '17 18:01 gamecubate

Thanks for reporting this!!! That's OK, we can track it here. Could you list the code that you found to be problematic?

kittykatattack avatar Jan 16 '17 20:01 kittykatattack

Not sure I found the right code. Disabling the keyup and down listeners set up by hex.min.js in Chrome's dev tools does make the problem go away. Event capture and/or bubbling at play.

BTW, not a huge deal, but does slow down development.

gamecubate avatar Jan 17 '17 17:01 gamecubate

Ok, that's weird.

kittykatattack avatar Jan 18 '17 17:01 kittykatattack