mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 14:13:09 +00:00
f36bc80bd7
This patch incorporates key remapping rules for the input filter that depend on the global numlock state.
25 lines
729 B
Plaintext
25 lines
729 B
Plaintext
<config>
|
|
<input name="numlock_enabled" rom="numlock" node="numlock">
|
|
<attribute name="enabled" /> </input>
|
|
|
|
<output node="remap">
|
|
<if>
|
|
<has_value input="numlock_enabled" value="yes" />
|
|
<then>
|
|
<inline>
|
|
<key name="KEY_KP0" to="KEY_INSERT"/>
|
|
<key name="KEY_KP1" to="KEY_END"/>
|
|
<key name="KEY_KP2" to="KEY_DOWN"/>
|
|
<key name="KEY_KP3" to="KEY_PAGEDOWN"/>
|
|
<key name="KEY_KP4" to="KEY_LEFT"/>
|
|
<key name="KEY_KP6" to="KEY_RIGHT"/>
|
|
<key name="KEY_KP7" to="KEY_HOME"/>
|
|
<key name="KEY_KP8" to="KEY_UP"/>
|
|
<key name="KEY_KP9" to="KEY_PAGEUP"/>
|
|
<key name="KEY_KPCOMMA" to="KEY_DELETE"/>
|
|
</inline>
|
|
</then>
|
|
</if>
|
|
</output>
|
|
</config>
|