GNOME Bugzilla – Bug 423440
Permit reloading of scripts while Orca is running
Last modified: 2008-09-05 15:42:08 UTC
It would be desirable to reload scripts on the fly without needing to restart Orca. A suggested keystroke for doing this is a double click on Orca+F3.
While Rich and I were looking at a separate problem (app-specific settings), the following came to mind and I just want to jot this down while I'm thinking of it. I think the syntax to reload a script would be something like: reload(script.__module__) where 'script' is the script instance. If we put this in focus_tracking_presenter.py:_getScript, we would cause the module for a script to be reloaded each time you Alt+Tabbed away from and back to a window. I'm not sure if this would have the expected behavior, but it might be worth looking into.
From my understanding of this RFE I think this is exactly the intended behavior.
(In reply to comment #1) > While Rich and I were looking at a separate problem (app-specific settings), > the following came to mind and I just want to jot this down while I'm thinking > of it. I think the syntax to reload a script would be something like: > > reload(script.__module__) where 'script' is the script instance. If we put > this in focus_tracking_presenter.py:_getScript, we would cause the module for a > script to be reloaded each time you Alt+Tabbed away from and back to a window. > I'm not sure if this would have the expected behavior, but it might be worth > looking into. After thinking about this, Alt+Tab will disrupts scripts that maintain state. For example, the Gecko script for Firefox maintains state regarding caret position on various page tabs. Automatically reloading a script can cause us to lose this state. So, I think the reloading should be something that is done as the result of a purposeful action on part of the user (e.g., Insert+F3). Given that a user can simply restart Orca to load in new scripts, I'm lowering the priority of this RFE and moving it to FUTURE.
Closing as WONTFIX. This feature just isn't that highly desirable or needed.