You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
When a child node is selected in a JTree, the left arrow key should select the parent node, another press of the left arrow should collapse the parent, etc. This doesn't work in Insubstantial and makes navigating a tree with the keyboard very difficult. I only see this problem on Mac OS X (both Oracle and Apple JVMs).
I worked around it in my project by adding the following code to my JTree subclass:
InputMap im = this.getInputMap();
im.put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0), "selectParent");
It's possible other navigation keys are failing however this is the one I need/notice.
When a child node is selected in a JTree, the left arrow key should select the parent node, another press of the left arrow should collapse the parent, etc. This doesn't work in Insubstantial and makes navigating a tree with the keyboard very difficult. I only see this problem on Mac OS X (both Oracle and Apple JVMs).
I worked around it in my project by adding the following code to my JTree subclass:
InputMap im = this.getInputMap();
im.put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0), "selectParent");
It's possible other navigation keys are failing however this is the one I need/notice.
Quick JTree Example:
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.util.Hashtable;
import javax.swing.JFrame;
import javax.swing.JTree;
import javax.swing.UIManager;
import org.pushingpixels.substance.api.skin.SubstanceGraphiteGlassLookAndFeel;
public class TreeTest {
public static void main(String[] args) {
}
The text was updated successfully, but these errors were encountered: