<p></p>
<p>Ok, the magic number list is only the fallback default and is British keyboard (<code>"</code> and £ not <code>@</code> and <code>#</code>).  The code you pointed to is a good try and probably good enough for most cases, but it does assume that the digits are level 0 and shift is level 1, which may not be the case on all keyboards, but probably few enough it won't be a problem very often.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/1093#issuecomment-884645470">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ62UGZH3N2B63UITZDTY6LQNANCNFSM5AXJVZEQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJZ5VLGK353K3AIBOVLTY6LQNA5CNFSM5AXJVZE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGS5J4XQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/1093#issuecomment-884645470",
"url": "https://github.com/geany/geany-plugins/pull/1093#issuecomment-884645470",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>