-6

On Mac OS X, these shortcuts Ctrl + B, Ctrl + K belong to Mac's readline shortcut: https://jblevins.org/log/kbd

Since Stack Overflow's editor has used Cmd + B/K as a shortcut for editing, there isn't any need to take up the shortcut keys of the Mac system.

I recommend the following shortcuts for Mac OS X users.

  1. Ctrl + B Move Cursor Backwards
  2. Cmd + B Bold Text
  3. Ctrl + K Delete Text Forwards Line
  4. Cmd + K Code Sample
5
  • 7
    Does this answer your question? Is there a way to disable the hotkeys?
    – pkamb
    Jun 10, 2020 at 16:46
  • 4
    Does this answer your question? Keyboard shortcuts are now integrated into the site - "... go to the Edit Profile & Settings page on your profile, and then select the Preferences submenu, you’ll find a new checkbox labeled Enable keyboard shortcuts ...".
    – Rob
    Jun 10, 2020 at 18:15
  • @Rob No; that doesn’t affect keyboard shortcuts in the editor. Jun 10, 2020 at 20:03
  • @user289905, retracted vote; one remains.
    – Rob
    Jun 10, 2020 at 21:56
  • 1
    @pkamb Yes. Your link can solve my problem.
    – ahuigo
    Jun 11, 2020 at 13:36

1 Answer 1

0

Alternatively, we could use Karabiner to override the default shortcuts.

  "description": "redline shortcuts for mac osx...",
  "manipulators": [
    {
      "type": "basic",
      "from": {
        "key_code": "p",
        "modifiers": {
          "mandatory": [
            "left_control"
          ]
        }
      },
      "to": {
          "key_code": "up_arrow"
     }
    },{
      "type": "basic",
      "from": {
        "key_code": "n",
        "modifiers": {
          "mandatory": [
            "left_control"
          ]
        }
      },
      "to": {
          "key_code": "down_arrow"
     }
    },{

Not the answer you're looking for? Browse other questions tagged .