When I click the (?) button at the right of the editor toolbar, I get to see help pages, and nowhere are the keyboard shortcut listed.
Is there is reason for doing so?
For example, I discovered Ctrl+K only like 2 weeks ago...
To attempt to "answer" the question:
The most likely explanation is: they forgot
And since that keyboard overlay it seems they implemented the overlay feature, but they haven't added the shortcuts to the markup help files, or anywhere else but in the tooltips in the editor.
It's likely no-one considered it could be handy to have the related keyboard shortcuts listed in for example the markdown help.
We implement a cool new feature, make it compatible with the previous "feature" but kind of forget to document it comprehensively what happens all except in the mouseovers.
But we'd need to hear from one of the higher ups from stackoverflow to know for sure. but looking at the history it's a case of "writing comprehensive documentation is a programmers last priority"
But that's guessing from my part.
Here's a list of known keyboard shortcuts.
Formatting:
Editor actions:
For more useful shortcuts see 42+ Text-Editing Keyboard Shortcuts That Work Almost Everywhere on How-To Geek.
For most shortcuts Ctrl is replaceable with Cmd or whatever command key your keyboard uses.
For the comment about the tab functionality, make a bookmark/favorite via your browsers bookmark/favorite manager, and paste the following script in it and place it on your bookmarks hotbar
javascript: !function(t){!function(t,e){t.fn.getCursorPosition=function(){var e=t(this).get(0),n=0;if("selectionStart"in e)n=e.selectionStart;else if("selection"in document){e.focus();var o=document.selection.createRange(),i=document.selection.createRange().text.length;o.moveStart("character",-e.value.length),n=o.text.length-i}return n}}(t),t(".wmd-input.processed").on("keydown",function(e){if(9==e.which){var n=t(this),o=n.val(),i=n.getCursorPosition(),r=o.substr(0,i)+" "+o.substr(i);n.val(r),e.preventDefault()}})}(jQuery);
Now you can just press that button when your editor is open and it will make your tab presses into four spaces.
This is the uncompressed version:
(function(jQuery) {
(function ($, undefined) {
$.fn.getCursorPosition = function () {
var el = $(this).get(0);
var pos = 0;
if ('selectionStart' in el) {
pos = el.selectionStart;
} else if ('selection' in document) {
el.focus();
var Sel = document.selection.createRange();
var SelLength = document.selection.createRange().text.length;
Sel.moveStart('character', -el.value.length);
pos = Sel.text.length - SelLength;
}
return pos;
}
})(jQuery);
jQuery('.wmd-input.processed').on('keydown',function(e) {
if(e.which == 9) {
var $this = jQuery(this),
content = $this.val(),
position = $this.getCursorPosition(),
newContent = content.substr(0, position) + " " + content.substr(position);
$this.val(newContent);
e.preventDefault();
}
});
})(jQuery)
@
is Ctrl+Alt+Q, which the SE editor interprets as Ctrl+Q, which means that it is impossible to use SE for asking/answering questions about Ruby or Perl code for German programmers. (The latter bug has been fixed, I believe, but it existed for years. The former still hasn't been fixed.)