History log of /frameworks/base/core/java/android/text/method/QwertyKeyListener.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
63bf04d88bcc00876c30c9f2848da8c44b42185b 20-May-2014 Jeff Brown <jeffbrown@android.com> Merge "Fix NullException in QwertyKeyListener.KeyDown"
14f10e5d5f51bc54ca2a45ee62d3cfb6debd3af0 18-Sep-2013 Raph Levien <raph@google.com> Revert "Revert "Take the input device into account for meta state""

This reverts commit 3954fd9a05232cb6f7fc52aa49a0b34c1539028a, which
is equivalent to re-applying 8a1597b39632956cdbcb6b76874ccca786047d4c.

The change ("Take the input device into account for meta state") was
valid but caused CTS test failures because the test was wrong. The
test injected a key event with the meta state missing. This faulty
test was masked by the old toggle behavior.
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
3954fd9a05232cb6f7fc52aa49a0b34c1539028a 17-Sep-2013 Raph Levien <raph@google.com> Revert "Take the input device into account for meta state"

This reverts commit 8a1597b39632956cdbcb6b76874ccca786047d4c. That
commit broke some of the handling of meta state, which in turn caused
CTS test failures, notably bug 10210151 (CTS:
android.text.method.cts.BaseKeyListenerTest#testBackspace_withSendKeys
is failing on KLP).

So this revert fixes those test failures, but leaves bug 8303489
(Pressing shift on the hardware keyboard messes with unrelated
keypresses, including virtual ones) still present. We'll plan to
address that in a future release.

Change-Id: Iea42c643b6d08f33cbd2ed1747e8de3b5f8116a6
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
8a1597b39632956cdbcb6b76874ccca786047d4c 05-Mar-2013 Jean Chalard <jchalard@google.com> Take the input device into account for meta state

Interesting nits about this:
- getMetaState(long) and getMetaState(long, int) do not
seem to be used anywhere in the framework. Maybe we
want to skip adding getMetaState(long, KeyEvent) and
getMetaState(long, int, KeyEvent).
- getMetaState(CharSequence, int) is used extensively
throughout the code. In some places, a KeyEvent is
available and should be considered - this change does
implement this. In many other cases, there is no
relevant KeyEvent for this action (for example,
Editor#extractTextInternal). In these cases, the
behavior is affected by the current latch state, so
it's fine to leave them as is.

Bug: 8303489

Change-Id: I4a948c497c49e48f83ba1048520e7fe5bfe84727
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
548655045a9c9791bd33e77a823afea5846228ab 26-Feb-2013 Jean Chalard <jchalard@google.com> Fix dead key -> space combination.

This also fixes "dead key -> same dead key" combination.
Both these key sequences should only give the non-combining
version of the combining character.

Bug: 8158374
Change-Id: I51f01685dd2997c2c5316ce6aa4f10ac9354c877
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
e004b868f3e10d133798cfc719a69e3a1db0fa18 29-Aug-2012 Dmitry Tsyganyuk <fdt017@motorola.com> Fix NullException in QwertyKeyListener.KeyDown

Extending null protection for view to "c == i" case in addition to
"c == Character.toUpperCase(i)" case that helped to fix some force closures.
Seems as typo in original implementation.

Change-Id: Ibaa5aea95c5c8cdc8ac981fe0d1dad313e3e692f
Signed-off-by: Dmitry Tsyganyuk <fdt017@motorola.com>
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
405bc51c5dc73846a4abdc325cd234eb2d37469f 29-May-2012 Jean Chalard <jchalard@google.com> Add/refine comments to reflect key event policies

Make clearer how the platform is handling key events following some
unfortunate uses by third party applications. Also highlight the
changes in Jelly Bean default keyboard.

Bug: 6566711
Change-Id: Ibcdaf54c6d629fd0733529bfe2fffc82f555f084
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
14d0ca1473b991288b2dfab57409054dec7cd2fa 22-Dec-2010 Jeff Brown <jeffbrown@google.com> Add support for forward delete key.

Change-Id: Ib356abddd92db12d6b33e19234136c0d167f0e15
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
47e6b1b5eef8ee99872f278f66bc498c4fcca0d8 30-Nov-2010 Jeff Brown <jeffbrown@google.com> Support non-orientation aware keyboards and other devices.

Fixed a bug with dpad keys on external keyboards being rotated
according to the display orientation by adding a new input device
configuration property called "keyboard.orientationAware".

Added a mechanism for overriding the key layout and key character
map in the input device configuration file using the new
"keyboard.layout" and "keyboard.characterMap" properties.

Also added "trackball.orientationAware", "touch.orientationAware" and
"touch.deviceType" configuration properties.

Rewrote the configuration property reading code in native code
so that it can be used by EventHub and other components.

Added basic support for installable idc, kl, and kcm files
in /data/system/devices. However, there is no provision for
copying files there yet.

Disabled long-press character pickers on full keyboards so that
key repeating works as expected.

Change-Id: I1bd9f0c3d344421db444e7d271eb09bc8bab4791
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
6b53e8daa69cba1a2a5a7c95a01e37ce9c53226c 11-Nov-2010 Jeff Brown <jeffbrown@google.com> Added support for full PC-style keyboards.

BREAKING CHANGE: Redesigned the key character map format to
accomodate full keyboards with more comprehensive suite of modifiers.
Old key character maps will not work anymore and must be updated.
The new format is plain text only and it not compiled to a binary
file (so the "kcm" tool will be removed in a subsequent check-in).

Added FULL keyboard type to support full PC-style keyboards.

Added SPECIAL_FUNCTION keyboard type to support special function
keypads that do not have any printable keys suitable for typing
and only have keys like HOME and POWER

Added a special VIRTUAL_KEYBOARD device id convention that maps
to a virtual keyboard with a fixed known layout. This is designed
to work around issues injecting input events on devices whose
built-in keyboard does not have a useful key character map (ie.
when the built-in keyboard is a special function keyboard only.)

Modified several places where events were being synthesized
to use the virtual keyboard.

Removed support for the "qwerty" default layout.
The new default layout is "Generic". For the most part "qwerty"
was being used as a backstop in case the built-in keyboard did
not have a key character map (probably because it was a special
function keypad) and the framework needed to be able to inject
key events anyways. The latter issue is resolved by using the
special VIRTUAL_KEYBOARD device instead of BUILT_IN_KEYBOARD.

Added the concept of a key modifier behavior so that
MetaKeyKeyListener can distinguish between keyboards that use
chorded vs. toggled modifiers.

Wrote more robust key layout and key character map parsers
to enable support for new keyboard features and user installable
key maps.

Fixed a bug in InputReader generating key ups when keys
are released out of sequence.

Updated tons of documentation.

Currently QwertyKeyListener is being used for full keyboards
with autotext and capitalization disabled. This mostly works
but causes some problems with character pickers, etc.
These issues will be resolved in subsequent changes.

Change-Id: Ica48f6097a551141c215bc0d2c6f7b3fb634d354
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
d7c432bf7f9c0c9dd6d954fffcd68828c0e309a5 18-Nov-2009 Eric Fischer <enf@google.com> Add vertical bar to the alt-space character picker for the hardware keyboard.

Bug 2242177

Approver: jerryw
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
ec1f8a2ecedb4904ca93bce14b4e1e033539fa55 01-Oct-2009 Eric Fischer <enf@google.com> Add Turkish accented letters for G and S on the hard keyboard.

Bug 2158331
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
cebe347e7ff99c593a0136ae8bcb3cadab7d77b6 17-Sep-2009 Eric Fischer <enf@google.com> Add one more hardware keyboard character popup: \ if you hold /
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
4ef29959bda59ae5f90aeeb48a8ef7e218500d03 16-Sep-2009 Eric Fischer <enf@google.com> Reconcile the character popups for the hard and soft keyboards.

Have the hardware keyboard popups for digits and symbols include
all the same characters as the soft keyboard has for those keys.

Bug 2056195
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
f16da4555fbfbf9a92373dd2236f1f30b7f451e6 13-Aug-2009 Eric Fischer <enf@google.com> Add brackets, braces, and backslash to alt-space character entry popup.

Bug 2024806
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
a3ea3ae07ff3fec565215ad73fc7430a07b57418 31-Mar-2009 Eric Fischer <> AI 143697: am: CL 143669 am: CL 143495 Add more accented letters to the character picker.
The hardware keyboard doesn't have all the accents needed for
Czech and Polish, so round out the selection.
Original author: enf
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143697
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
c39a6e0c51e182338deb8b63d07933b585134929 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
4df2423a947bcd3f024cc3d3a1a315a8dc428598 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/text/method/QwertyKeyListener.java