Skip to content

Commit a876d4f

Browse files
committed
Don't consume Ctrl+? on Windows if Alt is not pressed too.
Fixes #185.
1 parent 8d4d1c7 commit a876d4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

richtextfx/src/main/java/org/fxmisc/richtext/skin/StyledTextAreaBehavior.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public class StyledTextAreaBehavior implements Behavior {
137137
// filter out control keys
138138
(!e.isControlDown() && !e.isMetaDown())
139139
// except on Windows allow the Ctrl+Alt combination (produced by AltGr)
140-
|| (isWindows && !e.isMetaDown());
140+
|| (isWindows && !e.isMetaDown() && (!e.isControlDown() || e.isAltDown()));
141141

142142
Predicate<KeyEvent> isChar = e ->
143143
e.getCode().isLetterKey() ||

0 commit comments

Comments
 (0)