From d5e8b810b90b33748c694cb58f548d89a2db06b1 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 2 Mar 2017 07:11:01 -0800 Subject: [PATCH] Fix copy-paste error in last commit. --- gramps/gui/widgets/undoableentry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gui/widgets/undoableentry.py b/gramps/gui/widgets/undoableentry.py index daf2cd67e..5f9a3c600 100644 --- a/gramps/gui/widgets/undoableentry.py +++ b/gramps/gui/widgets/undoableentry.py @@ -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()