From c6af697230f26d502ffb1c1c3d5f1f89b40158bf Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 22 Feb 2016 20:16:51 -0300 Subject: [PATCH] Draft: avoid blocking keys in fields that can be used for units --- src/Mod/Draft/DraftGui.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Mod/Draft/DraftGui.py b/src/Mod/Draft/DraftGui.py index 6bc11f95f..2ec10273c 100644 --- a/src/Mod/Draft/DraftGui.py +++ b/src/Mod/Draft/DraftGui.py @@ -1368,15 +1368,15 @@ class DraftToolBar: self.isRelative.setChecked(not self.isRelative.isChecked()) self.relativeMode = self.isRelative.isChecked() spec = True - elif txt.endswith("i"): + elif txt.endswith("I"): if self.hasFill.isVisible(): self.hasFill.setChecked(not self.hasFill.isChecked()) spec = True - elif txt.endswith("f"): + elif txt.endswith("F"): if self.finishButton.isVisible(): self.finish() spec = True - elif txt.endswith("t"): + elif txt.endswith("T"): self.toggleContinue() spec = True elif txt.endswith("w"): @@ -1415,7 +1415,8 @@ class DraftToolBar: self.closeLine() elif self.isCopy.isVisible(): self.isCopy.setChecked(not self.isCopy.isChecked()) - elif txt.endswith("n"): + spec = True + elif txt.endswith("N"): if self.continueCmd.isVisible(): self.continueCmd.setChecked(not self.continueCmd.isChecked()) spec = True