Tilde key for console not working


(John Andersson) #1

Hi.

After I enabled the console with FP.console.enable(); the tilde key doesn’t work! My keyboard is Swedish. What can I do? Thanks


(Ultima2876) #2

You can specify the key to use with FP.console.toggleKey. For example:

FP.console.toggleKey = Key.ENTER;

The “Key” class comes from importing net.flashpunk.utils.Key.

You could also follow the advice from this site and try pressing the key above your ‘tab’ key (½ / §).


(John Andersson) #3

Thank you so much for helping me :slight_smile:


(Ultima2876) #4

It’s what we’re here for! :slight_smile: