# native-style key bindings for gitk on Mac OS X

3 messages from 2010-12-12 to 2010-12-13. Participants: Hans-Christoph Steiner, Andreas Ericsson.
Thread: https://gitlist.dev/t/26030

## Hans-Christoph Steiner, 2010-12-12 22:08

Subject: native-style key bindings for gitk on Mac OS X
Message-ID: <681947AB-F2D2-4EBC-A635-09E28FC27256@at.or.at>
URL: https://gitlist.dev/e/681947AB-F2D2-4EBC-A635-09E28FC27256%40at.or.at

```

Hey all,

This is my first post here, hopefully I'm not doing anything  
stupid ;)  I use gitk on Debian, Ubuntu, and Mac OS X.  I'm big on  
having apps feel native on each platform. Currently gitk's key  
bindings are very GNU/Linux-ish when using gitk on Mac OS X.  I'd like  
to submit a patch to make gitk use native-style key bindings and re- 
use common key bindings.  F-keys are really rarely used on Mac OS X,  
so it drives me a little nuts using them in gitk/Mac OS X.

Before starting this, I just wanted to make sure this isn't some hotly  
debated political issue.

.hc


----------------------------------------------------------------------------

Man has survived hitherto because he was too ignorant to know how to  
realize his wishes.  Now that he can realize them, he must either  
change them, or perish.    -William Carlos Williams

```

## Andreas Ericsson, 2010-12-13 08:30

Subject: Re: native-style key bindings for gitk on Mac OS X
Message-ID: <4D05D998.5080107@op5.se>
URL: https://gitlist.dev/e/4D05D998.5080107%40op5.se
In-Reply-To: <681947AB-F2D2-4EBC-A635-09E28FC27256@at.or.at>

```
On 12/12/2010 11:08 PM, Hans-Christoph Steiner wrote:
> 
> Hey all,
> 
> This is my first post here, hopefully I'm not doing anything stupid
> ;) I use gitk on Debian, Ubuntu, and Mac OS X. I'm big on having apps
> feel native on each platform. Currently gitk's key bindings are very
> GNU/Linux-ish when using gitk on Mac OS X. I'd like to submit a patch
> to make gitk use native-style key bindings and re-use common key
> bindings.

So long as the patch lets the original keys work (ie, people who are
used to them as they are now aren't suddenly hit by a nasty surprise),
I think it's a great idea.

> Before starting this, I just wanted to make sure this isn't some
> hotly debated political issue.
> 

It will be if the old keys stop working or all of a sudden do something
different. Especially if the new thing it does isn't exactly harmless
but the old thing was.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

```

## Hans-Christoph Steiner, 2010-12-13 16:28

Subject: Re: native-style key bindings for gitk on Mac OS X
Message-ID: <29A2F453-C1F8-4C7E-A35B-3F159EB693B8@at.or.at>
URL: https://gitlist.dev/e/29A2F453-C1F8-4C7E-A35B-3F159EB693B8%40at.or.at
In-Reply-To: <4D05D998.5080107@op5.se>

```

On Dec 13, 2010, at 3:30 AM, Andreas Ericsson wrote:

> On 12/12/2010 11:08 PM, Hans-Christoph Steiner wrote:
>>
>> Hey all,
>>
>> This is my first post here, hopefully I'm not doing anything stupid
>> ;) I use gitk on Debian, Ubuntu, and Mac OS X. I'm big on having apps
>> feel native on each platform. Currently gitk's key bindings are very
>> GNU/Linux-ish when using gitk on Mac OS X. I'd like to submit a patch
>> to make gitk use native-style key bindings and re-use common key
>> bindings.
>
> So long as the patch lets the original keys work (ie, people who are
> used to them as they are now aren't suddenly hit by a nasty surprise),
> I think it's a great idea.
>
>> Before starting this, I just wanted to make sure this isn't some
>> hotly debated political issue.
>>
>
> It will be if the old keys stop working or all of a sudden do  
> something
> different. Especially if the new thing it does isn't exactly harmless
> but the old thing was.


I think that's a good idea.  The only problem is Cmd-F5 (i.e. Reload)  
is already globally claimed in Mac OS X to turn on the accessibility  
voiceover reader.  So all you get is a robot voice reading your GUI to  
you.  This could be Ctrl-F5 instead, then it'd be the same as on GNU/ 
Linux.

.hc




----------------------------------------------------------------------------

"[T]he greatest purveyor of violence in the world today [is] my own  
government." - Martin Luther King, Jr.

```
