Merge pull request #13543 from Roy-043/Draft-Fix-error-when-deleting-first-digit-of-input

Draft: Fix error when deleting first digit of input
This commit is contained in:
Roy-043
2024-04-19 21:36:38 +02:00
committed by GitHub

View File

@@ -1095,10 +1095,13 @@ class DraftToolBar:
treated as shortcuts
"""
if txt == "" or txt[0] in "0123456789.,-":
if txt == "":
self.updateSnapper()
if txt[0] in "0123456789.,-":
self.setMouseMode(False)
return
if txt[0] in "0123456789.,-":
self.updateSnapper()
self.setMouseMode(False)
return
txt = txt[0].upper()