diff options
author | Tom Schindl | 2016-01-21 13:37:30 +0000 |
---|---|---|
committer | Tom Schindl | 2016-01-21 13:37:30 +0000 |
commit | 4f40fad6098666c18d206f04aba2c8c8a349b6b3 (patch) | |
tree | 7cecda33c3cccc99a4cfe2e4c3cc01f61a9d0854 | |
parent | 26b90a2759146edb95c6f46923f617fcb2ebbb22 (diff) | |
download | org.eclipse.efxclipse-4f40fad6098666c18d206f04aba2c8c8a349b6b3.tar.gz org.eclipse.efxclipse-4f40fad6098666c18d206f04aba2c8c8a349b6b3.tar.xz org.eclipse.efxclipse-4f40fad6098666c18d206f04aba2c8c8a349b6b3.zip |
Bug 485927 - StyledTextArea enhancements
fixed os-x keyboard
-rw-r--r-- | bundles/runtime/org.eclipse.fx.ui.controls/src/org/eclipse/fx/ui/controls/styledtext/behavior/StyledTextBehavior.java | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/bundles/runtime/org.eclipse.fx.ui.controls/src/org/eclipse/fx/ui/controls/styledtext/behavior/StyledTextBehavior.java b/bundles/runtime/org.eclipse.fx.ui.controls/src/org/eclipse/fx/ui/controls/styledtext/behavior/StyledTextBehavior.java index af055d586..fa9bc093f 100644 --- a/bundles/runtime/org.eclipse.fx.ui.controls/src/org/eclipse/fx/ui/controls/styledtext/behavior/StyledTextBehavior.java +++ b/bundles/runtime/org.eclipse.fx.ui.controls/src/org/eclipse/fx/ui/controls/styledtext/behavior/StyledTextBehavior.java @@ -1227,21 +1227,21 @@ public class StyledTextBehavior { if (Util.isMacOS()) { - keyMapping.mapKey(new KeyCombo(LEFT, ControlKey), this.ACTION_NAVIGATE_LINE_START); - keyMapping.mapKey(new KeyCombo(A, ControlKey), this.ACTION_NAVIGATE_LINE_START); - keyMapping.mapKey(new KeyCombo(RIGHT, ControlKey), this.ACTION_NAVIGATE_LINE_END); - keyMapping.mapKey(new KeyCombo(E, ControlKey), this.ACTION_NAVIGATE_LINE_END); - keyMapping.mapKey(new KeyCombo(UP, ControlKey), this.ACTION_NAVIGATE_TEXT_START); - keyMapping.mapKey(new KeyCombo(DOWN, ControlKey), this.ACTION_NAVIGATE_TEXT_END); + keyMapping.mapKey(new KeyCombo(LEFT, MetaKey), this.ACTION_NAVIGATE_LINE_START); +// keyMapping.mapKey(new KeyCombo(A, ControlKey), this.ACTION_NAVIGATE_LINE_START); + keyMapping.mapKey(new KeyCombo(RIGHT, MetaKey), this.ACTION_NAVIGATE_LINE_END); +// keyMapping.mapKey(new KeyCombo(E, ControlKey), this.ACTION_NAVIGATE_LINE_END); + keyMapping.mapKey(new KeyCombo(UP, MetaKey), this.ACTION_NAVIGATE_TEXT_START); + keyMapping.mapKey(new KeyCombo(DOWN, MetaKey), this.ACTION_NAVIGATE_TEXT_END); keyMapping.mapKey(new KeyCombo(RIGHT, AltKey), this.ACTION_NAVIGATE_WORD_NEXT); keyMapping.mapKey(new KeyCombo(LEFT, AltKey), this.ACTION_NAVIGATE_WORD_PREVIOUS); - keyMapping.mapKey(new KeyCombo(LEFT, ControlKey, ShiftKey), this.ACTION_SELECT_LINE_START); - keyMapping.mapKey(new KeyCombo(A, ControlKey, ShiftKey), this.ACTION_SELECT_LINE_START); - keyMapping.mapKey(new KeyCombo(RIGHT, ControlKey, ShiftKey), this.ACTION_SELECT_LINE_END); - keyMapping.mapKey(new KeyCombo(E, ControlKey, ShiftKey), this.ACTION_SELECT_LINE_END); - keyMapping.mapKey(new KeyCombo(UP, ControlKey, ShiftKey), this.ACTION_SELECT_TEXT_START); - keyMapping.mapKey(new KeyCombo(DOWN, ControlKey, ShiftKey), this.ACTION_SELECT_TEXT_END); + keyMapping.mapKey(new KeyCombo(LEFT, MetaKey, ShiftKey), this.ACTION_SELECT_LINE_START); +// keyMapping.mapKey(new KeyCombo(A, ControlKey, ShiftKey), this.ACTION_SELECT_LINE_START); + keyMapping.mapKey(new KeyCombo(RIGHT, MetaKey, ShiftKey), this.ACTION_SELECT_LINE_END); +// keyMapping.mapKey(new KeyCombo(E, ControlKey, ShiftKey), this.ACTION_SELECT_LINE_END); + keyMapping.mapKey(new KeyCombo(UP, MetaKey, ShiftKey), this.ACTION_SELECT_TEXT_START); + keyMapping.mapKey(new KeyCombo(DOWN, MetaKey, ShiftKey), this.ACTION_SELECT_TEXT_END); keyMapping.mapKey(new KeyCombo(RIGHT, AltKey, ShiftKey), this.ACTION_SELECT_WORD_NEXT); keyMapping.mapKey(new KeyCombo(LEFT, AltKey, ShiftKey), this.ACTION_SELECT_WORD_PREVIOUS); @@ -1253,6 +1253,10 @@ public class StyledTextBehavior { keyMapping.mapKey(new KeyCombo(V, MetaKey), this.ACTION_PASTE); keyMapping.mapKey(new KeyCombo(X, MetaKey), this.ACTION_CUT); + keyMapping.mapKey(new KeyCombo(A, MetaKey), this.ACTION_SELECT_ALL); + keyMapping.mapKey(new KeyCombo(D, MetaKey), this.ACTION_DELETE_LINE); + keyMapping.mapKey(new KeyCombo(UP, AltKey), this.ACTION_MOVE_LINES_UP); + keyMapping.mapKey(new KeyCombo(DOWN, AltKey), this.ACTION_MOVE_LINES_DOWN); } else { keyMapping.mapKey(new KeyCombo(RIGHT, ControlKey), this.ACTION_NAVIGATE_WORD_NEXT); |