From 0eb7d404a1840d3dfa56bf5a99512eb4b5ddde9a Mon Sep 17 00:00:00 2001 From: Emmanuel Tissera Date: Thu, 28 Feb 2019 17:10:39 +1100 Subject: [PATCH] Fixes hotkey for navigation between apps and content apps Fixes https://github.com/umbraco/Umbraco-CMS/issues/4757 --- .../editor/umbeditornavigationitem.directive.js | 2 +- .../editor/umb-editor-navigation-item.html | 12 ++++++------ .../components/editor/umb-editor-navigation.html | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditornavigationitem.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditornavigationitem.directive.js index 3a0dbb06d8..ae725ef25e 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditornavigationitem.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditornavigationitem.directive.js @@ -42,7 +42,7 @@ item: '=', onOpen: '&', onOpenAnchor: '&', - index: '@' + hotkey: '<' } }); diff --git a/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-navigation-item.html b/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-navigation-item.html index 7d84cf830f..1f68697dff 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-navigation-item.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-navigation-item.html @@ -1,10 +1,10 @@ + tabindex="-1" + ng-href="" + ng-click="vm.clicked()" + hotkey="{{::vm.hotkey}}" + hotkey-when-hidden="true" + ng-class="{'is-active': vm.item.active, '-has-error': vm.item.hasError}"> {{ vm.item.name }}
{{vm.item.badge.count}}
diff --git a/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-navigation.html b/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-navigation.html index 0c8f0be7a2..df7f045cec 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-navigation.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-navigation.html @@ -7,7 +7,7 @@ item="navItem" on-open="openNavigationItem(item)" on-open-anchor="openAnchorItem(item, anchor)" - index="{{$index}}"> + hotkey="$index + 1">