Re: how to modify x11 key mappings? (Insert key is partially blocked)
Re: how to modify x11 key mappings? (Insert key is partially blocked)
- Subject: Re: how to modify x11 key mappings? (Insert key is partially blocked)
- From: Jeremy Huddleston <email@hidden>
- Date: Sat, 30 Oct 2010 11:59:28 -0700
Yeah, but that's a bit ugly. I'd rather find a switch for the "Help" key... There's probably something that tells AppKit "Hey, this application doesn't use the Help key, just pass it through" ... I was thinking it was something in the NIB. Google is not much help with keywords like "Help" and "Insert" ...
On Oct 30, 2010, at 11:48, Jim Norris wrote:
> Looking at the Xquartz source[1] and the way event handling works[2], my bet
> is that you could change the code to detect the "Help" key explicitly and
> bypass the call to performKeyEquivalent: in that case.
>
> [1]
> http://cgit.freedesktop.org/xorg/xserver/tree/hw/xquartz/X11Application.m#n294
>
> [2]
> http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/EventArchitecture.html#//apple_ref/doc/uid/10000060i-CH3-SW10
>
> On Sat, Oct 30, 2010 at 12:19 AM, Jeremy Huddleston <email@hidden>wrote:
>
>> I don't use Iterm, so I can't really comment on that, but yes... there
>> likely is something that could be called to disable the Insert/Help key from
>> triggering Help. I just don't know what it is, and it's not particularly a
>> high priority for me, but if you can figure out what it is, I'll certainly
>> implement it.
>>
>> --Jeremy
>>
>> On Oct 29, 2010, at 16:30, Joshua Redstone wrote:
>>
>>> But then why does it work fine in Iterm?
>>> The fact that the Insert key works in the Iterm app suggests to me that
>> it
>>> is an application issue and that x11 is in principle capable of passing
>> the
>>> insert key through. For example, one could in principle imagine hacking
>>> xquartz to do whatever it is iterm does to capture the Insert key.
>>> Josh
>>>
>>>
>>> On Fri, Oct 29, 2010 at 4:19 PM, Jeremy Huddleston <email@hidden
>>> wrote:
>>>
>>>> Yes. That question was already answered by Jim in the first reply. It
>> is
>>>> because that physical key corresponds to the "Help" key on Mac keyboards
>>>> which don't have an Insert.
>>>>
>>>>
>>>> On Oct 29, 2010, at 16:03, Joshua Redstone wrote:
>>>>
>>>>> Do you have any sense of why the mapping of the insert key changes
>> based
>>>> on
>>>>> the 'Enable Key Equivalents'?
>>>>> I don't have a mental model for what the 'Enable Key Equivalents' does
>>>>> internally...
>>>>> Josh
>>>>>
>>>>>
>>>>> On Fri, Oct 29, 2010 at 3:48 PM, Jeremy Huddleston <email@hidden
>>>>> wrote:
>>>>>
>>>>>> If I knew of a way to do this, I'd do it for you, but I don't.
>>>>>>
>>>>>> On Oct 29, 2010, at 11:37, Joshua Redstone wrote:
>>>>>>
>>>>>>> Hi Jeremy,
>>>>>>> I was hoping maybe xquartz used some plist somewhere that I could
>>>> change?
>>>>>>> If I were willing to modify source-code, do you think doing a mod
>>>> (maybe
>>>>>>> just for myself) to get it to not remap Insert
>>>>>>> would be straight-forward?
>>>>>>> Thanks,
>>>>>>> Josh
>>>>>>>
>>>>>>> On Fri, Oct 29, 2010 at 11:30 AM, Jeremy Huddleston <
>>>> email@hidden
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Not that I know of...
>>>>>>>>
>>>>>>>> On Oct 29, 2010, at 09:19, Joshua Redstone wrote:
>>>>>>>>
>>>>>>>>> Hi Jim,
>>>>>>>>> Is there a way to keep 'Enable Key Equivalents' selected and also
>>>> have
>>>>>>>>> xquartz not remap Insert? Alternatively, is there a way to have
>> the
>>>>>>>> "Help"
>>>>>>>>> key generate a x event? I like being able to use 'Cmd-`' to
>> switch
>>>>>>>> between
>>>>>>>>> x windows. - because without it, I don't have a good way to switch
>>>>>> among
>>>>>>>> the
>>>>>>>>> x11 windows. The normal 'Cmd-Tab' task switcher shows only the x11
>>>> app
>>>>>>>>> itself, not the windows inside it.
>>>>>>>>> Thanks,
>>>>>>>>> Josh
>>>>>>>>>
>>>>>>>>> On Thu, Oct 28, 2010 at 3:42 PM, Jim Norris <email@hidden>
>>>> wrote:
>>>>>>>>>
>>>>>>>>>> If you turn off "Enable Key Equivalents" in X11.app the insert key
>>>>>> works
>>>>>>>>>> properly, but otherwise it seems mapped to the useless "Help" key.
>>>>>>>>>>
>>>>>>>>>> On Thu, Oct 28, 2010 at 2:10 PM, Joshua Redstone <
>>>> email@hidden
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi x11-users,
>>>>>>>>>>> Does anyone know how to get xquartz to not partially block the
>>>>>> 'Insert'
>>>>>>>>>>> key? I was hoping there's a key map somewhere than I can
>>>> configure.
>>>>>>>>>>> When I run xev inside xterm on xquartz 2.5.3 on OSX 10.6.4,
>>>> pressing
>>>>>>>>>>> Insert (on a microsoft natural keyboard) in combination with ALT
>> or
>>>>>>>> CRTL
>>>>>>>>>>> produces an X event for the insert key, but just pressing insert
>> or
>>>>>>>>>>> shift-insert does not produce an event for the key. I've been
>> able
>>>>>> to
>>>>>>>> get
>>>>>>>>>>> all of these key combinations to work fine inside the iTerm app,
>> so
>>>> I
>>>>>>>> think
>>>>>>>>>>> it's an issue with x11 rather than some other piece of osx
>>>>>> intercepting
>>>>>>>> the
>>>>>>>>>>> key combinations.
>>>>>>>>>>> Any suggestions?
>>>>>>>>>>> Thanks,
>>>>>>>>>>> Josh
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>>>>>>> X11-users mailing list (email@hidden)
>>>>>>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> This email sent to email@hidden
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>>>>> X11-users mailing list (email@hidden)
>>>>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>>>
>>>>>>
>>>>
>>>>>>>>>
>>>>>>>>> This email sent to email@hidden
>>>>>>>>
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>>> X11-users mailing list (email@hidden)
>>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>
>>>>
>>>>>>>
>>>>>>> This email sent to email@hidden
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> X11-users mailing list (email@hidden)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>>>
>>>>> This email sent to email@hidden
>>>>
>>>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> X11-users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden