Cay Horstmann wrote:
> 
> I had a similar problem with another project. Here is what I did in my
> toolbar component.
> 
>   // free up ctrl TAB for cycling windows
>       Set oldKeys =
> getFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS);
>       HashSet newKeys = new HashSet();
>       newKeys.addAll(oldKeys);
>       newKeys.remove(KeyStroke.getKeyStroke("ctrl TAB"));
>       setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
> newKeys);
>       oldKeys =
> getFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS);
>       newKeys = new HashSet();
>       newKeys.addAll(oldKeys);
>       newKeys.remove(KeyStroke.getKeyStroke("ctrl shift TAB"));
>       setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,
> newKeys);
> 

Thank you for telling us about this. We'll give it a try. We hope that 
it will work because we would really like to kill this 
Ctrl-TAB/Ctrl+Shift-TAB thread.

Reply via email to