Keyboard capture by 3D view on Linux

This commit is contained in:
Enrico Turri 2018-04-27 14:08:22 +02:00
parent ad54210c3e
commit b67064ef81

View File

@ -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);