<p>For OSX both <code>delete</code> and <code>backspace</code> keys have the same scanCode (<code>51</code>) for keyDown event, while different for keystroke and keyUp events:</p>
<p>Backspace:</p>
<pre><code>down - #(2 2083375 51 1 0 0 0 1)
stroke - #(2 2083375 8 0 0 8 0 1)
up - #(2 2083464 51 2 0 0 0 1)
</code></pre>
<p>Delete:</p>
<pre><code>down - #(2 2114468 51 1 0 0 0 1)
stroke - #(2 2114468 127 0 0 127 0 1)
up - #(2 2114510 117 2 0 0 0 1)
</code></pre>

<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/OpenSmalltalk/opensmalltalk-vm/issues/363">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AhLyW-4BCVjdmvGYtpwvebZX2WkcQDdKks5vIF2VgaJpZM4aYMMx">mute the thread</a>.<img src="https://github.com/notifications/beacon/AhLyW-IasSMksNF40z__Pa30dci1BFj2ks5vIF2VgaJpZM4aYMMx.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"No distinction between #delete and #backspace OSX Keydown events (#363)"}],"action":{"name":"View Issue","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/363"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/363",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/363",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>