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
|
||||
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
|
||||
@ -782,9 +791,13 @@ class MonitoredTagList(object):
|
||||
"""
|
||||
Invoke the tag editor.
|
||||
"""
|
||||
if not event.state or event.state in (gtk.gdk.MOD2_MASK,):
|
||||
if event.keyval in (_RETURN, _KP_ENTER):
|
||||
editor = TagEditor(self.tag_list, self.all_tags,
|
||||
self.uistate, self.track)
|
||||
if editor.return_list is not None:
|
||||
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