We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ab3898 commit 4ff9ad6Copy full SHA for 4ff9ad6
1 file changed
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
@@ -5728,12 +5728,13 @@ void handleHorizontalScroll(Event event) {
5728
* @param event keyboard event
5729
*/
5730
void handleKey(Event event) {
5731
- int action;
5732
caretAlignment = PREVIOUS_OFFSET_TRAILING;
+ int action = SWT.NULL;
5733
if (event.keyCode != 0) {
5734
// special key pressed (e.g., F1)
5735
action = getKeyBinding(event.keyCode | event.stateMask);
5736
- } else {
+ }
5737
+ if (action == SWT.NULL && event.character != 0) {
5738
// character key pressed
5739
action = getKeyBinding(event.character | event.stateMask);
5740
if (action == SWT.NULL) {
0 commit comments