Unify the definition of the modifier key on different platforms
The modifier key is a universal thing. However, there are several instances of its definition in different ways:
-
https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/behaviors/shortcuts/shortcut.vue#L25 -
https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/diffs/components/tree_list.vue#L69 -
https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/vue_shared/components/markdown/header.vue#L100
Under this issue, it is suggested to introduce a global constant and update all usages of the key modifier key definitions to use the constant as a SSOT
Edited by Denys Mishunov