summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-12-07 16:36:01 -0800
committerJeff Brown <jeffbrown@google.com>2011-12-07 21:37:16 -0800
commit68b909d8acd92343fa0b1dff2f77fcd9d9991f9f (patch)
tree73df34f562dafe3807615c773530dedce3d83ae0 /core
parenteb3e4b98a45722d5d1ea73e45d86c119d678bb05 (diff)
downloadframeworks_base-68b909d8acd92343fa0b1dff2f77fcd9d9991f9f.zip
frameworks_base-68b909d8acd92343fa0b1dff2f77fcd9d9991f9f.tar.gz
frameworks_base-68b909d8acd92343fa0b1dff2f77fcd9d9991f9f.tar.bz2
Fix system hotkey handling.
Fixed a problem where the key up for the ALT or META key was not delivered to the task switcher dialog because it was deemed to be inconsistent with the window's observed state. Consequently the dialog would not be dismissed when the key was released. Moved global hotkey handling for META+* shortcuts and ALT/META-TAB into the window manager policy's interceptKeyBeforeDispatching method. This change prevents applications from hijacking these keys. The original idea was that these shortcuts would be handled only if the application did not handle them itself. That way certain applications, such as remote desktop tools, could deliberately override some of these less important system shortcuts. Unfortunately, that does make the behavior inconsistent across applications. What's more, bugs in the onKeyDown handler of applications can cause the shortcuts to not work at all, for no good reason. Perhaps we can add an opt-in feature later to enable specific applications to repurpose these keys when it makes sense. Bug: 5720358 Change-Id: I22bf17606d12dbea6549c60d20763e6608576cf7
Diffstat (limited to 'core')
-rw-r--r--core/res/res/values/themes.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/res/res/values/themes.xml b/core/res/res/values/themes.xml
index b18d88f..fe5388b 100644
--- a/core/res/res/values/themes.xml
+++ b/core/res/res/values/themes.xml
@@ -810,7 +810,7 @@ please see themes_device_defaults.xml.
<!-- Special theme for the recent apps dialog, to allow customization
with overlays. -->
- <style name="Theme.Dialog.RecentApplications">
+ <style name="Theme.Dialog.RecentApplications" parent="Theme.DeviceDefault.Dialog">
<item name="windowFrame">@null</item>
<item name="windowBackground">@android:color/transparent</item>
<item name="android:windowAnimationStyle">@android:style/Animation.RecentApplications</item>