V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
DuckJK
V2EX  ›  问与答

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

  •  
  •   DuckJK · Apr 17, 2017 · 1219 views
    This topic created in 3297 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   ·   1002 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:23 · PVG 06:23 · LAX 15:23 · JFK 18:23
    ♥ Do have faith in what you're doing.