Thanks Fernando, Great to hear it's on the roadmap, and for the moment I can just do my own hack.
As to your input and related suggestions, I noticed that in the current interface, but this still struggles me. So let me use your example: Input: twitter this is wonderful 1) twitter http://google.com is wonderful 2) twitter this is wonderful The suggestion list is fine, and the first one is highlighted, that's fine too, and I can use arrow keys easily to navigate the selections. However, after I highlight the 2nd suggestion, and then I want to keep typing then the highlight goes back to the 1st one, that is really unfriendly. Charlie On Feb 4, 12:23 pm, Fernando Takai <[email protected]> wrote: > Charlie, > > It's on our roadmap to provide API for pluggable interfaces. > Right now, it's kind of difficult to do all this. > > As for the other question - i think we should change the suggestions for > something like: with modifiers (and replacements), without modifiers (and > without replacements) and, them, show the variations. I.e.: > > Input: twitter this is wonderful as fernando_takai > > 1) twitterhttp://google.comis wonderful (as) fernando_takai > 2) twitter this is wonderful as fernando_takai (as) (user) > 3) twitter this is wonderful (as) fernandotakai > > and on and on. > > > > On Wed, Feb 4, 2009 at 3:00 PM, Charlie <[email protected]> wrote: > > > Again this is related to my previous question about exposing an API to > > get user input, since no one is interested in that thread, I am trying > > another one. > > > As I saw the usage of gUbiquity, and after reading the ubiquity.js > > code, seems I can get the user input through: > > > var mainWindow = context.chromeWindow.QueryInterface > > (Components.interfaces.nsIInterfaceRequestor) > > .getInterface > > (Components.interfaces.nsIWebNavigation) > > .QueryInterface > > (Components.interfaces.nsIDocShellTreeItem) > > .rootTreeItem > > .QueryInterface > > (Components.interfaces.nsIInterfaceRequestor) > > .getInterface > > (Components.interfaces.nsIDOMWindow); > > var input = mainWindow.gUbiquity.__textBox.value; > > > Of course, this has the command name inside the input, but it's > > trivial to take it out. But the real concern is I am trying to access > > a member value decorated by '__', and I assume that meant to be > > private. > > > And I even can change the input text value (which is not something I > > wanted) through: > > mainWindow.gUbiquity.__textBox.value = 'hacked'; > > > I would hope to give a getter officially by ubiquity and close the > > setter by making the textBox ture private > > > Thanks, > > Charlie > > -- > Fernando > "Takai"http://flickr.com/photos/supeertakaihttp://fernandotakai.jaiku.com > > Get Ubiquity:https://ubiquity.mozilla.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ubiquity-firefox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ubiquity-firefox?hl=en -~----------~----~----~----~------~----~------~--~---
