Forum
Prevent BACKSPACE from booting you off the site
JTek wrote
at 10:41 PM, Wednesday July 26, 2006 EDT |
40 people think this is a good idea
Replies 1 - 8 of 8
vox wrote
at 12:23 PM, Sunday August 6, 2006 EDT its a browser feature, ryan cant do anything about it, but it happens because the fold/call buttons steal the focus off the chat field
|
vox wrote
at 3:48 AM, Tuesday August 8, 2006 EDT You cant disable a browser feature.
|
FineAgedTequila wrote
at 2:39 PM, Friday August 11, 2006 EDT stop stealing focus... PLEASE
|
mongle wrote
at 2:40 AM, Saturday August 12, 2006 EDT yes... definately
|
Mr. M wrote
at 8:07 AM, Sunday August 13, 2006 EDT |
JTek wrote
at 11:05 PM, Wednesday August 23, 2006 EDT Ryan,
This is how I suggest you do it: I've done this in some of my GWT apps: In your onModuleLoad code (in your EntryPoint class) do this: History.addHistoryListener( this ); DeferredCommand.add( new Command() { public void execute() { History.newItem( "c" ); } }); Then in your onHistoryChanged function, do this: if ( !historyToken.equals("d") ) { DeferredCommand.add( new Command() { public void execute() { History.newItem( "d" ); } }); } That way, when the page loads, there are two tokens, "c" and "d" immediately on the history stack. If the user clicks the back button, they'll go back to the "c" token, which just adds a new "d" token. |
JTek wrote
at 11:06 PM, Wednesday August 23, 2006 EDT Also, I don't know why some of those commands had to be deferred, but this technique didn't work for me until I added that.
|
BANNED wrote
at 10:53 PM, Monday February 2, 2009 EST O
|