bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38296: Allow Option key to be modifier for non-char key and mouse ev


From: Mattias Engdegård
Subject: bug#38296: Allow Option key to be modifier for non-char key and mouse events
Date: Wed, 20 Nov 2019 11:55:04 +0100

Mac users, especially those of us with a non-US keyboard, need the Option keys 
for entering various characters, and thus set 'ns-alternate-modifier' to nil, 
or use 'ns-right-alternate-modifier' to employ only one of them for this 
purpose. However, this prevents use of that key as modifier for function keys 
(arrows, backspace etc) or mouse actions.

This patch adds the variable 'ns-alternate-modifier-char-entry' which, when 
non-nil, inhibits the Option key translation to Emacs modifiers for character 
keys but allows it for any other event. For example, setting

(setq ns-alternate-modifier 'super)
(setq ns-alternate-modifier-char-entry t)

makes Option act as Super with function keys and mouse clicks, but retains the 
standard macOS semantics for character entry (for example, Option + p = π).

Attachment: 0001-Add-ns-alternate-modifier-char-entry.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]