How do I make the caret of a JTextComponent skip selected text?
问题 the normal behaviour of native text fields in many environments is as follows: Textfield with text "abcdefg". I use the mouse to select "efg" from left to right. The caret is now behind "g". When I move the caret to the left by pressing the cursor left key once, the selection is removed and the caret is right before "e". When I do the same in a JTextField or JTextArea (tested on Mac OS) doing the exact same thing results in the caret being right before "g". I know how I could change that