Code Monkey home page Code Monkey logo

Comments (2)

lesca avatar lesca commented on August 29, 2024

this is the issue of the QMK not VIA.

Currently, the kc argument of MT() is limited to the Basic Keycode set, meaning you can’t use keycodes like LCTL(), KC_TILD, or anything greater than 0xFF. This is because QMK uses 16-bit keycodes, of which 3 bits are used for the function identifier, 1 bit for selecting right or left mods, and 4 bits to tell which mods are used, leaving only 8 bits for the keycode. Additionally, if at least one right-handed modifier is specified in a Mod-Tap, it will cause all modifiers specified to become right-handed, so it is not possible to mix and match the two - for example, Left Control and Right Shift would become Right Control and Right Shift.

source: https://docs.qmk.fm/#/mod_tap

from firmware.

propri avatar propri commented on August 29, 2024

I don't quite understand how that relates to my problem? The keycode part works as expected, but the modifier doesn't. I am also not mixing any right/left modifiers.

I want to have a key that acts as space when tapped, but as RALT when held. If I try to program it with the any function of via as described above, the key acts as both RALT and LALT at the same time when held.
If I program it with LALT instead, it is saved as MT(MOD_LALT,KC_V) as expected.
Non QWERTY layouts often need to use RALT to reach certain symbols, and activating both RALT and LALT at the same time leads to unexpected and wrong inputs.

When I programmed my keyboard with QMK directly, I could achieve this by using RALT_T(KC_SPC), but VIA doesn't seem to support the RALT_T().

from firmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.