createStringFromKeyEvent
public static java.lang.String createStringFromKeyEvent(javafx.scene.input.KeyEvent ke)
Create a string, representing the given KeyEvent
.
If this KeyEvent
is a letter press, return the string representing this letter.
If it is a special key (such as F1), wrap the text representing this key in "<>" and then
return this string. (<F1>).
When modifier keys are used, also use <>; then use "S-" for shift,
"A-" for alt and "C-" for control; append this before the actual letter or key pressed as such:
<C-A-a> for control-alt-a. or <C-S-F1> for control-shift-F1.
- Parameters:
ke
-
- Returns: