DuckJK
V2EX  ›  问与答

karabiner 长按 cap 的作用等于 shift 长按,这个语法应该怎么写?

  •  
  •   DuckJK · Apr 17, 2017 · 1289 views
    This topic created in 3330 days ago, the information mentioned may be changed or developed.

    喵了半天没不知道这个语句怎么写,求大神告知。我把 shift 映射为一个超级修饰键了=。=,所有现在怎么长按 cap 达到长按 shift 的作用?

    Supplement 1  ·  Apr 17, 2017
    已解决:

    ```
    <item>
    <name>change long press cap to shift</name>
    <identifier>private.cap_to_shift</identifier>
    <autogen>
    __HoldingKeyToKey__
    KeyCode::CAPSLOCK,
    <!--short press-->
    @begin
    KeyCode::ESCAPE,
    @end

    <!--hold-->
    @begin
    KeyCode::SHIFT_L,
    @end

    Option::NOREPEAT,
    ThresholdMillisecond::RawValue::2000,
    </autogen>
    </item>
    1 replies    2017-04-17 10:21:09 +08:00
    DuckJK
        1
    DuckJK  
    OP
       Apr 17, 2017
    这种方法貌似有毛病。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2732 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:51 · PVG 20:51 · LAX 05:51 · JFK 08:51
    ♥ Do have faith in what you're doing.