###
-Format 4
+Format 5
# based on the table at http://support.apple.com/kb/HT1343
# Note: these bindings assume the swapped Meta and Control modifiers standard of Qt
# +: "Control-B" # Move one character backward
\bind "M-b" "char-backward"
# +: "Control-D" # Delete the character in front of the cursor
-\bind "M-d" "char-delete-forward"
+\bind "M-d" "char-delete-forward confirm"
# +: "Control-E" # Move to end of line/paragraph
\bind "M-e" "line-end"
# +: "Control-F" # Move one character forward
\bind "M-f" "char-forward"
# +: "Control-H" # Delete the character behind the cursor
-\bind "M-h" "char-delete-backward"
+\bind "M-h" "char-delete-backward confirm"
# -: "Control-K" # Delete from the character in front of the cursor to the end of the line/paragraph
# used by menu.bind - keymap
# +: "Control-L" # Center the cursor/selection in the visible area
\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"
+\bind "Delete" "char-delete-forward confirm"
# ?: "Control-F1" # Toggle full keyboard access on or off
# +: "Control-F2" # Move focus to the menu bar
# +: "Control-F3" # Move focus to the Dock
\bind "C-d" "buffer-view dvi" # 'd' for dvi
\bind "C-M-d" "command-alternatives master-buffer-view dvi; buffer.view dvi"
\bind "C-S-D" "buffer-update dvi" # 'd' for dvi
-# -: "Command-E" # Use the selection for a find
-\bind "C-e" "font-emph"
+# +: "Command-E" # Use the selection for a find
+\bind "C-e" "search-string-set"
+\bind "C-M-e" "font-emph"
# +: "Command-F" # Open a Find window
\bind "C-f" "dialog-show findreplace"
\bind "C-S-f" "dialog-show findreplaceadv"
\bind "C-M-n" "command-sequence math-display; math-number-toggle;"
# +: "Command-N" # Create a new document in the frontmost application
\bind "C-n" "buffer-new"
-\bind "C-S-N" "buffer-new-template"
+\bind "C-S-N" "dialog-show lyxfiles templates"
# +: "Command-O" # Display a dialog for choosing a document to open in the frontmost application
\bind "C-o" "file-open"
# -: "Shift-Command-P" # Display a dialog for specifying printing parameters (Page Setup)
\bind "C-Left" "line-begin"
# +: "Command-Down Arrow" # Move the text insertion point to the end of the document
\bind "C-Down" "buffer-end"
-\bind "M-A-Down" "inset-end"
+\bind "M-A-Down" "inset-end"
# +: "Command-Up Arrow" # Move the text insertion point to the beginning of the document
\bind "C-Up" "buffer-begin"
-\bind "M-A-Up" "inset-begin"
+\bind "M-A-Up" "inset-begin"
# +: "Shift-Command-Right Arrow" # Select text between the insertion point and the end of the current line (*)
\bind "S-C-Right" "line-end-select"
# +: "Shift-Command-Left Arrow" # Select text between the insertion point and the beginning of the current line (*)
# +: "Shift-Option-Down Arrow" # Extend text selection to the end of the current paragraph, then to the end of the following paragraph if pressed again (*)
\bind "A-Down" "paragraph-down"
\bind "S-A-Down" "paragraph-down-select"
-\bind "S-M-A-Down" "inset-end-select"
+\bind "S-M-A-Down" "inset-end-select"
# +: "Shift-Option-Up Arrow" # Extend text selection to the beginning of the current paragraph, then to the beginning of the following paragraph if pressed again (*)
\bind "A-Up" "paragraph-up"
\bind "S-A-Up" "paragraph-up-select"
-\bind "S-M-A-Up" "inset-begin-select"
+\bind "S-M-A-Up" "inset-begin-select"
# -: "Control-Space" # Toggle between the current and previous input sources
# -: "Option-Control-Space" # Toggle through all enabled input sources
# +: "Option-Command-esc" # Force Quit
# Additional Edit group
#
-\bind "A-Delete" "word-delete-forward"
-\bind "A-BackSpace" "word-delete-backward"
+\bind "A-Delete" "word-delete-forward confirm"
+\bind "A-BackSpace" "word-delete-backward confirm"
\bind "M-Return" "paragraph-break inverse"
\bind "C-Return" "newline-insert newline"
\bind "C-S-Return" "newline-insert linebreak"