From 4303307cc65893980f350edac5a69e977170c14c Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Sat, 18 Dec 2010 20:51:39 +0000 Subject: Fixed transport shortcuts not working in some windows or situations. --- muse2/muse/app.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'muse2/muse/app.cpp') diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index 5ea7c00d..f339fabf 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -3554,8 +3554,11 @@ class MuseApplication : public QApplication { } bool notify(QObject* receiver, QEvent* event) { + //if (event->type() == QEvent::KeyPress) + // printf("notify key press before app::notify accepted:%d\n", event->isAccepted()); bool flag = QApplication::notify(receiver, event); if (event->type() == QEvent::KeyPress) { + //printf("notify key press after app::notify accepted:%d\n", event->isAccepted()); QKeyEvent* ke = (QKeyEvent*)event; ///globalKeyState = ke->stateAfter(); globalKeyState = ke->modifiers(); @@ -5155,6 +5158,19 @@ void MusE::updateConfiguration() //menuSettings->setAccel(shortcuts[SHRT_CONFIG_AUDIO_PORTS].key, menu_ids[CMD_CONFIG_AUDIO_PORTS]); //menu_help->setAccel(menu_ids[CMD_START_WHATSTHIS], shortcuts[SHRT_START_WHATSTHIS].key); + // Just in case, but no, app kb handler takes care of these. + /* + loopAction->setShortcut(shortcuts[].key); + punchinAction->setShortcut(shortcuts[].key); + punchoutAction->setShortcut(shortcuts[].key); + startAction->setShortcut(shortcuts[].key); + rewindAction->setShortcut(shortcuts[].key); + forwardAction->setShortcut(shortcuts[].key); + stopAction->setShortcut(shortcuts[].key); + playAction->setShortcut(shortcuts[].key); + recordAction->setShortcut(shortcuts[].key); + panicAction->setShortcut(shortcuts[].key); + */ } //--------------------------------------------------------- -- cgit v1.2.3