Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-21 00:09:48 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-21 00:09:48 +0300
commit7fbb996fde20a9905177e253491f858870cd5882 (patch)
tree159c692eb50b7eb273fd4013217ceb5fab3296a4 /app/assets/javascripts/behaviors
parent4faa270685797bd689d2035efe7c7e724950eb82 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/behaviors')
-rw-r--r--app/assets/javascripts/behaviors/shortcuts/keybindings.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/assets/javascripts/behaviors/shortcuts/keybindings.js b/app/assets/javascripts/behaviors/shortcuts/keybindings.js
index 38ee02938cc..d173703f172 100644
--- a/app/assets/javascripts/behaviors/shortcuts/keybindings.js
+++ b/app/assets/javascripts/behaviors/shortcuts/keybindings.js
@@ -117,6 +117,12 @@ export const HIDE_APPEARING_CONTENT = {
defaultKeys: ['esc'],
};
+export const TOGGLE_SUPER_SIDEBAR = {
+ id: 'globalShortcuts.toggleSuperSidebar',
+ description: __('Toggle the navigation sidebar'),
+ defaultKeys: ['mod+\\'], // eslint-disable-line @gitlab/require-i18n-strings
+};
+
export const TOGGLE_CANARY = {
id: 'globalShortcuts.toggleCanary',
description: __('Toggle GitLab Next'),
@@ -536,6 +542,10 @@ export const GLOBAL_SHORTCUTS_GROUP = {
],
};
+if (gon.use_new_navigation) {
+ GLOBAL_SHORTCUTS_GROUP.keybindings.push(TOGGLE_SUPER_SIDEBAR);
+}
+
export const EDITING_SHORTCUTS_GROUP = {
id: 'editing',
name: __('Editing'),