Fix copy-paste error in last commit.
This commit is contained in:
parent
1571f8409a
commit
d5e8b810b9
@ -119,7 +119,8 @@ class UndoableEntry(Gtk.Entry, Gtk.Editable):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
keymap = Gdk.Keymap.get_default();
|
keymap = Gdk.Keymap.get_default();
|
||||||
primary = keymap.get_modifier_mask(Gdk.ModifierIntent.PRIMARY_ACCELERATO if ((Gdk.keyval_name(event.keyval) == 'Z') and
|
primary = keymap.get_modifier_mask(Gdk.ModifierIntent.PRIMARY_ACCELERATOR)
|
||||||
|
if ((Gdk.keyval_name(event.keyval) == 'Z') and
|
||||||
(event.get_state() & primary) and
|
(event.get_state() & primary) and
|
||||||
(event.get_state() & Gdk.ModifierType.SHIFT_MASK)):
|
(event.get_state() & Gdk.ModifierType.SHIFT_MASK)):
|
||||||
self.redo()
|
self.redo()
|
||||||
|
Loading…
Reference in New Issue
Block a user