diff options
author | Reid Wiggins <[email protected]> | 2013-11-21 17:23:32 -0600 |
---|---|---|
committer | Reid Wiggins <[email protected]> | 2013-11-21 17:26:18 -0600 |
commit | c7ba46ec698a9e2966d2aa12984edd91bb63607c (patch) | |
tree | 7bf6606d4b486823f74f11cfbbc79c11708a3a7b /src | |
parent | 0dc7dff331879c64494fe663bf2eee7970df20d4 (diff) | |
download | mate-calc-c7ba46ec698a9e2966d2aa12984edd91bb63607c.tar.bz2 mate-calc-c7ba46ec698a9e2966d2aa12984edd91bb63607c.tar.xz |
Make numpad period work without numlock on.
Diffstat (limited to 'src')
-rw-r--r-- | src/math-display.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/math-display.c b/src/math-display.c index 004f909..5d19952 100644 --- a/src/math-display.c +++ b/src/math-display.c @@ -69,6 +69,9 @@ display_key_press_cb(GtkWidget *widget, GdkEventKey *event, MathDisplay *display /* Treat keypad keys as numbers even when numlock is off */ switch(event->keyval) { + case GDK_KEY_KP_Delete: /* Period without numlock */ + new_keyval = GDK_KEY_KP_Decimal; + break; case GDK_KEY_KP_Insert: new_keyval = GDK_KEY_0; break; |