Update MAC bindings

Patch from Bennett


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29631 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-05-11 12:15:36 +00:00
parent 58cac2e4db
commit e3e11d5d39

View File

@ -1,7 +1,7 @@
# This file is part of
# ==================================================================
#
# LyX, the High Level Word Processor
# LyX, the High Level Word Processor
#
# Copyright (C) 1995-1997 Asger Alstrup & The LyX Team
#
@ -27,66 +27,79 @@
###
\bind "C-n" "buffer-new"
\bind "C-n" "buffer-new"
\bind "C-S-N" "buffer-new-template"
\bind "C-o" "file-open"
\bind "C-w" "buffer-close"
\bind "C-s" "buffer-write"
\bind "C-o" "file-open"
\bind "C-w" "buffer-close"
\bind "C-s" "buffer-write"
\bind "C-S-S" "buffer-write-as"
\bind "C-p" "dialog-show print"
\bind "C-d" "buffer-view dvi" # 'd' for dvi
\bind "C-t" "buffer-view pdf"
\bind "C-p" "dialog-show print"
\bind "C-d" "buffer-view dvi" # 'd' for dvi
\bind "C-t" "buffer-view pdf"
\bind "C-M-t" "master-buffer-view pdf"
\bind "C-M-d" "master-buffer-view dvi"
\bind "C-S-D" "buffer-update dvi" # 'd' for dvi
\bind "C-S-T" "buffer-update pdf" # (pdflatex; was "ps")
\bind "C-q" "lyx-quit"
\bind "C-M-S-T" "master-buffer-update pdf"
\bind "C-M-S-D" "master-buffer-update dvi"
\bind "C-q" "lyx-quit"
\bind "M-Tab" "buffer-next"
\bind "M-S-BackTab" "buffer-previous"
\bind "M-S-BackTab" "buffer-previous"
\bind "C-M-b" "font-boldsymbol"
\bind "C-b" "font-bold"
\bind "C-e" "font-emph"
\bind "C-k" "font-noun" # 'k' for capitals
\bind "C-u" "font-underline"
\bind "C-S-P" "font-typewriter" # 'P' for program *****
\bind "C-m" "math-mode"
\bind "C-b" "font-bold"
\bind "C-e" "font-emph"
# used below for line-delete-forward
#\bind "C-k" "font-noun" # 'k' for capitals
\bind "C-u" "font-underline"
\bind "C-S-P" "font-typewriter" # 'P' for Program
\bind "C-S-O" "font-strikeout"
\bind "C-m" "math-mode"
\bind "C-S-M" "math-display"
\bind "C-S-r" "regexp-mode"
\bind "C-M-n" "command-sequence math-display; math-number-toggle;"
\bind "C-f" "dialog-show findreplace"
\bind "C-i" "inset-toggle" # 'i' for Inset
\bind "C-f" "dialog-show findreplace"
\bind "C-S-f" "dialog-show findreplaceadv"
\bind "C-i" "inset-toggle" # 'i' for Inset
\bind "C-c" "copy"
\bind "C-x" "cut"
\bind "C-v" "paste"
\bind "C-c" "copy"
\bind "C-x" "cut"
\bind "C-v" "paste"
\bind "C-S-v" "clipboard-paste"
\bind "C-M-v" "primary-selection-paste"
\bind "C-z" "undo"
\bind "C-z" "undo"
\bind "C-S-Z" "redo"
\bind "C-a" "command-sequence buffer-begin ; buffer-end-select" # select all
\bind "C-a" "command-sequence buffer-begin ; buffer-end-select" # select all
\bind "C-S-E" "changes-track" # it's what MS Word uses
\bind "~S-M-quotedbl" "quote-insert single"
\bind "~S-C-quotedbl" "self-insert \""
\bind "C-minus" "specialchar-insert hyphenation"
\bind "~S-M-quotedbl" "quote-insert single"
\bind "~S-C-quotedbl" "self-insert \""
\bind "C-minus" "command-alternatives math-macro-fold;specialchar-insert hyphenation"
\bind "C-M-minus" "specialchar-insert nobreakdash"
\bind "M-C-Right" "depth-increment"
\bind "M-C-Left" "depth-decrement"
\bind "C-S-L" "specialchar-insert ligature-break"
\bind "C-l" "ert-insert" # 'l' for LaTeX
\bind "C-l" "ert-insert" # 'l' for LaTeX
\bind "C-S-I" "info-insert"
#bind "F1" "help" # Not yet implemented!
#bind "F1" "help" # Not yet implemented!
#bind "C-F1" "help-context" # Not yet implemented!
\bind "F2" "buffer-write"
\bind "C-g" "word-find"
\bind "F2" "buffer-write"
\bind "C-g" "word-find"
\bind "C-F4" "buffer-close"
\bind "F5" "screen-recenter"
\bind "M-F4" "lyx-quit"
\bind "F7" "dialog-show spellchecker"
\bind "F5" "screen-recenter"
\bind "C-M-Up" "scroll line up"
\bind "C-M-Down" "scroll line down"
\bind "C-M-Prior" "scroll page up"
\bind "C-M-Next" "scroll page down"
\bind "F7" "dialog-show spellchecker"
\bind "S-F7" "thesaurus-entry"
\bind "M-x" "command-execute"
\bind "M-x" "command-execute"
\bind "M-equal" "buffer-zoom-in"
\bind "M-plus" "buffer-zoom-in"
@ -102,10 +115,10 @@
\bind "M-Down" "paragraph-down"
\bind "C-Up" "buffer-begin"
\bind "C-Down" "buffer-end"
\bind "C-Right" "line-end"
\bind "C-Left" "line-begin"
\bind "C-Right" "line-end"
\bind "C-Left" "line-begin"
\bind "C-~S-greater" "label-goto"
\bind "C-~S-greater" "label-goto"
\bind "C-~S-less" "bookmark-goto 0"
@ -121,36 +134,39 @@
\bind "S-M-Left" "word-left-select"
\bind "S-M-Up" "paragraph-up-select"
\bind "S-M-Down" "paragraph-down-select"
\bind "S-C-Left" "line-begin-select"
\bind "S-C-Right" "line-end-select"
\bind "S-C-Left" "line-begin-select"
\bind "S-C-Right" "line-end-select"
\bind "S-Prior" "screen-up-select"
\bind "S-Next" "screen-down-select"
\bind "S-C-Up" "buffer-begin-select"
\bind "S-C-Down" "buffer-end-select"
\bind "S-C-Up" "buffer-begin-select"
\bind "S-C-Down" "buffer-end-select"
\bind "C-Insert" "copy"
\bind "S-Insert" "paste"
\bind "S-Delete" "cut"
# Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
\bind "S-KP_Right" "char-right-select"
\bind "S-KP_Left" "char-left-select"
\bind "S-KP_Up" "up-select"
\bind "S-KP_Down" "down-select"
\bind "S-M-KP_Right" "word-right-select"
\bind "S-M-KP_Left" "word-left-select"
\bind "S-M-KP_Up" "paragraph-up-select"
\bind "S-M-KP_Down" "paragraph-down-select"
\bind "S-KP_Home" "line-begin-select"
\bind "S-KP_End" "line-end-select"
\bind "S-KP_Prior" "screen-up-select"
\bind "S-KP_Next" "screen-down-select"
\bind "S-C-KP_Home" "buffer-begin-select"
\bind "S-C-KP_End" "buffer-end-select"
\bind "S-C-KP_Prior" "buffer-begin-select"
\bind "S-C-KP_Next" "buffer-end-select"
\bind "C-KP_Insert" "copy"
\bind "S-KP_Insert" "paste"
\bind "S-KP_Delete" "cut"
\bind "S-KP_Right" "char-right-select"
\bind "S-KP_Left" "char-left-select"
\bind "S-KP_Up" "up-select"
\bind "S-KP_Down" "down-select"
\bind "S-M-KP_Right" "word-right-select"
\bind "S-M-KP_Left" "word-left-select"
\bind "S-M-KP_Up" "paragraph-up-select"
\bind "S-M-KP_Down" "paragraph-down-select"
\bind "S-KP_Home" "line-begin-select"
\bind "S-KP_End" "line-end-select"
\bind "S-KP_Prior" "screen-up-select"
\bind "S-KP_Next" "screen-down-select"
\bind "S-C-KP_Home" "buffer-begin-select"
\bind "S-C-KP_End" "buffer-end-select"
\bind "S-C-KP_Prior" "buffer-begin-select"
\bind "S-C-KP_Next" "buffer-end-select"
\bind "C-KP_Insert" "copy"
\bind "S-KP_Insert" "paste"
\bind "S-KP_Delete"
"cut"
#
# bookmarks
@ -185,18 +201,18 @@
\bind "M-Return" "break-paragraph inverse"
\bind "C-Return" "newline-insert newline"
\bind "C-S-Return" "newline-insert linebreak"
\bind "C-k" "line-delete-forward"
\bind "C-k" "line-delete-forward"
\bind "M-space" "space-insert protected"
\bind "nobreakspace" "space-insert protected"
\bind "nobreakspace" "space-insert protected"
\bind "C-M-space" "space-insert normal"
\bind "S-M-space" "space-insert thin"
\bind "C-~S-slash" "specialchar-insert slash"
\bind "C-period" "specialchar-insert end-of-sentence-period"
\bind "M-period" "specialchar-insert dots"
\bind "Escape" "cancel"
\bind "C-M-Up" "paragraph-move-up"
\bind "C-M-Down" "paragraph-move-down"
#\bind "F9" "meta-prefix"
\bind "C-M-Up" "paragraph-move-up"
\bind "C-M-Down" "paragraph-move-down"
#\bind "F9" "meta-prefix"