# Numpad Equals not working

**URL:** https://discourse.glfw.org/t/numpad-equals-not-working/1157
**Category:** support
**Created:** [August 16, 2018, 8:07am UTC](https://discourse.glfw.org/t/numpad-equals-not-working/1157 "2018-08-16T08:07:41Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![RobertK92](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/robertk92/32/194_2.png) [@RobertK92](https://discourse.glfw.org/u/RobertK92)
#### Post date: [August 16, 2018, 8:07am UTC](https://discourse.glfw.org/t/numpad-equals-not-working/1157/1 "2018-08-16T08:07:41Z")

</div>

Hello,

I’m using Glfw in C# using [Glfw.net](http://Glfw.net) bindings. I made a simple C# app that prints the key I pressed to the console. Every key prints its correct enum name except for my numpad equals key, that prints Unknown (aka its keycode is -1). The normal equals does work fine.  
Does anyone else have this problem?

My specs:

Windows 10 x64  
Apply Magic Keyboard:

 ![](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/f023b7aec70a8861262eb6ad4b319a7047efb68d.png)  
It has an international layout (not US).

---

<div class="post-metadata">

### Author: ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)
#### Post date: [August 16, 2018, 9:41am UTC](https://discourse.glfw.org/t/numpad-equals-not-working/1157/2 "2018-08-16T09:41:21Z")

</div>

This looks like it could be a bug - looking at the source code for Windows I see the following numpad keys:

> <https://github.com/glfw/glfw/blob/master/src/win32_init.c#L298-L313>

whereas for Mac OS we have:

> <https://github.com/glfw/glfw/blob/master/src/cocoa_init.m#L173-L189>

GLFW\_KEY\_KP\_EQUAL is present on the Mac OS list but not the Windows one.

We should create an issue for this on [https://github.com/glfw/glfw/issues](https://github.com/glfw/glfw/issues), if you like I can do it if you don’t have a Github account. We may need to know what the scancode windows produces for this key is - does GLFW net give you this? GLFW does via the key callback: [http://www.glfw.org/docs/latest/input\_guide.html#input\_key](http://www.glfw.org/docs/latest/input_guide.html#input_key).

---

<div class="post-metadata">

### Author: ![RobertK92](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/robertk92/32/194_2.png) [@RobertK92](https://discourse.glfw.org/u/RobertK92)
#### Post date: [August 18, 2018, 5:39pm UTC](https://discourse.glfw.org/t/numpad-equals-not-working/1157/3 "2018-08-18T17:39:29Z")

</div>

Hi, yes the [Glfw.org](http://Glfw.org) enum contains a value “NumpadEquals = 336”. The scancode for the numpad equals key on windows is 89 according to the key callback from glfw.

I don’t know if this is relevant at all but I’m running this inside a .net standard 2.0 app (on windows)

---

<div class="post-metadata">

### Author: ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)
#### Post date: [August 18, 2018, 6:10pm UTC](https://discourse.glfw.org/t/numpad-equals-not-working/1157/4 "2018-08-18T18:10:29Z")

</div>

Thanks @RobertK92 that’s great info. The scancode 89 is 0x059 and not present in the Windows init source code, so we should be able to resolve this quickly.

Do you want to submit the issue to Github (if so link to this conversation)? If you don’t reply by tomorrow I’ll handle it, and I can submit a fix at the same time (note I’m only asking as some people like to submit the issue they found themselves).

---

<div class="post-metadata">

### Author: ![RobertK92](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/robertk92/32/194_2.png) [@RobertK92](https://discourse.glfw.org/u/RobertK92)
#### Post date: [August 23, 2018, 12:52pm UTC](https://discourse.glfw.org/t/numpad-equals-not-working/1157/5 "2018-08-23T12:52:31Z")

</div>

I have posted the issue on github

---

<div class="post-metadata">

### Author: ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)
#### Post date: [August 24, 2018, 11:54am UTC](https://discourse.glfw.org/t/numpad-equals-not-working/1157/6 "2018-08-24T11:54:48Z")

</div>

I didn’t get around to that due to being busier than expected, but I see you’ve created it.

---

<div class="post-metadata">

### Author: ![RobertK92](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/robertk92/32/194_2.png) [@RobertK92](https://discourse.glfw.org/u/RobertK92)
#### Post date: [August 24, 2018, 4:45pm UTC](https://discourse.glfw.org/t/numpad-equals-not-working/1157/7 "2018-08-24T16:45:34Z")

</div>

I see you have commited a fix, thanks. Happy I could help.
