From e0aa625db29da9bad43c06eb0d249a7b3971b470 Mon Sep 17 00:00:00 2001 From: peterz Date: Fri, 15 May 2009 12:06:22 +0400 Subject: [PATCH] 6827581: Contextkey does not work in Nimbus Reviewed-by: rupashka --- src/share/classes/sun/swing/plaf/GTKKeybindings.java | 5 +++++ src/share/classes/sun/swing/plaf/WindowsKeybindings.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/share/classes/sun/swing/plaf/GTKKeybindings.java b/src/share/classes/sun/swing/plaf/GTKKeybindings.java index 3701d86cc..a4c08df23 100644 --- a/src/share/classes/sun/swing/plaf/GTKKeybindings.java +++ b/src/share/classes/sun/swing/plaf/GTKKeybindings.java @@ -402,6 +402,11 @@ public class GTKKeybindings { "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[]{ diff --git a/src/share/classes/sun/swing/plaf/WindowsKeybindings.java b/src/share/classes/sun/swing/plaf/WindowsKeybindings.java index 48f93e787..37c744347 100644 --- a/src/share/classes/sun/swing/plaf/WindowsKeybindings.java +++ b/src/share/classes/sun/swing/plaf/WindowsKeybindings.java @@ -360,6 +360,11 @@ public class WindowsKeybindings { "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[]{ -- GitLab