comparison main/MainWindow.cpp @ 798:c305961985c4

Return seems to work better than Enter here
author Chris Cannam
date Wed, 03 Sep 2014 09:35:03 +0100
parents 568c6da853e6
children b17b7ec4a31e
comparison
equal deleted inserted replaced
797:c6f06ff13afc 798:c305961985c4
750 connect(this, SIGNAL(canInsertInstantsAtBoundaries(bool)), action, SLOT(setEnabled(bool))); 750 connect(this, SIGNAL(canInsertInstantsAtBoundaries(bool)), action, SLOT(setEnabled(bool)));
751 m_keyReference->registerShortcut(action); 751 m_keyReference->registerShortcut(action);
752 menu->addAction(action); 752 menu->addAction(action);
753 753
754 action = new QAction(tr("Insert Item at Selection"), this); 754 action = new QAction(tr("Insert Item at Selection"), this);
755 action->setShortcut(tr("Ctrl+Shift+Enter")); 755 action->setShortcut(tr("Ctrl+Shift+Return"));
756 action->setStatusTip(tr("Insert a new note or region item corresponding to the current selection")); 756 action->setStatusTip(tr("Insert a new note or region item corresponding to the current selection"));
757 connect(action, SIGNAL(triggered()), this, SLOT(insertItemAtSelection())); 757 connect(action, SIGNAL(triggered()), this, SLOT(insertItemAtSelection()));
758 connect(this, SIGNAL(canInsertItemAtSelection(bool)), action, SLOT(setEnabled(bool))); 758 connect(this, SIGNAL(canInsertItemAtSelection(bool)), action, SLOT(setEnabled(bool)));
759 m_keyReference->registerShortcut(action); 759 m_keyReference->registerShortcut(action);
760 menu->addAction(action); 760 menu->addAction(action);