Details
-
Suggestion
-
Resolution: Fixed
Description
The keyboard shortcut to submit a comment is currently CTRL+Enter, however on a Mac, the equivalent shortcut should be CMD+Enter.
In Bitbucket Server we detect the OS and use something like the following to figure out whether the event was one of the aforementioned shortcuts:
/* Return true if the ctrlKey is held down, or metaKey on Mac */ function isCtrlish(e) { return isMac ? e.metaKey : e.ctrlKey; } /* Return true if the ctrlKey is held down (or metaKey on Mac) as well as the enter key */ function isCtrlEnter(e) { return isCtrlish(e) && e.which === AJS.keyCode.ENTER; }