Just a thought but can you catch and cancel the onbeforeload event? I had a user the other day that kept accidentally going "back" when using my mouse and loosing all of her work.
John On 08/02/2012 12:24, "Fink, Andreas" <[email protected]> wrote: >Hi Thomas, > >you are right there are many ways for a workaround :) >We create many fields dynamic from xml (not only text fields, nearly >every qooxdoo form field and custom fields) and I don't want such a huge >amount of listeners. > >But anyway, my question was more about if this is a bug (I think so) or >the desired behavior. And if there is framework default workaround that >fails on IE 9? > >Regards, >Andreas > >>-----Ursprüngliche Nachricht----- >>Von: thron7 [mailto:[email protected]] >>Gesendet: Mittwoch, 8. Februar 2012 13:06 >>An: qooxdoo Development >>Betreff: Re: [qooxdoo-devel] backspace on readonly field (IE) >> >> >> >>On 02/08/2012 11:48 AM, Fink, Andreas wrote: >>> Hi all, >>> >>> we mentioned a ugly behavior of our app when someone set the cursor in >>>a >>read-only text field an press the backspace key. >>> The browser then loads the previous visited website. At least IE 9 is >>>doing >>this this, it doesn't happen with Firefox. I've not tested other >>Browsers yet. >>> >>> I've implemented a workaround by adding a listener to the root: >>> >>> this.getRoot().addListener("keypress", function(e) { >>> if (e.getKeyIdentifier() === "Backspace") { >>> e.stop(); >>> } >>> }, this); >> >>Why didn't you set the listener on the text field? That would still >>allow backspace navigation if the focus is elsewhere. >> >>Also, you could use .preventDefault(). >> >>T. >> >>------------------------------------------------------------------------- >>----- >>Keep Your Developer Skills Current with LearnDevNow! >>The most comprehensive online learning library for Microsoft developers >>is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>Metro Style Apps, more. Free future releases when you subscribe now! >>http://p.sf.net/sfu/learndevnow-d2d >>_______________________________________________ >>qooxdoo-devel mailing list >>[email protected] >>https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > >-------------------------------------------------------------------------- >---- >Keep Your Developer Skills Current with LearnDevNow! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-d2d >_______________________________________________ >qooxdoo-devel mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
