1. Marco Meoni
  2. PowerServer Mobile (Obsolete)
  3. Monday, 29 June 2020 11:13 AM UTC

Hello,

I'm raising again similar question to this (with specific need for Android):

https://community.appeon.com/index.php/qna/q-a/appeon-mobile-app-keyboard?limitstart=0#reply-7956

As much as workaround APIs are usuful in discussed situations (DW input mode, press interval, standard/numeric keyboard selection, etc), they dont solve the simplest scenario: control when display/hide virtual keyboard from code.

For example, the mobile App may need to provide its own soft keyboard or simply the input has to come from builtin barcode readers (there are many Android-powered handheld of this type) without the soft keyboard annoying on top.

My current workaround is the installation of “NULL” keyboard type.
However, it is an “all or nothing” system setting: all Apps get NULL keyboard enabled too.

A possible solution may come from Cordova cordova-plugin-keyboard plugin. It exposes Keyboard.hide() method to disable the keyboard. Unfortunately PSM doesn’t bundle this plugin:

https://docs.appeon.com/appeon_online_help/ps2020/workarounds_and_api_guide/cordova_plugins.html

Any advice on how to enable/disable programatically the soft keyboard (besides asking Appeon if cordova-plugin-keyboard can be included into PSM and verify that hide() method works from the AppeonMobile.CordovaPlugin object) ?

Best,
.m

Marco Meoni Accepted Answer Pending Moderation
  1. Wednesday, 13 January 2021 09:36 AM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 1

Thank you Govinda for your insights.

Best,

.m

Comment
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Friday, 8 January 2021 21:37 PM UTC
  2. PowerServer Mobile (Obsolete)
  3. # 2

Hi Marco,

 

A desktop application can take advantage of a real keyboard to help people type fast and correctly, and enable shortcut key functionalities, while a mobile application mainly uses a virtual keyboard which takes up the precious screen space, and is typo-prone, therefore, you should avoid using the virtual keyboard whenever possible, and try to design the user interface for selection rather than for typing, for example, use a ListBox, TrackBar, or spin control to replace a text field.

 

Now, the PB mouse and keyboard events will be mapped to the mobile touch and gesture events automatically at runtime, for example, the click event in PB is interpreted as the tap event in mobile OS, the double-click event in PB is interpreted as the tap-twice event in mobile OS.

 

So, having said that, perhaps you could program a timer that would call the click event of another hidden control that would hide the keyboard by changing the focus. Or simply remove focus from the DW control.

 

I hope this helps.

 

Regards,

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.