Hi Jason Anything that avoids the mouse is good news! However, at the moment (in FF) my workflow is:
Tab,Enter to view the exception, then (once I fixed the error in my separate editor), Ctrl-F4 to close the ticket and F5 to refresh my app. I don't need the mouse for that, but any keyboard shortcuts are always welcome which is why I like the new Time widget :) -D On Nov 17, 12:35 pm, encompass <[email protected]> wrote: > I have to deal with a lot of funky errors in my code and being a > developer I avoid the mouse as much as I can. I thought this might > come in handy... > I change line 40 in web2py/gluon/rewrite.py to the following: > p.error_message_ticket = \ > ''' > <html onkeydown="GetChar()"> > <body> > <h1> > Internal error > </h1> > Ticket issued-:- > <a href="/admin/default/ticket/%(ticket)s" > target="_blank"> > %(ticket)s > </a> > </body> > <!-- this is junk text else IE does not display the page: > '+('x'*512)+' //--> > </html> > <script> > function GetChar(){ > window.location = "/admin/default/ticket/%(ticket)s"; > } > </script>''' > Not only is it more readable in the code. But anyone that doesn't > want to click on that link can just press any key. > It may be better if we just take the space bar (Cause alt would make > it just to the error) And it doesn't open a new window like you do > when you click on it.(I may do that next.)... but I wanted to give > this to you guys to see what you thought about it. I don't like the > mouse when I am programming, so this saves me a bit of time when you > think about it. > BR, > Jason Brower

