phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Cannot read property 'shortcutLock' of undefined?

Open cattsmall opened this issue 12 years ago • 19 comments

Hi, I created a practice game based on the Phaser tutorial. After I upgraded to the newest Phaser release (Apr 29), I started getting this error when I press keyboard keys in the game: Error in event handler for (unknown): Cannot read property 'shortcutLock' of undefined Stack trace: TypeError: Cannot read property 'shortcutLock' of undefined at chrome-extension://oknpjjbmpnndlpmnhmekjpocelpnlfdi/js/content.js:32:32 at disconnectListener (extensions::messaging:335:9) at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14) at EventImpl.dispatchToListener (extensions::event_bindings:395:22) at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14) at publicClass.(anonymous function) [as dispatchToListener] (extensions::utils:69:26) at EventImpl.dispatch_ (extensions::event_bindings:378:35) at EventImpl.dispatch (extensions::event_bindings:401:17) at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14) at publicClass.(anonymous function) [as dispatch] (extensions::utils:69:26) extensions::event_bindings:383 EventImpl.dispatch_ extensions::event_bindings:383 EventImpl.dispatch extensions::event_bindings:401 publicClass.(anonymous function) extensions::utils:69 dispatchOnDisconnect

Is this PEBCAK or is there an issue with the input recognition?

My code is here: https://github.com/cattsmall/Phaser-game/blob/master/scripts/game.js

You can try the game and see the console here: http://cattsmall.github.io/Phaser-game/

Thanks for making such a great framework! I'm really excited to share it with my class.

cattsmall avatar May 05 '14 20:05 cattsmall

Nevermind, looks like it came from my Chrome extension interfering with the local server.

cattsmall avatar May 05 '14 20:05 cattsmall

which Chrome extension was doing it ? I've got the same interference

crucialfelix avatar Mar 03 '16 13:03 crucialfelix

Me too!

randallb avatar Mar 03 '16 21:03 randallb

for those asking about which extension: like @cattsmall, I had an exception pointing to chrome-extension://oknpjjbmpnndlpmnhmekjpocelpnlfdi/js/content.js

oknpjjbmpnndlpmnhmekjpocelpnlfdi seems to be the Chrome-store ID for the Readability extension, which I have installed

https://chrome.google.com/webstore/detail/readability/oknpjjbmpnndlpmnhmekjpocelpnlfdi?hl=en

erikj avatar Mar 04 '16 01:03 erikj

I can confirm that, I have readability installed. thanks @erikj

crucialfelix avatar Mar 06 '16 12:03 crucialfelix

Hey everyone, I'll take a look at why this is happening and fix the extension on our end as well. Sorry about that!

Philip (from Readability)

philipforget avatar Mar 07 '16 18:03 philipforget

Awesome @philipforget thanks ! I love readability

crucialfelix avatar Mar 08 '16 09:03 crucialfelix

I can confirm I'm getting this same error in chrome coming from readability while trying to read keypress events in Angular 1.5.

Interestingly, if you view the readability options page then the plugin stops listening for keypresses. This is somewhat less annoying than turning the plugin off and on again while developing.

13protons avatar Mar 13 '16 17:03 13protons

@alanguir Thanks for the update, I think this has to do with the way we do the "key chording" (allowing for an almost arbitrary number of concurrent keys for a given shortcut) and the listeners involved. I'm going to take a look at this as soon as I can, just a bit swamped right now.

philipforget avatar Mar 14 '16 15:03 philipforget

Have been getting this error recently and googled it, didn't expect it to lead me back to @philipforget :smile:

ajc308 avatar Mar 31 '16 21:03 ajc308

All bugs lead back to me

philipforget avatar Mar 31 '16 22:03 philipforget

@philipforget I’m still seeing this error. Is there a fix planned?

PawelDecowski avatar May 03 '16 13:05 PawelDecowski

Got the same error. Got the same love to readability :) REally annoying, while i'm developing somethiung.

skabbit avatar May 20 '16 16:05 skabbit

yep, every day all day long I'm seeing that error :)

crucialfelix avatar May 20 '16 17:05 crucialfelix

one trick actually is to create a separate chrome profile and only install dev stuff in it. it will run slightly faster too.

crucialfelix avatar May 20 '16 17:05 crucialfelix

can confirm the same for me. :/

lukin-io avatar Jun 03 '16 10:06 lukin-io

@philipforget friendly ping šŸ˜„

sandstrom avatar Aug 03 '16 16:08 sandstrom

guys it is not issue for this repo!!! :) Just go and disable Readability extention and it will disapear! Lets bug readability to fix it. image

ntodorov avatar Aug 04 '16 21:08 ntodorov

@philipforget is the guy from readability. He's helping to fix it. šŸ‘

drhayes avatar Aug 04 '16 21:08 drhayes