summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-12-18 20:51:39 +0000
committerTim E. Real <termtech@rogers.com>2010-12-18 20:51:39 +0000
commit4303307cc65893980f350edac5a69e977170c14c (patch)
tree602d3dfeca49db08fdff35ccb7e5e1e6ba68b981 /muse2/muse/app.cpp
parente7cc0ca7479cd4bca09963a1d843ecbae15898eb (diff)
Fixed transport shortcuts not working in some windows or situations.
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp16
1 files changed, 16 insertions, 0 deletions
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);
+ */
}
//---------------------------------------------------------