GNU bug report logs - #14736
24.3; "Insert" key results in question mark mouse cursor and does not send a keyboard event

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Kumaran Santhanam <kumaran@HIDDEN>; Keywords: confirmed; dated Fri, 28 Jun 2013 01:26:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Alan Third <alan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 14736 <at> debbugs.gnu.org:


Received: (at 14736) by debbugs.gnu.org; 31 May 2016 20:41:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 31 16:41:20 2016
Received: from localhost ([127.0.0.1]:48750 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1b7qTX-0000Ly-RD
	for submit <at> debbugs.gnu.org; Tue, 31 May 2016 16:41:19 -0400
Received: from mail-wm0-f46.google.com ([74.125.82.46]:38041)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <athird@HIDDEN>) id 1b7qTV-0000Lm-JH
 for 14736 <at> debbugs.gnu.org; Tue, 31 May 2016 16:41:18 -0400
Received: by mail-wm0-f46.google.com with SMTP id a20so734573wma.1
 for <14736 <at> debbugs.gnu.org>; Tue, 31 May 2016 13:41:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20120113;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=5JQcU2XV39zLugx9FJvGh5oL6U1K5LqTGebzAWnpJMo=;
 b=ZqlmM3UG2aQZK3/tLGzSNH3HIjsq/avjv2A+rYF+dPYy+/lU5xBF7MzgYphAxx/UFD
 eT5x6+Khr0wU7SnoMVAOiwhJlsCQjXwFssIU7GjoHPJFZvX2HaigspYFy1guauqVYUZV
 3pofURZwHzFwB/yt7JZ4PvkdtQ10PbtGXDJo1EpcZTXif85alRCd4Vzh5zMKva8IUhxY
 OgCWgGErYoskwl0EiHRPPNydZTezA3rxigmVgy2EtGLn66hIMsKeq5YGIYW/1yLYqN0q
 z3yDYj3rHVdcNQoGMIsTFoz1pLxJdHRRfEot5aA3JvXf4XfJrHvZthHa8AXcgajBoHTH
 cjcQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version;
 bh=5JQcU2XV39zLugx9FJvGh5oL6U1K5LqTGebzAWnpJMo=;
 b=Gbpd52PSmpRUBECfB4WC0EAyfbWIsQvmf77lbH/AxFIiA9xMlFkYi8PzQQIBWDXNZa
 Uw7ufraBunTboO0B+SAExDn8dbEvMowLqn7AAKa46udlxM9idj4gahiCFJmTitXev9Tl
 L5/MxOI7fsQJfDx45e4aKh5Tcht0ZwKTM5L9e80Dp+Uy7VbQn450JQKPFsMjR+HFZFOX
 13JVCz4GxXJvwZKJlKTAEI7RYYSGqN15IAkzaQpqGyLHhoCI6OUor4KFZCUpi6VN6mxk
 X0iuoc1c7o7NMBDeMxD9Mk63mkjg+CxAlZZU0GpSJUad51uqdFkmQAAqqeiVYog6NKBj
 O6IA==
X-Gm-Message-State: ALyK8tLDVrIdUVu5C1IlwknD4VyQxJNOFe0xqCUFiC34ibbuStufs5l1giXQyhncvt9JnQ==
X-Received: by 10.28.62.69 with SMTP id l66mr17200719wma.70.1464727271878;
 Tue, 31 May 2016 13:41:11 -0700 (PDT)
Received: from breton.holly.idiocy.org
 (ip6-2001-08b0-03f8-8129-20c5-ff51-aaec-eb15.holly.idiocy.org.
 [2001:8b0:3f8:8129:20c5:ff51:aaec:eb15])
 by smtp.gmail.com with ESMTPSA id q189sm5103662wmd.19.2016.05.31.13.41.11
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 31 May 2016 13:41:11 -0700 (PDT)
From: Alan Third <alan@HIDDEN>
To: Kumaran Santhanam <kumaran@HIDDEN>
Subject: Re: bug#14736: 24.3;
 "Insert" key results in question mark mouse cursor and does not send
 a keyboard event
References: <1832345773.5319.1372382464778.JavaMail.root@HIDDEN>
Date: Tue, 31 May 2016 21:41:10 +0100
In-Reply-To: <1832345773.5319.1372382464778.JavaMail.root@HIDDEN> (Kumaran
 Santhanam's message of "Thu, 27 Jun 2013 18:21:04 -0700 (PDT)")
Message-ID: <m2r3ciufix.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 14736
Cc: 14736 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

Kumaran Santhanam <kumaran@HIDDEN> writes:

> On Mac OS X, the "Insert" key on external keyboards is mapped to
> "Help". Therefore, when the "Insert" key is pressed, the mouse cursor
> turns into a question mark and the key is not passed to Emacs to
> process. This is problematic because users may have keybindings from
> Linux and Windows that make use of the "Insert" key.

Confirmed as still present in Emacs 25.

Is there some use for the "help" key and question-mark pointer?

Interestingly, it looks like on recent Apple keyboards "insert" is
replaced with fn instead of help.
-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14736; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Jun 2013 01:25:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 27 21:25:33 2013
Received: from localhost ([127.0.0.1]:45902 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UsNRL-00065z-AZ
	for submit <at> debbugs.gnu.org; Thu, 27 Jun 2013 21:25:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40670)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <kumaran@HIDDEN>) id 1UsNNS-0005yL-5G
 for submit <at> debbugs.gnu.org; Thu, 27 Jun 2013 21:21:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <kumaran@HIDDEN>) id 1UsNNI-0000Ro-J0
 for submit <at> debbugs.gnu.org; Thu, 27 Jun 2013 21:21:24 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:40744)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <kumaran@HIDDEN>) id 1UsNNI-0000Rk-Gt
 for submit <at> debbugs.gnu.org; Thu, 27 Jun 2013 21:21:20 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42353)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <kumaran@HIDDEN>) id 1UsNND-0005gf-Q5
 for bug-gnu-emacs@HIDDEN; Thu, 27 Jun 2013 21:21:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <kumaran@HIDDEN>) id 1UsNN9-00008s-3P
 for bug-gnu-emacs@HIDDEN; Thu, 27 Jun 2013 21:21:15 -0400
Received: from na3sys009aog122.obsmtp.com ([74.125.149.147]:48618)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <kumaran@HIDDEN>) id 1UsNN8-00005h-RN
 for bug-gnu-emacs@HIDDEN; Thu, 27 Jun 2013 21:21:11 -0400
Received: from mail.nerur.com ([173.228.91.168]) (using TLSv1) by
 na3sys009aob122.postini.com ([74.125.148.12]) with SMTP
 ID DSNKUczlAotvC0ORkU71zlSRKvdU5GH0ojYs@HIDDEN;
 Thu, 27 Jun 2013 18:21:10 PDT
Date: Thu, 27 Jun 2013 18:21:04 -0700 (PDT)
From: Kumaran Santhanam <kumaran@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Message-ID: <1832345773.5319.1372382464778.JavaMail.root@HIDDEN>
In-Reply-To: <177174145.5314.1372381840342.JavaMail.root@HIDDEN>
Subject: 24.3; "Insert" key results in question mark mouse cursor and does
 not send a keyboard event
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 27 Jun 2013 21:25:29 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

On Mac OS X, the "Insert" key on external keyboards is mapped to "Help".  Therefore, when the "Insert" key is pressed, the mouse cursor turns into a question mark and the key is not passed to Emacs to process.  This is problematic because users may have keybindings from Linux and Windows that make use of the "Insert" key.

The VIM project was able to resolve this issue by using the following code in the sendEvent method:

<code>
    // HACK! Intercept 'help' key presses and clear the 'help key flag', else
    // Cocoa turns the mouse cursor into a question mark and goes into 'context
    // help mode' (the keyDown: event itself never reaches the text view).  By
    // clearing the 'help key flag' this event will be treated like a normal
    // key event.
    if ((NSKeyDown == type || NSKeyUp == type) && (flags & NSHelpKeyMask)) {
        flags &= ~NSHelpKeyMask;
        event = [NSEvent keyEventWithType:[event type]
                                 location:[event locationInWindow]
                            modifierFlags:flags
                                timestamp:[event timestamp]
                             windowNumber:[event windowNumber]
                                  context:[event context]
                               characters:[event characters]
              charactersIgnoringModifiers:[event charactersIgnoringModifiers]
                                isARepeat:[event isARepeat]
                                  keyCode:[event keyCode]];
</code>

The full source is here:
https://code.google.com/p/macvim/source/browse/trunk/MMApplication.m

It would be a great benefit to users if this patch could be included in the upcoming point release.

Thanks,
Kumaran


-----


In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2013-03-12 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1187
Configured using:
 `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
 '--with-ns' 'build_alias=i686-apple-darwin'
 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.7
 -isystem
 /Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/
 -F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks''




Acknowledgement sent to Kumaran Santhanam <kumaran@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#14736; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 31 May 2016 20:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.