All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.guigarage.flatterfx.skin.touch.FlatterTouchTextAreaBehavior Maven / Gradle / Ivy

The newest version!
package com.guigarage.flatterfx.skin.touch;

import javafx.scene.control.TextArea;
import javafx.scene.input.KeyEvent;

import com.sun.javafx.scene.control.behavior.TextAreaBehavior;

public class FlatterTouchTextAreaBehavior extends TextAreaBehavior {

	public FlatterTouchTextAreaBehavior(TextArea textArea) {
		super(textArea);
	}
	
	@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