[gnome-calculator/gnome-3-12] Fix layout based decimal saperator on number pad.
- From: Arth Patel <arthpatel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator/gnome-3-12] Fix layout based decimal saperator on number pad.
- Date: Sun, 8 Jun 2014 20:27:39 +0000 (UTC)
commit 49016359b1f85e6b65cfa419fa729a5756f0dea7
Author: PioneerAxon <arth svnit gmail com>
Date: Mon Jun 9 01:34:24 2014 +0530
Fix layout based decimal saperator on number pad.
Original fix submitted by Pierre Ossman.
See bugzilla Bug #652362 for more information.
src/math-display.vala | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/math-display.vala b/src/math-display.vala
index e5b347c..0071810 100644
--- a/src/math-display.vala
+++ b/src/math-display.vala
@@ -173,8 +173,9 @@ public class MathDisplay : Gtk.Viewport
return true;
}
- /* Numeric keypad will often insert '.' regardless of locale */
- if (event.keyval == Gdk.Key.KP_Decimal)
+ /* Numeric keypad will insert '.' or ',' depending on layout */
+ if ((event.keyval == Gdk.Key.KP_Decimal) ||
+ (event.keyval == Gdk.Key.KP_Separator))
{
equation.insert_numeric_point ();
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]