In an Anrdroid app running through ARC, keyboard events have the wrong characters for international layouts.
Reported by
workspac...@gmail.com,
Jul 20 2016
|
||||||||||
Issue description
UserAgent: Mozilla/5.0 (X11; CrOS armv7l 8530.13.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.15 Safari/537.36
Platform: 8530.13.0 (Official Build) dev-channel veyron_minnie
Steps to reproduce the problem:
1. Install an Android app with this code in an Activity on a Chromebook:
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
Log.d(event.getUnicodeChar());
return true;
}
2. Change your Chromebook's keyboard layout to something non-English (e.g. German).
3. Press a key which should give a different unicode character from the English layout. (e.g. the 'y' key which should type the letter 'z')
What is the expected behavior?
event.getUnicodeChar() returns 122 ('z'), or the appropriate unicode code point for the character that should be typed.
What went wrong?
event.getUnicodeChar() returns 121 ('y'), or whatever the key would be in an English layout.
WebStore page:
Did this work before? N/A
Chrome version: 53.0.2785.15 Channel: dev
OS Version: 8530.13.0
Flash Version: Shockwave Flash 22.0 r0
The behavior is also wrong if you run the app through ARC Welder, but slightly differently. Specifically, pressing the 'ΓΌ' key (where the { is on an English keyboard) gives ';'.
Interestingly, in Android standard controls, like EditTexts, the input is correct.
,
Jul 22 2016
,
Aug 6 2016
https://developer.android.com/reference/android/widget/TextView.OnEditorActionListener.html In our App we are using this interface to read enter key from keyboard or barcode scanners. mEditText.setOnEditorActionListener(new OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event){ if (event.getKeyCode() == KeyEvent.KEYCODE_ENTER){ // some app logic return true; } return false; } }); It's never get this callback. Tested on Windows 10 and MAC OS X with latest ARC and chrome canary.
,
Aug 7 2016
#3: That seems to be a separate issue of the one being discussed here, but to clarify: Are you using this ARC: https://developer.chrome.com/apps/getstarted_arc or are you using the native Android with the Google Play Store running on Chrome OS?
,
Aug 8 2016
Yeah I am using this: https://developer.chrome.com/apps/getstarted_arc on MAC OS and windows 10, have not tried on ChromeBook or Chrome OS.
,
Aug 12 2016
omprakashsrv@gmail.com: That is a separate issue on a separate technology. I have filed a separate bug for this: https://bugs.chromium.org/p/chromium/issues/detail?id=637293
,
Sep 19 2016
,
Sep 19 2016
,
Jan 23 2017
,
May 11 2017
,
Oct 11 2017
Same issue. Acer Chromebook 14, Chrome 61
,
Dec 21 2017
Termux on a Chromebook with German keyboard is receiving keys from US layout. Sounds like this issue? (63.0.3239.86)
,
Dec 21 2017
There is an internal bug tracking the issue at b/27877642 It looks like yhanada recently made some changes to fix the issue. I will re-assign to him.
,
Feb 28 2018
The first step mentioned in comment 1 should be fixed already.
,
Jul 17
,
Jul 23
,
Jul 23
|
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by denniskempin@google.com
, Jul 22 2016