revised the way to capture the trigger char

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/pickitem-widget@100400 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2014-10-02 21:06:26 +00:00
parent ad3ed59d4f
commit f54403ff43
1 changed files with 3 additions and 3 deletions

View File

@ -137,12 +137,12 @@ public class PickItemsDialog extends PopupPanel {
hide();
}
else {
String last3 = (currText.length() > 3) ? currText.substring(currText.length()-3): currText;
if (last3.contains(triggerChar)) {
String last7 = (currText.length() > 7) ? currText.substring(currText.length()-7): currText;
if (last7.contains(triggerChar)) {
if (pickingUser(currText)) {
handleNonCharKeys(keyCode);
}
} else if (!last3.contains(triggerChar))
} else if (!last7.contains(triggerChar))
hide();
}
}