Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
d8768079
Commit
d8768079
authored
Apr 03, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed cancelling dialogs in DRAWING_TOOL.
parent
b6aa832f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tool_dispatcher.cpp
common/tool/tool_dispatcher.cpp
+5
-5
No files found.
common/tool/tool_dispatcher.cpp
View file @
d8768079
...
@@ -251,14 +251,14 @@ void TOOL_DISPATCHER::DispatchWxEvent( wxEvent& aEvent )
...
@@ -251,14 +251,14 @@ void TOOL_DISPATCHER::DispatchWxEvent( wxEvent& aEvent )
if
(
type
==
wxEVT_KEY_UP
)
if
(
type
==
wxEVT_KEY_UP
)
{
{
if
(
key
==
WXK_ESCAPE
)
// ESC is the special key for cancelling tools
evt
=
TOOL_EVENT
(
TC_KEYBOARD
,
TA_KEY_UP
,
key
|
mods
);
evt
=
TOOL_EVENT
(
TC_COMMAND
,
TA_CANCEL_TOOL
);
else
evt
=
TOOL_EVENT
(
TC_KEYBOARD
,
TA_KEY_UP
,
key
|
mods
);
}
}
else
else
{
{
evt
=
TOOL_EVENT
(
TC_KEYBOARD
,
TA_KEY_DOWN
,
key
|
mods
);
if
(
key
==
WXK_ESCAPE
)
// ESC is the special key for cancelling tools
evt
=
TOOL_EVENT
(
TC_COMMAND
,
TA_CANCEL_TOOL
);
else
evt
=
TOOL_EVENT
(
TC_KEYBOARD
,
TA_KEY_DOWN
,
key
|
mods
);
}
}
}
}
...
...
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