set backtrack look char to 5 instead of 7

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/pickitem-widget@100447 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2014-10-06 09:11:58 +00:00
parent f5779c5372
commit 1718317ebb
1 changed files with 3 additions and 3 deletions

View File

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