diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbkeyboardshortcutsoverview.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbkeyboardshortcutsoverview.directive.js index 127bf38f49..c5d58906a2 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbkeyboardshortcutsoverview.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbkeyboardshortcutsoverview.directive.js @@ -1,3 +1,110 @@ +/** +@ngdoc directive +@name umbraco.directives.directive:umbkeyboardShortcutsOverview +@restrict E +@scope + +@description + +
Use this directive to show an overview of keyboard shortcuts in an editor. +The directive will render an overview trigger wich shows how the overview is opened. +When this combination is hit an overview is opened with shortcuts based on the model sent to the directive.
+ +++ ++++ +
+ (function () {
+
+ "use strict";
+
+ function Controller() {
+
+ var vm = this;
+
+ vm.keyboardShortcuts = [
+ {
+ "name": "Sections",
+ "shortcuts": [
+ {
+ "description": "Navigate sections",
+ "keys": [
+ {"key": "1"},
+ {"key": "4"}
+ ],
+ "keyRange": true
+ }
+ ]
+ },
+ {
+ "name": "Design",
+ "shortcuts": [
+ {
+ "description": "Add tab",
+ "keys": [
+ {"key": "alt"},
+ {"key": "shift"},
+ {"key": "t"}
+ ]
+ }
+ ]
+ }
+ ];
+
+ }
+
+ angular.module("umbraco").controller("Umbraco.Controller", Controller);
+ })();
+
+
+true to show a key range. It combines the shortcut keys with "-" instead of "+".
+