Dianne Hackborn
83fe3f5592
Last big work on #1991910 : Make swipes work with capacitive keys
...
This takes care of allowing us to cancel the back button. The
back button is a bear because it is strewn all over the place --
everywhere you can close something, there is some code looking
for the back button that now needs to deal with being canceled.
The main things changed are activity (of course), dialog,
input method, search dialog. There are some other misc places
in the framework (and some I missed here that I will get in a
second pass).
To facility all of this, the key dispatching APIs now provide
a lot more support for dealing with looking for cancelled keys,
and incidentally also provide an actual API for catching long
key presses. This also helped clean up the code in PhoneWindow
where it deals with all of the combinations of key pressed and
releases. (And also allows people to override
Activity.onKeyLongPress() to provide a different long press
action for a standard key like search.)
And while I was doing this, I reworked how we detect long
presses by having this be part of the key event delivered by
the window manager. This should greatly reduce (hopefully
outright eliminate) the problems with long presses being
mis-detected when an application is being slow.
Change-Id: Ia19066b8d588d573df3eee6d96e1c90fdc19f57d
2009-09-14 17:53:52 -07:00
Amith Yamasani
8b37eb0c2a
Fix bug 2045914: When pressing 2 keys, sometimes the second key gets stuck.
...
Also lock repeatable keys so that you don't get space and 'v', for example,
when you move just a little bit off the spacebar.
2009-08-19 20:05:43 -07:00
Amith Yamasani
ba4d93fcd7
Potential fix for NPE at startExtractingText.
...
This is not easy to reproduce. Adding a simple null check to see if the
monkeys continue to hit the NPE.
2009-08-19 18:29:45 -07:00
Amith Yamasani
ae09878698
Increase search radius for adjacent keys, to reduce unpredictability of
...
suggestions.
2009-08-13 13:00:12 -07:00
Amith Yamasani
29d85df051
Remove delay for key feedback bubble.
...
Most users seem to expect the feedback to show up right away. So
remove the delay before the bubble shows up.
2009-08-11 16:45:07 -07:00
Amith Yamasani
e877ec632c
Use multi-pointer support to improve 2-thumb typing. No more missed keys!
...
Also reduce garbage when switching between keyboards.
2009-08-06 11:32:06 -07:00
Amith Yamasani
e403700972
Fix #1977876 : Key preview in WVGA broken.
...
Use PX unit when setting the text size since we're getting the size from getTextSize()
Reduce delay for popup.
2009-07-23 17:38:15 -07:00
Amith Yamasani
b974c7a749
Fix for enabling auto-switch back to alpha mode from symbols.
...
When switching keyboards in the IME view, make sure that any pending touches
don't generate up events when released.
2009-07-21 15:09:24 -07:00
Mitsuru Oshima
58feea74b4
* update all metrics data when updating density.
...
* Keyboard should use DisplayMetrics from Resource rather than getting it from WindowManager as
the display metrics can differ under compatibility mode.
2009-05-11 15:58:32 -07:00
Amith Yamasani
f04da95400
Fix keyboard redraw bug on long-press of CapsLock.
...
Expose invalidateKey and invalidateAllKeys for subclasses to call when needed.
2009-05-08 10:34:39 -07:00
Andy Stadler
f8a7ceaef2
AI 145778: Manual merge changes 145382-145384 from cupcake.
...
Automated import of CL 145778
2009-04-10 16:24:47 -07:00
Dianne Hackborn
88fb1069bf
AI 143147: Manual integration
...
Automated import of CL 143147
2009-03-27 14:59:22 -07:00
The Android Open Source Project
105925376f
auto import from //branches/cupcake_rel/...@140373
2009-03-18 17:39:46 -07:00
The Android Open Source Project
ba87e3e6c9
auto import from //branches/cupcake_rel/...@138607
2009-03-13 13:04:22 -07:00
The Android Open Source Project
c39a6e0c51
auto import from //branches/cupcake/...@137873
2009-03-11 12:11:56 -07:00
The Android Open Source Project
b2a3dd88a5
auto import from //branches/cupcake/...@137197
2009-03-09 11:52:12 -07:00
The Android Open Source Project
4df2423a94
auto import from //depot/cupcake/@136594
2009-03-05 14:34:35 -08:00
The Android Open Source Project
9066cfe988
auto import from //depot/cupcake/@135843
2009-03-03 19:31:44 -08:00
The Android Open Source Project
d83a98f4ce
auto import from //depot/cupcake/@135843
2009-03-03 18:28:45 -08:00
The Android Open Source Project
076357b856
auto import from //depot/cupcake/@132589
2009-03-03 14:04:24 -08:00
The Android Open Source Project
3dec7d563a
auto import from //depot/cupcake/@137055
2009-03-02 22:54:33 -08:00
The Android Open Source Project
15ab3eae2e
auto import from //branches/cupcake/...@132569
2009-02-20 07:38:31 -08:00
The Android Open Source Project
3001a03543
auto import from //branches/cupcake/...@132276
2009-02-19 10:57:31 -08:00
The Android Open Source Project
da996f390e
auto import from //branches/cupcake/...@131421
2009-02-13 12:57:50 -08:00
The Android Open Source Project
d24b8183b9
auto import from //branches/cupcake/...@130745
2009-02-10 15:44:00 -08:00
The Android Open Source Project
f1e484acb5
auto import from //branches/cupcake/...@127436
2009-01-22 00:13:42 -08:00
The Android Open Source Project
22f7dfd234
auto import from //branches/cupcake/...@127101
2009-01-20 14:03:58 -08:00
The Android Open Source Project
9266c558bf
auto import from //branches/cupcake/...@126645
2009-01-15 16:12:10 -08:00
The Android Open Source Project
b798689749
auto import from //branches/cupcake/...@125939
2009-01-09 17:51:23 -08:00
The Android Open Source Project
f013e1afd1
Code drop from //branches/cupcake/...@124589
2008-12-17 18:05:43 -08:00