You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by rw...@apache.org on 2013/12/17 21:13:43 UTC
svn commit: r1551678 -
/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java
Author: rwhitcomb
Date: Tue Dec 17 20:13:42 2013
New Revision: 1551678
URL: http://svn.apache.org/r1551678
Log:
Small fixes to the keyboard navigation in TextArea so the command
modifier is used instead of CTRL (for compatibility with OSX).
Modified:
pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java?rev=1551678&r1=1551677&r2=1551678&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/TextAreaSkin.java Tue Dec 17 20:13:42 2013
@@ -1126,7 +1126,7 @@ public class TextAreaSkin extends Compon
int start;
int selectionStart = textArea.getSelectionStart();
int selectionLength = textArea.getSelectionLength();
- if (ctrlPressed) {
+ if (commandPressed) {
// Move the caret to the beginning of the text
start = 0;
} else {
@@ -1155,7 +1155,7 @@ public class TextAreaSkin extends Compon
int selectionLength = textArea.getSelectionLength();
int index = selectionStart + selectionLength;
- if (ctrlPressed) {
+ if (commandPressed) {
// Move the caret to end of the text
end = textArea.getCharacterCount();
} else {