unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8680: Cocoa Emacs not mapping Clear key on aluminum keyboards.
@ 2011-05-17  5:07 Michael Marchionna
  2011-05-17 17:34 ` bug#8680: nsterm.m does not distinguish key on the key pad Michael Marchionna
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Michael Marchionna @ 2011-05-17  5:07 UTC (permalink / raw)
  To: 8680

The newer Mac aluminum keyboards have a "clear" on the keypad group where the Num-Lock typically
lives.   This key generates:  keyCode: 71 (0x47), and character: 0xf739.  The character 0xf739 maps to
the NSClearLineFunctionKey defined in NSEvent.h.

Since this symbol is not listed in the nsterm.m translation table the clear key becomes a dead key.  It can
be mapped to emacs [clear] key with the following change.

diff --git a/src/nsterm.m b/src/nsterm.m
index 91f0cbb..119327d 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -87,6 +87,7 @@ static unsigned convert_ns_to_X_keysym[] =
   NSBeginFunctionKey,           0x58,
   NSSelectFunctionKey,          0x60,
   NSPrintFunctionKey,           0x61,
+  NSClearLineFunctionKey,       0x0B,
   NSExecuteFunctionKey,         0x62,
   NSInsertFunctionKey,          0x63,
   NSUndoFunctionKey,            0x65,

This change makes the key respond as it did in Carbon Emacs.






^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-12-19 17:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-17  5:07 bug#8680: Cocoa Emacs not mapping Clear key on aluminum keyboards Michael Marchionna
2011-05-17 17:34 ` bug#8680: nsterm.m does not distinguish key on the key pad Michael Marchionna
2012-11-04  3:34   ` Chong Yidong
2011-05-23 20:11 ` bug#8680: emacs 24.0 OS X keypad patch Michael Marchionna
2011-07-04 17:42   ` Stefan Monnier
2011-07-07  3:04     ` Adrian Robert
2011-07-07 14:55       ` Michael Marchionna
2013-12-10 22:13 ` bug#8680: Bug #8680 Andrew Stein
2013-12-10 22:40   ` bug#8680: Glenn Morris
2013-12-10 22:54     ` bug#8680: Andrew Stein
2013-12-11  4:53       ` bug#8680: Stefan Monnier
2013-12-12  0:48         ` bug#8680: Leo Liu
2013-12-13 21:50           ` bug#8680: releases Juri Linkov
2013-12-19  3:00             ` Leo Liu
2013-12-19 13:43               ` Stefan Monnier
2013-12-19 17:12                 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).