Touch barのescキー

177 views
Skip to first unread message

yukihik...@gmail.com

unread,
Dec 13, 2017, 6:41:42 AM12/13/17
to Karabiner
Karabiner-jaに投稿しましたが、現在はこちらがメインのようですので投稿し直します。

いつもKarabiner-Elementsを愛用しております。
素晴らしいユーティリティーだと思います!

さて私はTouch barの搭載されたMacを使用しているのですが、ファクションキー部分が物理キーでなく、触れただけで反応してしまうため、予期せぬ動作が生じてしまうことがよくあります。

特に悩ましいのが不用意に「esc」に触れてしまうことです。
せっかくフルスクリーンで作業しているのに「esc」に触れてしまい解除がされてしまいまうことがよくあります。とりわけSplit Viewで作業しているときは、元の状態に戻すのに手間がかかるため、とてもめんどくさいと感じます。

もし可能でしたらKarabiner-Elementsに不用意にescキーが反応しないような設定を組み込めませんでしょうか。
たとえば、escキーをダブルクリック(ダブルタッチ)したときのみesc機能が動作するであるとか、shift+escのときのみesc機能がするといった具合です。

お時間ありましたら、ご検討くださいませ。

Lance E Sloan

unread,
Dec 21, 2017, 12:06:35 PM12/21/17
to Karabiner
If the poor machine translation from ja to en is accurate enough, I think you and I have the same problem.

I began using a MacBook Pro with Touch Bar this week.  I'm a touch typist and I use the "esc" key very often (to exit full-screen video, exit vi or vim insert mode, to activate the UI "Cancel" button, to activate "Force Quit Applications", close the Google Chrome find in page function, etc.).  I've learned that I rest my hand near the key, ready to press it at any time.  Because now it's on the Touch Bar, a light accidental touch activates it, often at inconvenient times.

In Karabiner-Elements' "Complex Modifications", I tried a rule named "Pok3r Escape key".  It added "esc" to "`~" and required "fn" to activate the original "`~".  In addition to that, I used a "Simple Modifications" rule to change the "esc" on the Touch Bar (AKA "No product name (No manufacturer name)") to "vk_none", which disables it.

I tried that arrangement for a few days.  However, as a programmer, I use "`" and "~" often.  I grew tired of needing to press "fn" to activate that key.  So I figured out how to write my own complex modification for Karabiner-Elements to simply require "fn" to activate the Touch Bar "esc" key.  (Maybe there's documentation about writing complex modifications, but I just happened to figure how it was done.)

My new rule "Require fn for esc" is available at:
See the instructions there for details about importing the rule into Karabiner-Elements.  Or just use the command:

open karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/sloanlance/e97722a69b4752efe9d77425d66006dd/raw/karabiner_require_fn_for_esc.json

I wanted to offer to tekezo to add this rule to his website and I came to this group to see whether there is documentation for submitting new rules.  I didn't see it, but I saw this message and thought I'd respond.  I was inspired to make my Karabiner-Elements rule available via GitHub gist.

Everyone is welcome to try this rule.  Please tell me if you have any improvements to suggest.

yukihik...@gmail.com

unread,
Dec 24, 2017, 10:38:21 PM12/24/17
to Karabiner

Lamceさん


ご丁寧なお返事をありがとうございました。

わざわざ機械翻訳をして読んでいただき、感謝しています。


ご指摘の通り、私の抱える問題は、Lamceさんの抱えている問題と同じです。


escキーとFnキーを組み合わせるという発想は、とても素晴らしいと思います!

このようにすることで、今回の問題はかなり解決するはずです。


Lamceさんの作成された"Require fn for esc"を試してみました。

しかし残念ながら、私のMacBookProTouch Barモデル)では、このルールは作動しませんでした。

ルールをインストールしても、何も変化は生じませんでした。


興味深いことに、iMacではこのルールがきちんと機能しました。

つまりFnキーと一緒に押した時だけ、escキーが機能するようになりました。


どちらも同じ日本語版OSですので、Touch Barモデルであるか、通常のキーボードモデルであるかの違いが原因のように思います。


*****


tekezo

お忙しいところ恐れ入ります

一部のTouch Barユーザーに不意にescに触ってしまい困るという問題が生じております。

ぜひ"Require fn for esc”のようなルールを、 Karabiner-Elementsにご搭載くださいませ。


*************************


Hi Lamce


Thank you for your kind reply.

I appreciate that you translated my comment and read it


As you pointed out, my problem is the same as your problem.


I think that the idea of combining esc key and Fn key is very wonderful !

By doing so, the problem should be solved considerably.


I tried your ”Require fn for esc" rule.

Unfortunately, in my MacBook Pro (Touch Bar model), this rule did not work.

Even if you installed the rules, nothing changed.


Interestingly, this rule worked properly on iMac.

That is, the esc key now works only when pressed with the Fn key.


Both are the same Japanese version OS, so I think that Touch Bar existence is the cause.


*****


Mr. tekezo


There is a problem that some Touch Bar users.

It is a problem of accidentally touching esc.

Please put the rules like "Require fn for esc" in Karabiner-Elements.

Tank you

Reply all
Reply to author
Forward
0 new messages