Special/specific language character issues

Bugs will be moved here once resolved.

Post » Tue Jan 10, 2017 4:02 pm

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
B
34
S
8
G
4
Posts: 158
Reputation: 3,783

Post » Thu Jan 19, 2017 5:21 pm

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.
Scirra Founder
B
402
S
238
G
89
Posts: 24,628
Reputation: 196,023

Post » Thu Jan 19, 2017 5:22 pm

I don't mean physical keyboard, but logical, the one set by windows
B
34
S
8
G
4
Posts: 158
Reputation: 3,783

Post » Thu Jan 19, 2017 5:25 pm

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.
B
34
S
8
G
4
Posts: 158
Reputation: 3,783


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests