4825: Tag button opens tagwindow on all buttons including tab
svn: r17629
This commit is contained in:
parent
783012aa3e
commit
99a7805d8a
@ -55,6 +55,15 @@ import AutoComp
|
|||||||
import DateEdit
|
import DateEdit
|
||||||
from gui.widgets.tageditor import TagEditor
|
from gui.widgets.tageditor import TagEditor
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# constants
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------
|
||||||
|
|
||||||
|
_RETURN = gtk.gdk.keyval_from_name("Return")
|
||||||
|
_KP_ENTER = gtk.gdk.keyval_from_name("KP_Enter")
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# MonitoredCheckbox class
|
# MonitoredCheckbox class
|
||||||
@ -782,9 +791,13 @@ class MonitoredTagList(object):
|
|||||||
"""
|
"""
|
||||||
Invoke the tag editor.
|
Invoke the tag editor.
|
||||||
"""
|
"""
|
||||||
editor = TagEditor(self.tag_list, self.all_tags,
|
if not event.state or event.state in (gtk.gdk.MOD2_MASK,):
|
||||||
self.uistate, self.track)
|
if event.keyval in (_RETURN, _KP_ENTER):
|
||||||
if editor.return_list is not None:
|
editor = TagEditor(self.tag_list, self.all_tags,
|
||||||
self.tag_list = editor.return_list
|
self.uistate, self.track)
|
||||||
self._display()
|
if editor.return_list is not None:
|
||||||
self.set_list([item[0] for item in self.tag_list])
|
self.tag_list = editor.return_list
|
||||||
|
self._display()
|
||||||
|
self.set_list([item[0] for item in self.tag_list])
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user