|
|
@@ -1173,6 +1173,7 @@ QAction *NotebookNodeExplorer::createAction(Action p_act, QObject *p_parent, boo
|
|
|
this, [this, p_master]() {
|
|
|
copySelectedNodes(true, p_master);
|
|
|
});
|
|
|
+ WidgetUtils::addActionShortcutText(act, coreConfig.getShortcut(CoreConfig::Cut));
|
|
|
break;
|
|
|
|
|
|
case Action::Paste:
|
|
|
@@ -2186,6 +2187,17 @@ void NotebookNodeExplorer::setupShortcuts()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // Cut
|
|
|
+ {
|
|
|
+ auto shortcut = WidgetUtils::createShortcut(coreConfig.getShortcut(CoreConfig::Cut), this);
|
|
|
+ if (shortcut) {
|
|
|
+ connect(shortcut, &QShortcut::activated,
|
|
|
+ this, [this]() {
|
|
|
+ copySelectedNodes(true, isActionFromMaster());
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// Paste
|
|
|
{
|
|
|
auto shortcut = WidgetUtils::createShortcut(coreConfig.getShortcut(CoreConfig::Paste), this);
|