Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
d69a087e
"git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "4843bccca88551d60c4860d5c2643fbc0f5b0e9a"
Commit
d69a087e
authored
Dec 07, 2021
by
SLLH
Browse files
Modify the bug
parent
42230e04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
PPOCRLabel/libs/canvas.py
PPOCRLabel/libs/canvas.py
+2
-1
No files found.
PPOCRLabel/libs/canvas.py
View file @
d69a087e
...
@@ -704,8 +704,9 @@ class Canvas(QWidget):
...
@@ -704,8 +704,9 @@ class Canvas(QWidget):
def
keyPressEvent
(
self
,
ev
):
def
keyPressEvent
(
self
,
ev
):
key
=
ev
.
key
()
key
=
ev
.
key
()
shapesBackup
=
[]
shapesBackup
=
copy
.
deepcopy
(
self
.
shapes
)
shapesBackup
=
copy
.
deepcopy
(
self
.
shapes
)
if
len
(
shapesBackup
)
==
0
:
return
self
.
shapesBackups
.
pop
()
self
.
shapesBackups
.
pop
()
self
.
shapesBackups
.
append
(
shapesBackup
)
self
.
shapesBackups
.
append
(
shapesBackup
)
if
key
==
Qt
.
Key_Escape
and
self
.
current
:
if
key
==
Qt
.
Key_Escape
and
self
.
current
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment