[GitLab in the browser] | Duo Chat keyboard shortcuts
This issue aims implement the following Duo Chat keyboard shortcuts for GitLab in the browser. Further details to how we decided on these shortcuts can be found in the parent epic.
Command | GitLab in the browser | General behavior | Special considerations for mac | Special considerations for Windows and Linux |
---|---|---|---|---|
Open/close chat | Mac: option +d Linux + Windows: alt +d
|
When opening the chat, always switch to the chat text box. | Override the browser, system, and IDE shortcuts if necessary. Consequences: - In Explorer, Chrome, and Firefox users cannot use alt +d to select the address bar. In Firefox and Chrome, they can use the alternatives F6 or Ctrl +L . In Edge, they can use the alternatives F4 or Ctrl +L .- On the German Windows, they cannot use alt +d to bring up the File Menu (Datei-Menu).-There could be other conflicts in other languages. When users turn off keyboard shortcuts in GitLab or change the keyboard short cut in the IDE, do not override browser, system, and IDE shortcuts for alt +d . |
|
Send question (input in focus) |
Mac: return or cmd +return Linux + Windows: return or ctrl +return Note: return shall mean return or enter . |
Should only work when the chat is in focus, not globally, e.g. when in the editor; Hence it will still work when the keyboard shortcuts for GitLab in the browser are deactivated. | ||
New line while typing question |
shift +enter Note: return shall mean return or enter . |
Should only work when the chat is in focus, not globally, e.g. when in the editor; Hence it will still work when the keyboard shortcuts for GitLab in the browser are deactivated. |
Before we close this Issue, we need to make sure that the changes implemented in here have found there way to the Docs: https://docs.gitlab.com/ee/user/shortcuts.html
Edited by Jannik Lehmann