FXMisc / RichTextFX

Rich-text area for JavaFX
BSD 2-Clause "Simplified" License
1.21k stars 236 forks source link

Copy keybind (Control + C) does not update clipboard on alternative keyboard layouts #1253

Open Col-E opened 3 hours ago

Col-E commented 3 hours ago

On a ENG keyboard layout Control C copies text in a CodeArea as one would expect.

On other keyboard layouts such as RUS the clipboard contents are never updated.

https://github.com/user-attachments/assets/76ef4ae5-043e-4bd1-9ade-293094d77836

Col-E commented 2 hours ago

It seems that GenericStyledAreaBehavior's copy key mapping is never invoked. The WellBehaved event flow is a bit confusing to me so I haven't dug into it much.

For comparison, this is a TextInput handling Control + C (what I press physically) when I have my layout set to RUS

image

Its acknowledging that this is Control + C. Same goes for other binds like Control + A to select all, etc.