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