
com.guigarage.flatterfx.skin.touch.FlatterTouchComboBoxBehavior Maven / Gradle / Ivy
The newest version!
package com.guigarage.flatterfx.skin.touch;
import java.util.ArrayList;
import javafx.scene.control.ComboBoxBase;
import javafx.scene.input.KeyEvent;
import com.sun.javafx.scene.control.behavior.ComboBoxBaseBehavior;
import com.sun.javafx.scene.control.behavior.KeyBinding;
public class FlatterTouchComboBoxBehavior extends ComboBoxBaseBehavior {
public FlatterTouchComboBoxBehavior(ComboBoxBase comboBox) {
super(comboBox, new ArrayList());
}
@Override
protected String matchActionForEvent(KeyEvent e) {
String action = TouchFlattertTraversalHelper.matchActionForEvent(e, getControl().getEffectiveNodeOrientation());
if(action != null) {
return action;
}
return super.matchActionForEvent(e);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy