Special/specific language character issues

0 favourites
  • 4 posts
From the Asset Store
Implement multi-language translation inside your game effortlessly with the language.translate plugin!
  • Problem Description

    When you have special characters like Ă Î Â Ț Ș the Keyboard lastkeycode is 0 in firefox and the english keyboard equivalent key in chrome and IE.

    Attach a Capx

    https://1drv.ms/u/s!AgGzaqNrd-XViCalbcUkpCWxj7f5

    Description of Capx

    when you press a key it says on text the last key pressed and if Ä‚ was pressed

    Steps to Reproduce Bug

    • Step 1 install romanian keyboard
    • Step 2 run the capx file
    • Step 3 test if events happen as it should be

    Observed Result

    In firefox: with romanian keyboard when you press [/Ä‚ nothing happens but it should with ENG keyboard the key is getting interpreted as pressed but it shouldn't. with Romanian keyboard the last key code is from [ not from Ä‚ in chrome and IE Expected Result

    ____ What do you expect to happen?

    It should return the keycode of Ä‚ only when the keyboard is Romanian

    it should say pressed only when Ä‚ is pressed in romanian keyboard

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES/NO)

    Operating System and Service Pack

    ____ windows 8.1

    Construct 2 Version ID

    ____ R236

  • The key code is provided by the browser, not Construct 2, so it's not something we can fix. I'd guess it's working correctly anyway - I suppose if you change keyboard, the key codes are the same, even if the key labels are different.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I don't mean physical keyboard, but logical, the one set by windows

  • http://javascript.info/tutorial/keyboard-events

    If you make a test here, indeed there is a keycode 0 but there is another variable which that makes the special char appear.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)