6827581: Contextkey does not work in Nimbus
authorpeterz
Fri, 15 May 2009 12:06:22 +0400
changeset 1230af491a9b7c1d
parent 1229 455b357442c7
child 1231 993a5f0fe2e0
6827581: Contextkey does not work in Nimbus
Reviewed-by: rupashka
src/share/classes/sun/swing/plaf/GTKKeybindings.java
src/share/classes/sun/swing/plaf/WindowsKeybindings.java
     1.1 --- a/src/share/classes/sun/swing/plaf/GTKKeybindings.java	Thu May 14 18:12:13 2009 +0400
     1.2 +++ b/src/share/classes/sun/swing/plaf/GTKKeybindings.java	Fri May 15 12:06:22 2009 +0400
     1.3 @@ -402,6 +402,11 @@
     1.4                          "released SPACE", "released",
     1.5                          "RETURN", "pressed"
     1.6                  }),
     1.7 +                "RootPane.ancestorInputMap",
     1.8 +                new UIDefaults.LazyInputMap(new Object[]{
     1.9 +                        "shift F10", "postPopup",
    1.10 +                        "CONTEXT_MENU", "postPopup"
    1.11 +                }),
    1.12                  // These bindings are only enabled when there is a default
    1.13                  // button set on the rootpane.
    1.14                  "RootPane.defaultButtonWindowKeyBindings", new Object[]{
     2.1 --- a/src/share/classes/sun/swing/plaf/WindowsKeybindings.java	Thu May 14 18:12:13 2009 +0400
     2.2 +++ b/src/share/classes/sun/swing/plaf/WindowsKeybindings.java	Fri May 15 12:06:22 2009 +0400
     2.3 @@ -360,6 +360,11 @@
     2.4                          "DOWN", "decrement",
     2.5                          "KP_DOWN", "decrement",
     2.6                  }),
     2.7 +                "RootPane.ancestorInputMap",
     2.8 +                new UIDefaults.LazyInputMap(new Object[]{
     2.9 +                        "shift F10", "postPopup",
    2.10 +                        "CONTEXT_MENU", "postPopup"
    2.11 +                }),
    2.12                  // These bindings are only enabled when there is a default
    2.13                  // button set on the rootpane.
    2.14                  "RootPane.defaultButtonWindowKeyBindings", new Object[]{