CommandLineFocusInit.js 570 B

123456789101112131415
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("CommandLineFocus", "&Focus on Command Line"), RMainWindowQt.getMainWindow());
  3. action.setScriptFile(basePath + "/CommandLineFocus.js");
  4. action.setDefaultShortcuts(
  5. [
  6. new QKeySequence(" "),
  7. new QKeySequence("Ctrl+M"),
  8. ]);
  9. action.setNoState();
  10. action.checkable = false;
  11. action.setGroupSortOrder(3900);
  12. action.setSortOrder(100);
  13. action.setWidgetNames(["ViewMenu", "!ViewToolBar", "!ViewToolsPanel"]);
  14. }