commit 4eb4cbb04f975cb94f79519b805a606465c5940a
Author: Scott Kostyshak <[email protected]>
Date: Mon Nov 17 20:14:22 2014 -0500
C-a is now bound to inset-select-all
C-M-a is bound to the global "select all". The
reason for this change is that selecting an inset
is a more common operation that selecting an entire
document.
This patch is the result of discussion on #7727.
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index 00d57ae..b510426 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -30,6 +30,9 @@ The following LyX functions have been changed in 2.2:
The following LyX key bindings have been changed in 2.2:
+- "C-a" is now bound to "inset-select-all" and "C-M-a" is now
+ bound to the old function (a command-sequence to select the
+ entire buffer).
The following LyX documents have been moved in 2.2:
diff --git a/lib/bind/cua.bind b/lib/bind/cua.bind
index 58e18f2..359e1d4 100644
--- a/lib/bind/cua.bind
+++ b/lib/bind/cua.bind
@@ -87,8 +87,8 @@ Format 2
\bind "C-y" "redo"
\bind "C-S-Z" "redo"
-\bind "C-a" "command-sequence buffer-begin ;
buffer-end-select" # select all
-\bind "C-M-a" "inset-select-all"
+\bind "C-M-a" "command-sequence buffer-begin ;
buffer-end-select" # select all
+\bind "C-a" "inset-select-all"
\bind "C-S-E" "changes-track" # it's what MS Word uses
\bind "~S-M-quotedbl" "quote-insert single"
diff --git a/lib/bind/mac.bind b/lib/bind/mac.bind
index efee7b2..ecdd3ad 100644
--- a/lib/bind/mac.bind
+++ b/lib/bind/mac.bind
@@ -123,8 +123,8 @@ Format 2
# +: "Shift-Command-4" # Capture a selection to a file
# +: "Shift-Control-Command-4" # Capture a selection to the Clipboard
# +: "Command-A" # Highlight every item in a document or
window, or all characters in a text field
-\bind "C-a" "command-sequence buffer-begin ;
buffer-end-select"
-\bind "C-M-a" "inset-select-all"
+\bind "C-M-a" "command-sequence buffer-begin ;
buffer-end-select"
+\bind "C-a" "inset-select-all"
# +: "Command-B" # Boldface the selected text or toggle
boldfaced text on and off
\bind "C-M-b" "font-boldsymbol"
\bind "C-b" "font-bold"
diff --git a/lib/bind/sciword.bind b/lib/bind/sciword.bind
index 533d6b1..b3814f4 100644
--- a/lib/bind/sciword.bind
+++ b/lib/bind/sciword.bind
@@ -113,7 +113,8 @@ Format 2
\bind "C-x" "cut"
\bind "C-z" "undo"
\bind "S-C-Z" "redo"
-\bind "C-a" "command-sequence buffer-begin ; buffer-end-select" # select
all
+\bind "C-a" "inset-select-all"
+\bind "C-M-a" "command-sequence buffer-begin ; buffer-end-select" # select
all
# This combination makes an umlaut accent now.