From 3e595ae1832e32853e796fff35cf30c37a116108 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Mon, 16 Apr 2018 02:35:33 +0300 Subject: [PATCH] Add a Ctrl+Z undo shortcut. See https://github.com/shlomif/PySolFC/issues/71 . It is the more standard one. --- pysollib/ui/tktile/menubar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pysollib/ui/tktile/menubar.py b/pysollib/ui/tktile/menubar.py index 1e1517f4..69266463 100644 --- a/pysollib/ui/tktile/menubar.py +++ b/pysollib/ui/tktile/menubar.py @@ -682,6 +682,7 @@ class PysolMenubarTkCommon: self._bindKey(ctrl, "s", self.mSave) self._bindKey(ctrl, "x", self.mHoldAndQuit) self._bindKey(ctrl, "q", self.mQuit) + self._bindKey(ctrl, "z", self.mUndo) self._bindKey("", "z", self.mUndo) self._bindKey("", "BackSpace", self.mUndo) # undocumented self._bindKey("", "KP_Enter", self.mUndo) # undocumented