autokey / autokey-python2

Legacy Python 2 version of AutoKey, the desktop automation utility for Linux and X11.
GNU General Public License v3.0
207 stars 19 forks source link

Saving while phrase/script is open but not not selected in list fails #8

Closed darenschwenke closed 7 years ago

darenschwenke commented 10 years ago

Click on an item. Go to edit it. start typing in the search field for items. Try to save the previous item.
Save fails as the item being highlighted is currently how the code identifies which object to save.

jmetzmeier commented 10 years ago

What search field are you talking about? I checked both the QT and GTK UI and neither appear to have a search field.

darenschwenke commented 10 years ago

I found it by accident. Tab over and start typing and a search box will appear. Think it's a Gtk feature of the tree widget, although I haven't checked.

darenschwenke commented 10 years ago

I'm thinking the simplest solution woulb be to store the currently active object in the parent as we have access to it at the script widget level via parentWindow. Then as each script is focused, assign in parent. Even if the folder becomes un-selected then we still have the current target.

jmetzmeier commented 10 years ago

Yep, this is specific to the GTK UI.