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
0b9a8709
Commit
0b9a8709
authored
Feb 04, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modifiers (Alt/Shift/Control) are properly set for events when autopanning is active.
parent
82ca611e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
wx_view_controls.cpp
common/view/wx_view_controls.cpp
+14
-1
No files found.
common/view/wx_view_controls.cpp
View file @
0b9a8709
...
@@ -202,7 +202,20 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
...
@@ -202,7 +202,20 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
updateCursor
();
updateCursor
();
// Notify tools that the cursor position has changed in the world coordinates
// Notify tools that the cursor position has changed in the world coordinates
wxCommandEvent
moveEvent
(
EVT_REFRESH_MOUSE
);
wxMouseEvent
moveEvent
(
EVT_REFRESH_MOUSE
);
// Set the modifiers state
#if wxCHECK_VERSION( 3, 0, 0 )
moveEvent
.
SetControlDown
(
wxGetKeyState
(
WXK_CONTROL
)
);
moveEvent
.
SetShiftDown
(
wxGetKeyState
(
WXK_SHIFT
)
);
moveEvent
.
SetAltDown
(
wxGetKeyState
(
WXK_ALT
)
);
#else
// wx <3.0 do not have accessors, but the fields are exposed
moveEvent
.
m_controlDown
=
wxGetKeyState
(
WXK_CONTROL
);
moveEvent
.
m_shiftDown
=
wxGetKeyState
(
WXK_SHIFT
);
moveEvent
.
m_altDown
=
wxGetKeyState
(
WXK_ALT
);
#endif
wxPostEvent
(
m_parentPanel
,
moveEvent
);
wxPostEvent
(
m_parentPanel
,
moveEvent
);
}
}
break
;
break
;
...
...
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