summaryrefslogtreecommitdiff
path: root/src/math-display.c
diff options
context:
space:
mode:
authorReid Wiggins <[email protected]>2013-11-21 17:23:32 -0600
committerReid Wiggins <[email protected]>2013-11-21 17:26:18 -0600
commitc7ba46ec698a9e2966d2aa12984edd91bb63607c (patch)
tree7bf6606d4b486823f74f11cfbbc79c11708a3a7b /src/math-display.c
parent0dc7dff331879c64494fe663bf2eee7970df20d4 (diff)
downloadmate-calc-c7ba46ec698a9e2966d2aa12984edd91bb63607c.tar.bz2
mate-calc-c7ba46ec698a9e2966d2aa12984edd91bb63607c.tar.xz
Make numpad period work without numlock on.
Diffstat (limited to 'src/math-display.c')
-rw-r--r--src/math-display.c3
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;