changeset 1230:af491a9b7c1d

6827581: Contextkey does not work in Nimbus Reviewed-by: rupashka
author peterz
date Fri, 15 May 2009 12:06:22 +0400
parents 455b357442c7
children 993a5f0fe2e0
files src/share/classes/sun/swing/plaf/GTKKeybindings.java src/share/classes/sun/swing/plaf/WindowsKeybindings.java
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/swing/plaf/GTKKeybindings.java	Thu May 14 18:12:13 2009 +0400
+++ b/src/share/classes/sun/swing/plaf/GTKKeybindings.java	Fri May 15 12:06:22 2009 +0400
@@ -402,6 +402,11 @@
                         "released SPACE", "released",
                         "RETURN", "pressed"
                 }),
+                "RootPane.ancestorInputMap",
+                new UIDefaults.LazyInputMap(new Object[]{
+                        "shift F10", "postPopup",
+                        "CONTEXT_MENU", "postPopup"
+                }),
                 // These bindings are only enabled when there is a default
                 // button set on the rootpane.
                 "RootPane.defaultButtonWindowKeyBindings", new Object[]{
--- a/src/share/classes/sun/swing/plaf/WindowsKeybindings.java	Thu May 14 18:12:13 2009 +0400
+++ b/src/share/classes/sun/swing/plaf/WindowsKeybindings.java	Fri May 15 12:06:22 2009 +0400
@@ -360,6 +360,11 @@
                         "DOWN", "decrement",
                         "KP_DOWN", "decrement",
                 }),
+                "RootPane.ancestorInputMap",
+                new UIDefaults.LazyInputMap(new Object[]{
+                        "shift F10", "postPopup",
+                        "CONTEXT_MENU", "postPopup"
+                }),
                 // These bindings are only enabled when there is a default
                 // button set on the rootpane.
                 "RootPane.defaultButtonWindowKeyBindings", new Object[]{