Phaser: Cannot read property 'shortcutLock' of undefined?

Created on 5 May 2014  路  19Comments  路  Source: photonstorm/phaser

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.

Most helpful comment

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

All 19 comments

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

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

Me too!

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

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

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)

Awesome @philipforget thanks !
I love readability

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.

@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.

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

All bugs lead back to me

@philipforget I鈥檓 still seeing this error. Is there a fix planned?

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

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

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

can confirm the same for me. :/

@philipforget friendly ping 馃槃

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

@philipforget is the guy from readability. He's helping to fix it. 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JarLowrey picture JarLowrey  路  4Comments

Legomite picture Legomite  路  4Comments

cncolder picture cncolder  路  4Comments

Colbydude picture Colbydude  路  4Comments

samme picture samme  路  3Comments