how to make the cursor to skip over literals when inputting characters

I have setup a sfmaskededit

  <syncmaskededit:SfMaskedEdit  Grid.Column="1" Value="{Binding LogInterval}" MaskType="RegEx" Mask="\d:[0-5]\d:[0-5]\d" Keyboard="Numeric"                          FontSize="Medium"
                      ValueChanged="SfMaskedEdit_ValueChanged" ValidationMode="KeyPress" CursorPositionChanging="SfMaskedEdit_CursorPositionChanging" ></syncmaskededit:SfMaskedEdit>


If I start with tapping on the control so the  cursor on left end and start entering numbers from the keypad, the cursor stops moving to the right when it hits the first ":".

So it looks like: 6|:__:__


Is it possible to have the cursor jump over the ":" literal and move into the next editable part of the mask?

I thought to use CursorPositionChanging event - but this event is never triggered! My SfMaskedEdit_CursorPositionChanging is never called.



6 Replies 1 reply marked as answer

RS Ramya Soundar Rajan Syncfusion Team October 23, 2020 01:39 PM UTC

Hi Andrew,  
   
Greetings from Syncfusion.  
   
We have analyzed your reported query. We would like to inform you that it has been resolved by entering the literal (:) after the value (e.g., 6) entered then the cursor will be moved to the next position. However, we will consider this as an internal bug and the fix will be included in our Volume 3 SP1 release which is expected to be rolled out by the first week of November 2020. We will let you know once the release has been rolled out.  
 
Regards, 
Ramya S 



AN Andrew October 23, 2020 01:58 PM UTC

But the numeric keyboard does not have a ':' on Android device. Look forward to an update!


RS Ramya Soundar Rajan Syncfusion Team October 26, 2020 10:54 AM UTC

Hi Andrew,  
   
We have checked the reported problem that the colon (:) is not showing in Android keyboard. It’s showing in our side. Please find the code snippet below.  
   
    <syncmaskededit:SfMaskedEdit x:Name="mask" MaskType="RegEx" Mask="\d:[0-5]\d:[0-5]\d"  Keyboard="Numeric"   VerticalOptions="Center"  
                               CursorPositionChanging="mask_CursorPositionChanging"      >  
 
Output: 
 
 
 
Configuration details:  
   
Android device: HUAWEI PRA  
Syncfusion version: 18.3.0.42  
Xamarin.Forms Version: 4.8  
   
We suspect that the reported problem is occurring in the particular device and it seems like a framework issue since related that with decimal symbol, we have found the logged bug in GitHub link as shown in below  
   
   
So, can you please provide the device configuration used. This will be helpful for us to ensure in our side and provide the better solution at earliest.  
   
Regards,  
Ramya S  



AN Andrew October 26, 2020 05:13 PM UTC

This is on a Samsung Galaxy S7 Edge.

My numeric keyboard looks like image here:



Hopefully the Volume 3 SP1 release will fix this issue so no keyboard changes will be needed.







RS Ramya Soundar Rajan Syncfusion Team October 27, 2020 07:50 AM UTC

Hi Andrew,    
   
As we informed earlier, we will include this fix in our Volume 3 Service Pack 1 release which is expected to be rolled out by the first week of November 2020. We will let you know once the release has been rolled out. We appreciate your patience until then.  
   
The reported keyboard problem is occurring in particular device. We suspect it is a framework level issue. Please refer to the below link to resolve the problem for now.  
   
 
Regards, 
Ramya S 



RS Ramya Soundar Rajan Syncfusion Team November 6, 2020 12:17 PM UTC

Hi Andrew, 
  
We are glad to announce that our Essential Studio 2020 Volume 3 Service Pack1 release v18.3.0.47 is rolled out and is available for download under the following link. 
  
  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
  
Regards,            
Ramya S 


Marked as answer
Loader.
Up arrow icon