forked from extern/Unexpected-Keyboard
Add arrows
Add simple arrows to the numeric keypad. Using the Fn key with these arrows will output double arrows.
This commit is contained in:
parent
363a65223c
commit
6b3123090c
@ -3,26 +3,26 @@
|
|||||||
<row>
|
<row>
|
||||||
<key width="0.75" key0="esc" key2="~" key4="!"/>
|
<key width="0.75" key0="esc" key2="~" key4="!"/>
|
||||||
<key width="0.75" key0="(" key2="[" key4="{"/>
|
<key width="0.75" key0="(" key2="[" key4="{"/>
|
||||||
<key key0="7" key3="<" key4=">"/>
|
<key key0="7" key1="<" key2=">" key4="↖"/>
|
||||||
<key key0="8" key2="∞"/>
|
<key key0="8" key2="∞" key4="↑"/>
|
||||||
<key key0="9" key2="π"/>
|
<key key0="9" key2="π" key4="↗"/>
|
||||||
<key width="0.75" key0="*" key1="√" key2="×"/>
|
<key width="0.75" key0="*" key1="√" key2="×"/>
|
||||||
<key width="0.75" key0="/" key1="%" key3="÷"/>
|
<key width="0.75" key0="/" key1="%" key3="÷"/>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<key width="0.75" key0="tab" key1=";" key2="|" key4="\\"/>
|
<key width="0.75" key0="tab" key1=";" key2="|" key4="\\"/>
|
||||||
<key width="0.75" key0=")" key2="]" key4="}"/>
|
<key width="0.75" key0=")" key2="]" key4="}"/>
|
||||||
<key key0="4"/>
|
<key key0="4" key4="←"/>
|
||||||
<key key0="5" key1="up" key2="right" key3="left" key4="down" edgekeys="true"/>
|
<key key0="5" key1="up" key2="right" key3="left" key4="down" edgekeys="true"/>
|
||||||
<key key0="6"/>
|
<key key0="6" key4="→"/>
|
||||||
<key width="0.75" key0="+" key1="Σ" key2="$"/>
|
<key width="0.75" key0="+" key1="Σ" key2="$"/>
|
||||||
<key width="0.75" key0="-" key2="^"/>
|
<key width="0.75" key0="-" key2="^"/>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<key shift="0.35" width="1.15" key0="shift" key2="fn" key4="alt"/>
|
<key shift="0.35" width="1.15" key0="shift" key2="fn" key4="alt"/>
|
||||||
<key key0="1" key1="superscript" key2="ordinal" key3="subscript"/>
|
<key key0="1" key1="superscript" key2="ordinal" key3="subscript" key4="↙"/>
|
||||||
<key key0="2"/>
|
<key key0="2" key4="↓"/>
|
||||||
<key key0="3"/>
|
<key key0="3" key4="↘"/>
|
||||||
<key width="1.15" key0="backspace" key2="delete"/>
|
<key width="1.15" key0="backspace" key2="delete"/>
|
||||||
</row>
|
</row>
|
||||||
<row height="0.95">
|
<row height="0.95">
|
||||||
|
@ -205,6 +205,14 @@ class KeyModifier
|
|||||||
case "?": name = "¿"; break;
|
case "?": name = "¿"; break;
|
||||||
case "tab": name = "\\t"; break;
|
case "tab": name = "\\t"; break;
|
||||||
case "space": name = "nbsp"; break;
|
case "space": name = "nbsp"; break;
|
||||||
|
case "↖": name = "⇖"; break;
|
||||||
|
case "↑": name = "⇑"; break;
|
||||||
|
case "↗": name = "⇗"; break;
|
||||||
|
case "←": name = "⇐"; break;
|
||||||
|
case "→": name = "⇒"; break;
|
||||||
|
case "↙": name = "⇙"; break;
|
||||||
|
case "↓": name = "⇓"; break;
|
||||||
|
case "↘": name = "⇘"; break;
|
||||||
case "€": case "£": return removed_key; // Avoid showing these twice
|
case "€": case "£": return removed_key; // Avoid showing these twice
|
||||||
default: return k;
|
default: return k;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user