Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
4.6.1, 4.8.1, 4.8.5, 5.6, 5.12.3
-
macbook pro leopard 10.5.8 cocoa 32 bit
Update:OSX 10.6 (snow leopard)
-
-
285294b68 (dev), a49960be7 (6.7)
Description
The QKeyEvent Qt::Key_Tab is not accessible to event or eventFilter
for example, I added my own widget event(QEvent*) method to trap keypress events and check for Key_Tab (exactly as defined in the events docs: http://doc.trolltech.com/4.6/eventsandfilters.html
bool MyWidget::event(QEvent *event)
{
if (event->type() == QEvent::KeyPress) {
QKeyEvent *ke = static_cast<QKeyEvent *>(event);
if (ke->key() == Qt::Key_Tab)
this does not work on my Mac 4.6.1 cocoa, but works as expected on mac 4.61 carbon and X11/Linux.
Update:
Qt::Key_Tab seems to be not working with Qt::Meta modifier (Ctrl)if we set a shortcut with QKeySequence(Qt::META + Qt::Key_Tab) then Ctrl+Tab will not trigger the action if it is using cocoa, It works perfectly fine on carbon.
Attached example testCtrlTabKeySequence.tar reproduces this
Attachments
Issue Links
- relates to
-
QTBUG-113492 META + Tab and CTRL + Tab shortcuts do not function on macOS
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-8596 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
161214,1 | Cocoa integration - work around for Ctrl-tab key event | dev | qt/qtbase | Status: DEFERRED | 0 | 0 |
554368,3 | macOS: support shortcut for Ctrl-modified Tab | dev | qt/qtbase | Status: MERGED | +2 | 0 |
554766,2 | macOS: support shortcut for Ctrl-modified Tab | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |