]> git.lyx.org Git - lyx.git/blobdiff - lib/bind/mac.bind
Fix key bindings for math space (#8974)
[lyx.git] / lib / bind / mac.bind
index 4c59a0cb09db04885c5a9a82b3c82803e181df91..7854b452ce497ded07bb5a13a4a5f9e1652aa8a0 100644 (file)
@@ -34,6 +34,9 @@ Format 1
 # Option  - A
 # Control - M
 
+# Status indicates if it is matching the mac standard
+#  +: correct binding
+#  -: missing or wrong binding
 # Status: "Key combination"           What it does
 #  +: "Command-Space"                # Show or hide the Spotlight search field (if multiple languages are installed, may rotate through enabled script systems)
 #  +: "Option-Command-Space"         # Show the Spotlight search results window (if multiple languages are installed, may rotate through keyboard layouts and input methods within a script)
@@ -65,7 +68,7 @@ Format 1
 #  +: "Control-N"                    # Move down one line
 \bind "M-n"                          "down"
 #  +: "Control-O"                    # Insert a new line after the cursor
-\bind "M-o"                          "break-paragraph"
+\bind "M-o"                          "paragraph-break"
 #  -: "Control-P"                    # Move up one line
 # used by menu.bind - layouts
 #  +: "Control-T"                    # Transpose the character behind the cursor and the character in front of the cursor
@@ -75,8 +78,10 @@ Format 1
 #  -: "Shift-Tab"                    # Navigate through controls in a reverse direction
 #  +: "Control-Tab"                  # Move focus to the next grouping of controls in a dialog or the next table (when Tab moves to the next cell)
 \bind "M-Tab"                        "buffer-next"
+\bind "A-Tab"                        "buffer-next"
 #  +: "Shift-Control-Tab"            # Move focus to the previous grouping of controls
 \bind "M-S-BackTab"                  "buffer-previous"
+\bind "A-S-BackTab"                  "buffer-previous"
 #  +: "fn-Delete"                    # Forward Delete (on portable Macs' built-in keyboard)
 \bind "Delete"                       "char-delete-forward"
 #  ?: "Control-F1"                   # Toggle full keyboard access on or off
@@ -97,8 +102,10 @@ Format 1
 #  -: "Option-Command-`"             # Move focus to the window drawer
 #  +: "Command- - (minus)"           # Decrease the size of the selected item
 \bind "C-minus"                      "buffer-zoom-out"
-#  ?: "Shift-Command-="              # Increase the size of the selected item
+#  +: "Shift-Command-="              # Increase the size of the selected item
 \bind "C-plus"                       "buffer-zoom-in"
+\bind "C-S-equal"                    "buffer-zoom-in"
+\bind "C-equal"                      "buffer-zoom-in"
 #  -: "Command-{"                    # Left-align a selection
 #  -: "Command-}"                    # Right-align a selection
 #  -: "Command-|"                    # Center-align a selection
@@ -342,10 +349,10 @@ Format 1
 
 \bind "A-Delete"                     "word-delete-forward"
 \bind "A-BackSpace"                  "word-delete-backward"
-\bind "M-Return"                     "break-paragraph inverse"
+\bind "M-Return"                     "paragraph-break inverse"
 \bind "C-Return"                     "newline-insert newline"
 \bind "C-S-Return"                   "newline-insert linebreak"
-\bind "A-space"                      "space-insert protected"
+\bind "A-space"                      "command-alternatives math-space ; space-insert protected"
 \bind "nobreakspace"                 "space-insert protected"
 \bind "C-A-space"                    "space-insert normal"
 \bind "S-A-space"                    "space-insert thin"
@@ -353,8 +360,10 @@ Format 1
 \bind "C-period"                     "specialchar-insert end-of-sentence"
 \bind "M-period"                     "specialchar-insert dots"
 \bind "Escape"                       "cancel"
-\bind "C-M-Up"                       "paragraph-move-up"
-\bind "C-M-Down"                     "paragraph-move-down"
+\bind "C-M-Up"                       "command-alternatives outline-up; paragraph-move-up; inset-modify tabular move-row-up"
+\bind "C-M-Down"                     "command-alternatives outline-down; paragraph-move-down; inset-modify tabular move-row-down"
+\bind "C-M-Right"                    "inset-modify tabular move-column-right"
+\bind "C-M-Left"                     "inset-modify tabular move-column-left"
 #\bind "F9"                          "meta-prefix"
 
 # Include menu and math bindings