summaryrefslogtreecommitdiff
path: root/lisp/cus-start.el
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2016-03-30 19:22:56 +0200
committerPhilipp Stephani <phst@google.com>2018-02-04 20:44:45 +0100
commit8fbf28536ee1169f59206523e2af050916befbf6 (patch)
tree3bb3e08efc13ba21fbedb4bafe17b8023fb48ca7 /lisp/cus-start.el
parentd2630e456923d2bd70fdd59267fe6e3d8eeb69ca (diff)
downloademacs-8fbf28536ee1169f59206523e2af050916befbf6.tar.gz
Fix handling of modifier keys on macOS
* src/nsterm.m (keyDown:): Distinguish between shift-like and control-like modifier keys. Allow treating ⌘ as shift-like modifier (e.g. for the Gujarati – QUERTY input method, where ⌘ switches to QUERTY.) * lisp/cus-start.el (standard): Change nil to none for ns-command-modifier; update description. * etc/NEWS: Add NEWS entry.
Diffstat (limited to 'lisp/cus-start.el')
-rw-r--r--lisp/cus-start.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 4529fa1ac92..9ba1e105a1b 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -413,6 +413,10 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of
;; msdos.c
(dos-unsupported-char-glyph display integer)
;; nsterm.m
+ ;;
+ ;; FIXME: Why does ⌃ use nil instead of none? Also the
+ ;; description is confusing; setting it to nil disables ⌃
+ ;; entirely.
(ns-control-modifier
ns
(choice (const :tag "No modifier" nil)
@@ -429,13 +433,13 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of
(const super)) "24.1")
(ns-command-modifier
ns
- (choice (const :tag "No modifier" nil)
+ (choice (const :tag "No modifier (work as layout switch)" none)
(const control) (const meta)
(const alt) (const hyper)
(const super)) "23.1")
(ns-right-command-modifier
ns
- (choice (const :tag "No modifier (work as command)" none)
+ (choice (const :tag "No modifier (work as layout switch)" none)
(const :tag "Use the value of ns-command-modifier"
left)
(const control) (const meta)