summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Native
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/Entry.cs11
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/Keyboard.cs7
2 files changed, 17 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Entry.cs b/Xamarin.Forms.Platform.Tizen/Native/Entry.cs
index 8276aaa..9b84cb3 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/Entry.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Entry.cs
@@ -12,6 +12,9 @@ namespace Xamarin.Forms.Platform.Tizen.Native
/// </summary>
public class Entry : EEntry, IMeasurable, IBatchable
{
+ static readonly int s_VariationNormal = 0;
+ static readonly int s_VariationSignedAndDecimal = 3;
+
/// <summary>
/// Holds the formatted text of the entry.
/// </summary>
@@ -401,10 +404,18 @@ namespace Xamarin.Forms.Platform.Tizen.Native
{
SetInputPanelEnabled(false);
}
+ else if (Keyboard == Keyboard.Numeric)
+ {
+ SetInputPanelEnabled(true);
+ SetInputPanelLayout(InputPanelLayout.NumberOnly);
+ // InputPanelVariation is used to allow using deciaml point.
+ InputPanelVariation = s_VariationSignedAndDecimal;
+ }
else
{
SetInputPanelEnabled(true);
SetInputPanelLayout((InputPanelLayout)keyboard);
+ InputPanelVariation = s_VariationNormal;
}
}
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Keyboard.cs b/Xamarin.Forms.Platform.Tizen/Native/Keyboard.cs
index 4223ca0..40b21e4 100644
--- a/Xamarin.Forms.Platform.Tizen/Native/Keyboard.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/Keyboard.cs
@@ -78,7 +78,12 @@
/// <summary>
/// Keyboard layout type emoticons.
/// </summary>
- Emoticon
+ Emoticon,
+
+ /// <summary>
+ /// Keyboard layout type numeric.
+ /// </summary>
+ Numeric = Emoticon + 2017,
}
}