summaryrefslogtreecommitdiff
path: root/src/math-display.c
diff options
context:
space:
mode:
authorReid Wiggins <[email protected]>2013-11-21 17:23:32 -0600
committerinfirit <[email protected]>2013-12-17 13:56:04 +0100
commite82b8d60687b71544dc703a9e981509ac0824eee (patch)
tree1c2cef78caa0bb89c7e3e30aa65794916bbac778 /src/math-display.c
parenta8557f5765dcb337df844c41b796b264f837fbaa (diff)
downloadmate-calc-e82b8d60687b71544dc703a9e981509ac0824eee.tar.bz2
mate-calc-e82b8d60687b71544dc703a9e981509ac0824eee.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 fb5af8b..dcc8db7 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;