summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Zesch <[email protected]>2013-11-28 11:38:56 -0800
committerSteve Zesch <[email protected]>2013-11-28 11:38:56 -0800
commit5d5e97348d1b0ae2af2b90edf92b7b87e364e619 (patch)
treee8ae1b157a72ecf45ca4d95f2c475e57fff79990
parentd36708e79f096deda3ac9730a229a5fac8b61e52 (diff)
parentc7ba46ec698a9e2966d2aa12984edd91bb63607c (diff)
downloadmate-calc-5d5e97348d1b0ae2af2b90edf92b7b87e364e619.tar.bz2
mate-calc-5d5e97348d1b0ae2af2b90edf92b7b87e364e619.tar.xz
Merge pull request #20 from rwiggins/master
Make numpad period work without numlock on.
-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;