History

readded ctrl+n and ctrl+b as shortcuts with a default script

Preston Bezos committed 7 years ago

Commit d1470d31 parent 6e4b9c14 files · +50 −1Browse files

Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 4 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+10−0
@@ -638,3 +638,13 @@ void WindowScriptingInterface::setActiveDisplayPlugin(int index) { · 637 unmodified lines
638 auto name = PluginManager::getInstance()->getDisplayPlugins().at(index)->getName();638 auto name = PluginManager::getInstance()->getDisplayPlugins().at(index)->getName();
639 qApp->setActiveDisplayPlugin(name);639 qApp->setActiveDisplayPlugin(name);
640}640}
641
642void WindowScriptingInterface::openWebBrowser() {
643 if (QThread::currentThread() != thread()) {
644 QMetaObject::invokeMethod(this, "openWebBrowser", Qt::QueuedConnection);
645 return;
646 }
647
648 auto offscreenUi = DependencyManager::get<OffscreenUi>();
649 offscreenUi->load("Browser.qml");
650}