Re: Robust (cross-browser) check for a specific keycode?

2009-04-22 Thread jchimene
On Apr 7, 8:11 am, Isaac Truett itru...@gmail.com wrote: jchimene, The idea of a suggestBox.showDefaultSuggestions() has been tossed around. That would get you the initial list of suggestions that you're looking for. Unfortunately, this feature didn't make it into GWT 1.6 and I don't

Re: Robust (cross-browser) check for a specific keycode?

2009-04-08 Thread jchimene
Well, I found myself moving to 1.6 sooner rather than later - mostly to take advantage of the Eclipse plug-in. Yes, I could have stayed on 1.5 even with the plug-in, but it was a slow news day. So, I will take a look at the library Cheers, jec

Re: Robust (cross-browser) check for a specific keycode?

2009-04-07 Thread jchimene
On Apr 6, 8:35 pm, mP miroslav.poko...@gmail.com wrote: Not always, this particular manifests itself for special keys like the cursor keys etc. To be fair, according to the docs, KeyboardListener does guarantee cursor movement keys. I believe quirksmode has a good table/chart which tables

Re: Robust (cross-browser) check for a specific keycode?

2009-04-07 Thread Isaac Truett
jchimene, The idea of a suggestBox.showDefaultSuggestions() has been tossed around. That would get you the initial list of suggestions that you're looking for. Unfortunately, this feature didn't make it into GWT 1.6 and I don't think there's even an issue open to track it. But if you're

Re: Robust (cross-browser) check for a specific keycode?

2009-04-07 Thread jchimene
On Apr 7, 8:11 am, Isaac Truett itru...@gmail.com wrote: jchimene, The idea of a suggestBox.showDefaultSuggestions() has been tossed around. That would get you the initial list of suggestions that you're looking for. Unfortunately, this feature didn't make it into GWT 1.6 and I don't

Robust (cross-browser) check for a specific keycode?

2009-04-06 Thread Jeff Chimene
Hi, Can I reliably (cross-browser) check for a specific keycode using the following code: public void onKeyDown(Widget sender, char keyCode, int modifiers) { if ( 191 == (int)keyCode) { // question mark Window.alert(help); } } TIA, jec

Re: Robust (cross-browser) check for a specific keycode?

2009-04-06 Thread mP
Not always, this particular manifests itself for special keys like the cursor keys etc. I believe quirksmode has a good table/chart which tables keycodes. Perhaps a good future enhancement might be for GWT to normalize the differences so developers can code without being aware if these quirks.