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:
parent
f5779c5372
commit
1718317ebb
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue