12

Python/GTK3/Webkit: deactivate webpage focus theft

view full story
linux-howto

http://askubuntu.com – I use a gtk TreeView to display different websites in my Python program. When the selected rows change, the web page is updated to the url field in the store. This works nicely, but a lot of web pages uses javascript to focus an input field. This means I can't use the keyboard to navigate the TreeView. I don't know how to disable javascript completely, but I also don't want to, because an increasing number of pages are dependent on it. However, I would like to prevent the focus theft. One thing I could do, is to implement some sort of memory about what the user has done, and if focus is remo (HowTos)