6827581: Contextkey does not work in Nimbus
authorpeterz
Fri, 15 May 2009 12:06:22 +0400
changeset 2816 847399d5b5e9
parent 2815 871a18365b14
child 2817 f171f2417978
6827581: Contextkey does not work in Nimbus Reviewed-by: rupashka
jdk/src/share/classes/sun/swing/plaf/GTKKeybindings.java
jdk/src/share/classes/sun/swing/plaf/WindowsKeybindings.java
--- a/jdk/src/share/classes/sun/swing/plaf/GTKKeybindings.java	Thu May 14 18:12:13 2009 +0400
+++ b/jdk/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/jdk/src/share/classes/sun/swing/plaf/WindowsKeybindings.java	Thu May 14 18:12:13 2009 +0400
+++ b/jdk/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[]{