Keyboard capture by 3D view on Linux
This commit is contained in:
parent
ad54210c3e
commit
b67064ef81
@ -389,7 +389,7 @@ sub mouse_event {
|
|||||||
|
|
||||||
$self->_mouse_dragging($e->Dragging);
|
$self->_mouse_dragging($e->Dragging);
|
||||||
|
|
||||||
if ($e->Entering && &Wx::wxMSW) {
|
if ($e->Entering && (&Wx::wxMSW || $^O eq 'linux')) {
|
||||||
# wxMSW needs focus in order to catch mouse wheel events
|
# wxMSW needs focus in order to catch mouse wheel events
|
||||||
$self->SetFocus;
|
$self->SetFocus;
|
||||||
$self->_drag_start_xy(undef);
|
$self->_drag_start_xy(undef);
|
||||||
|
Loading…
Reference in New Issue
Block a user