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
e21ebb72
Commit
e21ebb72
authored
Oct 24, 2011
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factor Eeschema place item hot keys into select tool event handler.
parent
8e584fc2
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
164 deletions
+63
-164
hotkeys.cpp
eeschema/hotkeys.cpp
+49
-164
schedit.cpp
eeschema/schedit.cpp
+14
-0
No files found.
eeschema/hotkeys.cpp
View file @
e21ebb72
This diff is collapsed.
Click to expand it.
eeschema/schedit.cpp
View file @
e21ebb72
...
@@ -666,6 +666,20 @@ void SCH_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent )
...
@@ -666,6 +666,20 @@ void SCH_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent )
default
:
default
:
m_itemToRepeat
=
NULL
;
m_itemToRepeat
=
NULL
;
}
}
// Simulate left click event if we got here from a hot key.
if
(
aEvent
.
GetClientData
()
!=
NULL
)
{
EDA_HOTKEY_CLIENT_DATA
*
data
=
(
EDA_HOTKEY_CLIENT_DATA
*
)
aEvent
.
GetClientData
();
wxPoint
pos
=
data
->
GetPosition
();
aEvent
.
SetClientData
(
NULL
);
delete
data
;
INSTALL_UNBUFFERED_DC
(
dc
,
DrawPanel
);
OnLeftClick
(
&
dc
,
pos
);
}
}
}
...
...
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