Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default behaviour for Shift+Backspace #855

Closed
effad opened this issue Oct 15, 2019 · 1 comment · Fixed by #856
Closed

Default behaviour for Shift+Backspace #855

effad opened this issue Oct 15, 2019 · 1 comment · Fixed by #856

Comments

@effad
Copy link

effad commented Oct 15, 2019

Expected Behavior

Shift+Backspace should work exactly like Backspace without any modifier. All the other text widgets in JavaFX behave that way and a lot of text editors (kate, notepad, textareas in browsers, ...) do so as well.

Actual Behavior

Shift+Backspace does nothing.

Reproducible Demo

Use any CodeArea or other Demo, and press Shift+Backspace

Environment info:

  • RichTextFX Version:0.10.2
  • Operating System: Linux
  • Java version: 12
@effad
Copy link
Author

effad commented Oct 15, 2019

Current workaround:

		InputMap<KeyEvent> allowShiftBackspace = InputMap.consume(
			keyPressed(KeyCode.BACK_SPACE, KeyCombination.SHIFT_DOWN), (e) -> textarea.deletePreviousChar()
		);
		Nodes.addInputMap(textarea, allowShiftBackspace);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant