Cocoa: Send keyboard modifiers with mouse events.
Task-number: QTBUG-27462 Change-Id: Icb9352fcae6f92885d4f1381aa8014fef039149b Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
parent
3192cd88c5
commit
c12b4f2685
@ -315,7 +315,8 @@ static QTouchDevice *touchDevice = 0;
|
|||||||
QCocoaDrag* nativeDrag = static_cast<QCocoaDrag *>(QGuiApplicationPrivate::platformIntegration()->drag());
|
QCocoaDrag* nativeDrag = static_cast<QCocoaDrag *>(QGuiApplicationPrivate::platformIntegration()->drag());
|
||||||
nativeDrag->setLastMouseEvent(theEvent, self);
|
nativeDrag->setLastMouseEvent(theEvent, self);
|
||||||
|
|
||||||
QWindowSystemInterface::handleMouseEvent(m_window, timestamp, qtWindowPoint, qtScreenPoint, m_buttons);
|
Qt::KeyboardModifiers keyboardModifiers = [self convertKeyModifiers:[theEvent modifierFlags]];
|
||||||
|
QWindowSystemInterface::handleMouseEvent(m_window, timestamp, qtWindowPoint, qtScreenPoint, m_buttons, keyboardModifiers);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)handleFrameStrutMouseEvent:(NSEvent *)theEvent
|
- (void)handleFrameStrutMouseEvent:(NSEvent *)theEvent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user