Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #75 from mkaring/1.4

TextField Bugfix
  • Loading branch information...
commit 8ebfd5853c08983ca2efa106346355d3e6271aae 2 parents c0a8083 + 46ab605
@void256 authored
View
6 nifty-controls/src/main/java/de/lessvoid/nifty/controls/textfield/TextFieldLogic.java
@@ -432,6 +432,9 @@ private boolean filterAndInsert(final char c) {
if (filterInputSingle.acceptInput(cursorPosition, c)) {
text.insert(cursorPosition, c);
cursorPosition++;
+ if (selecting) {
+ startSelecting();
+ }
return true;
}
}
@@ -461,6 +464,9 @@ private boolean filterAndInsert(final CharSequence chars) {
if (filterInputSequence.acceptInput(cursorPosition, insertSequence)) {
text.insert(cursorPosition, chars);
cursorPosition += insertCnt;
+ if (selecting) {
+ startSelecting();
+ }
return true;
} else {
final int length = chars.length();
Please sign in to comment.
Something went wrong with that request. Please try again.