mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Grab keyboard properly when mouse is over graph area
This commit is contained in:
parent
bf591e22e1
commit
8821a03355
@ -1094,7 +1094,7 @@ void gGraphView::setOffsetX(int offsetX)
|
||||
|
||||
void gGraphView::mouseMoveEvent(QMouseEvent *event)
|
||||
{
|
||||
this->setFocus();
|
||||
grabKeyboard();
|
||||
|
||||
int x = event->x();
|
||||
int y = event->y();
|
||||
|
Loading…
Reference in New Issue
Block a user