Fix copy-paste error in last commit.

This commit is contained in:
John Ralls 2017-03-02 07:11:01 -08:00
parent 1571f8409a
commit d5e8b810b9

View File

@ -119,7 +119,8 @@ class UndoableEntry(Gtk.Entry, Gtk.Editable):
"""
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() & Gdk.ModifierType.SHIFT_MASK)):
self.redo()