title: Xamarin Forms Numeric Keyboard - enable space and dash buttons
body: <p>I have a requirement where a field in a Xamarin Forms app is allowed to have only numbers, spaces and dashes. Numeric keyboard layout appears to be perfect for this purpose - the only trouble - the space and dash buttons do not appear to work? Is there any way to enable these, specifically on Android - as that is the primary target platform.</p>
  <p>Buttons in question are highlighted.</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;Entry
                              x:Name=&quot;BarcodeEntry&quot;
                              Margin=&quot;12,0&quot;
                              HeightRequest=&quot;40&quot;
                              Placeholder=&quot;Barcode&quot;
                              Style=&quot;{StaticResource BorderlessEntryStyle}&quot;
                              Keyboard=&quot;Numeric&quot;
                              Text=&quot;{Binding Barcode.Value, Mode=TwoWay}&quot;&gt;
  </code></pre>
  <p>Control is bound to this property:</p>
  <pre class="lang-cs prettyprint-override"><code>private string _barcode;
          public string Barcode
          {
              get =&gt; _barcode;
              set { SetProperty(ref _barcode, value); }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/UAORe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UAORe.png" alt="enter image description here" /></a></p>