Closed Joppla closed 3 months ago
Hi,
The modmap is placed at the same levels as the rows, for example starting from the qwerty US layout:
<keyboard name="QWERTY (US)" script="latin">
<modmap>
<fn a="~" b="≈"/>
<fn a="=" b="≠"/>
</modmap>
<row>
<key key0="q" key2="1" key4="loc esc"/>
<key key0="w" key1="~" key2="2" key3="\@"/>
<key key0="e" key1="!" key2="3" key3="\#" key4="loc €"/>
<key key0="r" key2="4" key3="$" key1="loc ₪"/>
<key key0="t" key2="5" key3="%"/>
<key key0="y" key2="6" key3="^"/>
<key key0="u" key2="7" key3="&"/>
<key key0="i" key2="8" key3="*"/>
<key key0="o" key1="loc accent_macron" key2="9" key3="(" key4=")"/>
<key key0="p" key2="0"/>
</row>
... The rest
</keyboard>
@JapanYoshi It's possible to map Fn since last release.
Hi, Thank for reaction. I thought it should be something like that, but only the original replacement with æ en ₱ for a and b is shown.
This is my code:
<?xml version="1.0" encoding="utf-8"?>
This means that "~" should be changed into "≈" when Fn is pressed:
<fn a="~" b="≈"/>
It's not related to the "a" and "b" keys, "a" and "b" are the XML attributes for "from" and "to".
Le 9 juin 2024 17:29:20 GMT+02:00, Joppla @.***> a écrit :
Hi, Thank for reaction. I thought it should be something like that, but only the original replacement with æ en ₱ for a and b is shown.
This is my code: [code] <?xml version="1.0" encoding="utf-8"?>
|
|
|
[/code]
-- Reply to this email directly or view it on GitHub: https://github.com/Julow/Unexpected-Keyboard/issues/655#issuecomment-2156655453 You are receiving this because you commented.
Message ID: @.***>
Thanks! Now I understand it! 😀
Hi, Just another question for the same subject.
If in the default layout for example is written:
<fn a="e" b="€" />
but I don't want to change it in my layout, is than the only way to undo it to make the rule:
<fn a="e" b="e" />
?
Or is there another way?
If you have a custom layout file, it should be sufficient to remove the existing rule, rather than write a new rule to countermand it.
Fn+e gives € and the only way to disable that is to explicitly revert it as you did.
Thanks!
Now mentioned in the draft documentation.
Hello,
Realy nice keyboard. Compliments.
I was experimenting a bit with the custom keyboard. I try to use modmap to use the fn key in other way. But till now it doesn't what I suspect.
Questions Can I use the modmap tag within the custom keybord? Where to place the modmap tag?
Thanks for reaction.