summaryrefslogtreecommitdiff
path: root/muse2/muse
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-12-10 07:10:44 +0000
committerTim E. Real <termtech@rogers.com>2010-12-10 07:10:44 +0000
commit39d911b43a335ceeb8f87556de0bd2ef3418f937 (patch)
tree3c03db4395fd14b9258373d69cbcec8390c8c73c /muse2/muse
parent85f6c29fcb29b263d1300581725268c7f976151c (diff)
Added left, right, up, down to shortcuts dialog. Midi ports = 200 now.
Diffstat (limited to 'muse2/muse')
-rw-r--r--muse2/muse/globaldefs.h2
-rw-r--r--muse2/muse/widgets/shortcutcapturedialog.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/muse2/muse/globaldefs.h b/muse2/muse/globaldefs.h
index 06661771..74c18d7d 100644
--- a/muse2/muse/globaldefs.h
+++ b/muse2/muse/globaldefs.h
@@ -24,7 +24,7 @@ const int MAX_CHANNELS = 2; // max audio channels
const int MAX_PLUGINS = 4; // plugins in mixer rack
//const int MIDI_PORTS = 32; // max Number of Midi Ports
-const int MIDI_PORTS = 128; // max Number of Midi Ports
+const int MIDI_PORTS = 200; // max Number of Midi Ports
#ifndef MIDI_CHANNELS
#define MIDI_CHANNELS 16 // Channels per Port
diff --git a/muse2/muse/widgets/shortcutcapturedialog.cpp b/muse2/muse/widgets/shortcutcapturedialog.cpp
index ef2bc33e..5a76d1d9 100644
--- a/muse2/muse/widgets/shortcutcapturedialog.cpp
+++ b/muse2/muse/widgets/shortcutcapturedialog.cpp
@@ -53,7 +53,8 @@ void ShortcutCaptureDialog::keyPressEvent(QKeyEvent* e)
// Check if this is a "real" key that completes a valid shortcut:
int k = e->key();
if (k < 256 || k == Qt::Key_Enter || k == Qt::Key_Return || (k >= Qt::Key_F1 && k <= Qt::Key_F12) || k == Qt::Key_Home || k == Qt::Key_PageUp
- || k == Qt::Key_PageDown || k == Qt::Key_End || k == Qt::Key_Insert || k == Qt::Key_Delete) {
+ || k == Qt::Key_PageDown || k == Qt::Key_End || k == Qt::Key_Insert || k == Qt::Key_Delete
+ || k == Qt::Key_Up || k == Qt::Key_Down || k == Qt::Key_Left || k == Qt::Key_Right) {
key = temp_key;
realkey = true;
QKeySequence q = QKeySequence(key);