GWT:how to display a popup at the poistion of the key pressed -
i trying display word suggestion list when ctl+space entered in eclipse. need know location user has entered ctrl+space can display suggestion list exact below word user entered.
i see ways mouse cursor position , isnt there way keyboard button pressed position , writing within textarea, tried getcursor, gives me no of word on user entered ctrl+space. not location per window.
any thought
thanks
there no reliable, accurate , cross-browser way textarea.
you can experiment richtextarea (you don't have provide toolbar rich text features) , getformatter().inserthtml()
method. insert new html element @ cursor position. can insert list of suggested words, can style anyway like, or can insert empty div
, seek show panel relative it.
or can utilize different ui approach. create panel fixed position relative textarea , show suggested words there - similar way smartphone keyboards show suggested words above keyboard itself. 1 time users realize suggested words show in same place, may design better.
gwt
No comments:
Post a Comment