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
6cf3b937
Commit
6cf3b937
authored
Jan 10, 2015
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Eeschema drag Bug #1408661
parent
1ddde742
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
hotkeys.cpp
eeschema/hotkeys.cpp
+13
-7
No files found.
eeschema/hotkeys.cpp
View file @
6cf3b937
...
...
@@ -31,6 +31,7 @@
#include <eeschema_id.h>
#include <hotkeys.h>
#include <wxEeschemaStruct.h>
#include <class_drawpanel.h>
#include <general.h>
#include <libeditframe.h>
...
...
@@ -348,8 +349,6 @@ bool SCH_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition,
wxCommandEvent
cmd
(
wxEVT_COMMAND_MENU_SELECTED
);
cmd
.
SetEventObject
(
this
);
SCH_SCREEN
*
screen
=
GetScreen
();
// itemInEdit == false means no item currently edited. We can ask for editing a new item
...
...
@@ -393,12 +392,19 @@ bool SCH_EDIT_FRAME::OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition,
break
;
case
HK_LEFT_CLICK
:
OnLeftClick
(
aDC
,
aPosition
);
break
;
case
HK_LEFT_DCLICK
:
// Simulate a double left click: generate 2 events
OnLeftClick
(
aDC
,
aPosition
);
OnLeftDClick
(
aDC
,
aPosition
);
if
(
screen
->
m_BlockLocate
.
GetState
()
==
STATE_BLOCK_MOVE
)
{
GetCanvas
()
->
SetAutoPanRequest
(
false
);
HandleBlockPlace
(
aDC
);
}
else
if
(
screen
->
m_BlockLocate
.
GetState
()
==
STATE_NO_BLOCK
)
{
OnLeftClick
(
aDC
,
aPosition
);
if
(
hotKey
->
m_Idcommand
==
HK_LEFT_DCLICK
)
OnLeftDClick
(
aDC
,
aPosition
);
}
break
;
case
HK_ZOOM_IN
:
...
...
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