Engineering:Virtual keyboard

From HandWiki
Short description: Software component
Typing on an iPad's virtual keyboard

A virtual keyboard is a software component that allows the input of characters without the need for physical keys.[1] The interaction with the virtual keyboard happens mostly via a touchscreen interface, but can also take place in a different form in virtual or augmented reality.

Types

On a desktop computer, a virtual keyboard might provide an alternative input mechanism for users with disabilities who cannot use a conventional keyboard, for bi- or multi-lingual users who switch frequently between different character sets or alphabets, which may be confusing over time, or for users who are lacking a traditional keyboard. Although hardware keyboards are available with dual keyboard layouts (e.g. Cyrillic/Latin letters in various national layouts), the on-screen keyboard provides a handy substitute while working at different stations or on laptops, which seldom come with dual layouts.

Virtual keyboards can be categorized by the following aspects:

  • Virtual keyboards with touchscreen keyboard layouts or sensing areas[2]
  • Character variants, punctuation, and other special characters accessible through a menu and through holding buttons
  • Keyboard software may include a number pad feature to facilitate typing numbers.[3]
  • Optically projected keyboard layouts or similar arrangements of "keys" or sensing areas[4][5]
  • Optically detected human hand and finger motions[6]
  • Online virtual keyboards for multiple languages that don't require OS settings change[7]
  • Depending on which device the keyboard is used (desktop / mobile/virtual reality / augmented reality)

On the Internet, various JavaScript virtual keyboards have been created, allowing users to type their own languages on foreign keyboards, particularly in Internet cafes. Multitouch screens allow the creation of virtual chorded keyboards for tablet computers,[8] touchscreens, touchpads and wired gloves.[9][10]

Mobile devices

Virtual keyboards are commonly used as an on-screen input method in devices with no physical keyboard, where there is no room for one, such as a pocket computer, personal digital assistant (PDA), tablet computer , or touchscreen-equipped mobile phone. Text is commonly inputted either by tapping a virtual keyboard or finger-tracing.[11] Virtual keyboards are also used as features of emulation software for systems that have fewer buttons than a computer keyboard would have.

Historical development

PDA

Virtual keyboard on a Pocket PC PDA

The four main approaches to enter text into a PDA were: virtual keyboards operated by a stylus, external USB keyboards, handwritten keyboards, and stroke recognition. Many early PDAs were not primarily focused on virtual keyboards. Microsoft's mobile operating system approach was to simulate a completely functional keyboard, which resulted in a slightly overloaded keyboard layout.[12] The main problem that early PDAs faced was support for multi-touch technology, and as a result, usability problems for the user.

First iPhone

When Apple presented the first iPhone in 2007, the decision not to include a physical keyboard was seen as a detriment to the device.[13] However, Apple brought the multi-touch technology into their new device, which enabled them to overcome the usability problems of PDAs. Apple's virtual keyboard design pattern has become a standard on mobile devices today.

Implementation and use

Both the most common mobile operating systems, Android and iOS, give the developer community the possibility to individually develop custom virtual keyboards.

Android

Android Keyboard Settings

The Android SDK provides a so-called InputMethodService.[14] This service provides a standard implementation of an input method, which final implementations can derive from and customize, enabling the Android development community to implement their own keyboard layouts. The InputMethodService ships with it on Keyboard View.[15] While the InputMethodService can be used to customize key and gesture inputs, the Keyboard Class loads an XML description of a keyboard and stores the attributes of the keys.[16]

As a result, it is possible to install different keyboard versions on an Android device, and the keyboard is only an application, most frequently downloaded among them being Gboard and SwiftKey; a simple activation over the Android settings menu is possible.[17]

iOS

Apple iOS UIInputViewController

Apple also provides the possibility for the community to develop custom keyboards but does not give any access to the dictionary or general keyboard settings. Further iOS is automatically switching between system and custom keyboards, if the user enters text into the text input field.[18][19]

The UIInputViewController is the primary view controller for a custom keyboard app extension. This controller provides different methods for the implementation of a custom keyboard, such as a user interface for a custom keyboard, obtaining a supplementary lexicon or changing the primary language of a custom keyboard.[20]

Text entry performance

Next to the classic virtual keyboard implementation Android, iOS, and custom keyboards, such as SwiftKey for example, are providing different features to improve the usability and the efficiency of their keyboards.

Auto correction and spelling checker

The Android platform offers a spelling checker framework that offers the possibility to implement and access spell checking in the application itself. The framework is one of the Text Service APIs offered by the Android platform. Based on the provided text, the session object returns spelling suggestions generated by the spelling checker.[21][22]

iOS is using the class UITextChecker, an object used to check a string (usually the text of a document) for misspelled words, commonly known as Apple's autocorrection. UITextChecker spell-checks are using a lexicon for a given language. It can be told to ignore specific words when spell-checking a particular document and it can learn new words, which adds those words to the lexicon.[23]

Users may be able to add a custom dictionary of whitelisted terms that are treated by auto correction as usual words, and specify "aliases" or "text shortcuts", where entering a specified text string causes it to get replaced with a target text string, or the target text string appears as suggestion. The former means they are not replaced with other terms but may be corrected to from other terms. It may be possible to exclude unwanted existing suggestions.[24][25]

Word suggestions

Diverse scientific papers at the beginning of the 2000s showed even before the invention of smartphones, that predicting words, based on what the user is typing, is very helpful to increase the typing speed.[26][27] At the beginning of development of this keyboard feature, prediction was mainly based on static dictionaries. Google implemented the predicting method in 2013 in Android 4.4. This development was mainly driven by third party keyboard providers, such as SwiftKey and Swype.[28] Both provide powerful word search engine with corresponding databases.[29] In 2014 Apple presented iOS 8[30] which includes a new predictive typing feature called Quick Type, which displays word predictions above the keyboard as the user types.

Gesture typing

iOS and Android allow developers to replace its keyboard with their own keyboard apps. This has led to experimentation and new features, like the gesture-typing feature that's made its way into Android's official keyboard after proving itself in third-party keyboards. Research by Google itself confirmed that gesture-typing is increasing the typing rate by 22% and is decreasing the error rate near to 0%.[31] Google further showed that the gesture-typing method is also useful on smartwatches. Their scientific research is primarily based on research made by I. Scott MacKenzie and papers about modeling finger touch with fitts' law.

Haptic feedback

Haptic feedback provides for tactile confirmation that a key has been successfully triggered i.e. the user hears and feels a "click" as a key is pressed. Utilizing hysteresis, the feel of a physical key can be emulated to an even greater degree. In this case, there is an initial "click" that is heard and felt as the virtual key is pressed down, but then as finger pressure is reduced once the key is triggered, there is a further "unclick" sound and sensation as if a physical key is respringing back to its original unclicked state. This behaviour is explained in Aleks Oniszczak & Scott Mackenzie's 2004 paper "A Comparison of Two Input Methods for Keypads on Mobile Devices" which first introduced haptic feedback with hysteresis on a virtual keyboard.[32]

Special keyboard types

Keyboards are needed in different digital areas. Not only smartphones need virtual keyboards, also devices that create virtual worlds, for example, virtual reality or augmented reality glasses, need to provide text input possibilities.

Optical virtual keyboard

An optical virtual keyboard was invented and patented by IBM engineers in 1992.[33] It optically detects and analyses human hand and finger motions and interprets them as operations on a physically non-existent input device like a surface having painted keys. In that way, it allows to emulate unlimited types of manually operated input devices such as a mouse or keyboard. All mechanical input units can be replaced by such virtual devices, optimized for the current application and for the user's physiology maintaining the speed, simplicity, and unambiguity of manual data input.

One example of this technology is the "Selfie Type" - a keyboard technology for mobile phones made by Samsung Electronics. It was intended to use the front-facing camera (the selfie camera) to track the user's fingers, enabling the user to type on an "invisible keyboard" on a table or another surface in front of the phone.[34][35] It was introduced at the Consumer Electronics Show 2020[36][37][38] and was expected to be launched in the same year but never did.

Augmented reality keyboards

The basic idea of a virtual keyboard in an augmented reality environment is to give the user a text input possibility. A common approach is to render a flat keyboard into augmented reality, e.g. using the Unity TouchScreenKeyboard. The Microsoft HoloLens enables the user to point at letters on the keyboard by moving his head.[39]

Another approach was researched by the Korean KJIST U-VR Lab in 2003. Their suggestion was to use wearables to track the finger motion to replace a physical keyboard with virtual ones. They also tried to give audiovisual feedback to the user, when a key got hit. The basic idea was to give the user a more natural way to enter text, based on what he is used to.[40]

The Magic Leap 1 from Magic Leap implements a virtual keyboard with augmented reality.[41]

Virtual reality keyboards

The challenge, as in augmented reality, is to give the user the possibility to enter text in a completely virtual environment. One big issue is that most augmented reality systems on the market are not tracking the hands of the user. So many available systems provide the possibility to point at letters.[42]

In September 2016, Google released a virtual keyboard app for their Daydream[43] virtual reality headset. To enter text, the user can point at specific letters with the Daydream controller.[44]

In February 2017, Logitech presented an experimental approach to bring their keyboards into the virtual environment. With the Vive Tracker and the Logitech G gaming keyboard, it is possible to exactly track every finger movement, without wearing any type of glove. 50 of such packages were sent to exclusive developers, enabling them, in combination with Logitech's BRIDGE developers kit, to test and experiment with the new technology.[45][46]

Security considerations

Virtual keyboards may be used in some cases to reduce the risk of keystroke logging.[47] For example, Westpac's online banking service uses a virtual keyboard for password entry, as does TreasuryDirect (see picture). It is more difficult for malware to monitor the display and mouse to obtain the data entered via the virtual keyboard than it is to monitor real keystrokes. However, it is possible, for example by recording screenshots at regular intervals or upon each mouse click.[48][49]

TreasuryDirect login screen, showing the virtual keyboard

The use of an on-screen keyboard on which the user "types" with mouse clicks can increase the risk of password disclosure by shoulder surfing, because:

  • An observer can typically watch the screen more easily (and less suspiciously) than the keyboard, and see which characters the mouse moves to.
  • Some implementations of the on-screen keyboard may give visual feedback of the "key" clicked, e.g. by changing its color briefly. This makes it much easier for an observer to read the data from the screen. In the worst case, the implementation may leave the focus on the most recently clicked "key" until the next virtual key is clicked, thus allowing the observer time to read each character even after the mouse starts moving to the next character.
  • A user may not be able to "point and click" as fast as they could type on a keyboard, thus making it easier for the observer.

See also

Notes

  1. "virtual keyboard". PCMag. https://www.pcmag.com/encyclopedia/term/53924/virtual-keyboard. 
  2. US patent application 4725694 Auer Carol M, Castagno Daniel L/AT&T: "Computer interface device" priority date 13.05.1986
  3. Samsung Omnia i900, Reviewed August 21, 2008 by Lisa Gade: "There's even a virtual number pad for entering text T9-style, for those who are accustomed to texting on traditional mobile phones."
  4. DE patent application 19734511 B. Kämmerer, C, Maggioni, H. Röttger/SIEMENS AG: "Kommunikationseinrichtung" filing date 08.08.1997
  5. WO patent 0003348 C. Maggioni, B. Kämmerer/SIEMENS AG: "Projection Device / Vorrichtung zur Projektion" priority date 10.07.1998
  6. EP patent 0554492 Hans E. Korth: "Method and device for optical input of commands or data" filing date 07.02.1992
  7. "Virtual keyboard". https://gate2home.com/. 
  8. Chien-Hsu Chen. "Design and Evaluation of Chord Keyboard for Tablet Computer Manipulation". National Cheng Kung University. https://www.researchgate.net/publication/242210707. 
  9. "ASETNIOP concept designed to make touch typing on a touchscreen a mite easier". Gizmag.com. 9 October 2012. http://www.gizmag.com/asetniop-chorded-keyboard-concept/24477/. 
  10. "ASETNIOP invisible keyboard aims to get you touch-typing on the iPad". todaysiphone.com. 19 October 2022. http://www.todaysiphone.com/2012/10/asetniop-invisible-keyboard-aims-to-get-you-touch-typing-on-the-ipad/. 
  11. "Swype finger-tracing text entry seems fast, hypnotic, and magical". https://www.engadget.com/2008/09/11/swype-finger-tracing-text-entry-seems-fast-hypnotic-and-magica/. 
  12. Georgiev, Tsvetozar; Georgieva, Evgenia (2008-06-12). Mobile application for determination of users' text entry speed. https://www.researchgate.net/publication/220795451. 
  13. Titcomb, James (2017). "How the world reacted to the first iPhone 10 years ago" (in en-GB). The Telegraph. ISSN 0307-1235. https://www.telegraph.co.uk/technology/2017/01/09/world-reacted-first-iphone-10-years-ago/. 
  14. "InputMethodService | Android Developers" (in en). https://developer.android.com/reference/android/inputmethodservice/InputMethodService.html. 
  15. "Create a Custom Keyboard on Android". Code Envato Tuts+. https://code.tutsplus.com/tutorials/create-a-custom-keyboard-on-android--cms-22615. 
  16. "Keyboard | Android Developers" (in en). https://developer.android.com/reference/android/inputmethodservice/Keyboard.html. 
  17. "keyboard - Google Play" (in en-US). https://play.google.com/store/search?q=keyboard. 
  18. "Managing the Keyboard" (in en). https://developer.apple.com/library/content/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/KeyboardManagement/KeyboardManagement.html. 
  19. "UIInputViewController - UIKit | Apple Developer Documentation" (in en). https://developer.apple.com/documentation/uikit/uiinputviewcontroller. 
  20. "App Extension Programming Guide: Custom Keyboard" (in en). https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/CustomKeyboard.html. 
  21. "UITextChecker - UIKit | Apple Developer Documentation" (in en). https://developer.apple.com/documentation/uikit/uitextchecker. 
  22. "Spelling Checker Framework | Android Developers" (in en). https://developer.android.com/guide/topics/text/spell-checker-framework.html#SpellCheckLifeCycle. 
  23. Liu, Croath (2016-04-25). "UITextChecker" (in en-US). NSHipster. http://nshipster.com/uitextchecker/. 
  24. Witman, Emma (10 October 2019). "How to add words to your iPhone dictionary with Text Replacement, so your iPhone automatically recognizes them when you type". https://www.businessinsider.com/how-to-add-words-to-iphone-dictionary. 
  25. Wallen, Jack (20 August 2014). "How to manage your personal dictionary in Android". https://www.techrepublic.com/article/how-to-manage-your-personal-dictionary-in-android/. 
  26. Tom Stocky, Alexander Faaborg, Henry Lieberman (2004). A Commonsense Approach to Predictive Text Entry. 
  27. Dunlop, Mark D. and Crossan, Andrew (2000). Predictive text entry methods for mobile phones. 
  28. Hattersley, Lucy. "How to use new QuickType and Swype keyboard options in iOS 8" (in en-GB). Macworld UK. https://www.macworld.co.uk/how-to/iphone/using-quicktype-swype-in-ios-8-3534355/. 
  29. "Apple - iOS 8 - QuickType" (in en-MY). https://www.apple.com/my/ios/whats-new/quicktype/. 
  30. "Using iOS 8's QuickType keyboard" (in en). CNET. 2014-09-19. https://www.cnet.com/how-to/using-ios-8s-quicktype-keyboard/. 
  31. Gordon, Mitchell; Ouyang, Tom; Zhai, Shumin (2016-05-07). WatchWriter: Tap and Gesture Typing on a Smartwatch Miniature Keyboard with Statistical Decoding. https://www.researchgate.net/publication/301931220. 
  32. Oniszczak, Aleks. "CHI: A Comparison of Two Input Methods for Keypads on Mobile Devices" (in en). https://www.yorku.ca/mack/nordichi2004.pdf. 
  33. EP patent 0554492 Hans E. Korth: "Method and device for optical input of commands or data" filing date 07.02.1992
  34. "The invisible keyboard for smartphones" (in en). BBC News. https://www.bbc.com/news/av/technology-51057261/ces-2020-samsung-s-invisible-keyboard-for-smartphones. 
  35. "Samsung introduces SelfieType, an AI-powered virtual keyboard – The Independent News" (in en-US). 11 January 2020. http://theindependent.sg/samsung-introduces-selfietype-an-ai-powered-virtual-keyboard/. 
  36. "Samsung Electronics to Showcase Successful 'C-Lab Inside' Projects and 'C-Lab Outside' Start-ups at CES 2020" (in en). https://news.samsung.com/global/samsung-electronics-to-showcase-successful-c-lab-inside-projects-and-c-lab-outside-start-ups-at-ces-2020. 
  37. "Here's how Samsung's crazy invisible keyboard tech will work" (in en-US). 2020-01-06. https://www.androidauthority.com/samsung-selfie-type-demo-video-1071955/. 
  38. "Samsung Selfie Type". 6 January 2020. https://www.digitaltrends.com/computing/samsung-selfie-type-invisible-keyboard-ces-2020/. 
  39. "Keyboard input in Unity" (in en-us). https://developer.microsoft.com/en-us/windows/mixed-reality/keyboard_input_in_unity. 
  40. Lee, Minkyung; Woo, Woontack (2003-01-01). ARKB: 3D vision-based Augmented Reality Keyboard.. https://www.researchgate.net/publication/220984297. 
  41. "Text Entry". https://ml1-developer.magicleap.com/en-us/learn/guides/design-text-entry. 
  42. Poupyrev, Ivan. Virtual Notepad: Handwriting in Immersive VR. http://www8.cs.umu.se/kurser/TDBD12/HT02/papers/virtual%20notepad.pdf. 
  43. Daydream Keyboard, Google LLC, 2018-02-21, https://play.google.com/store/apps/details?id=com.google.android.vr.inputmethod, retrieved 2018-03-16 
  44. "Google launches virtual keyboard for Daydream-ready phones". Haptical. 2016-10-19. https://haptic.al/daydream-keyboard-8ae6b1058b3b. 
  45. "Introducing the Logitech BRIDGE SDK - VIVE Blog". https://blog.vive.com/us/2017/11/02/introducing-the-logitech-bridge-sdk/. 
  46. "Logitech is experimenting with a keyboard built for virtual reality – TechCrunch" (in en-US). 2 November 2017. https://techcrunch.com/2017/11/02/logitech-is-experimenting-with-a-keyboard-built-for-virtual-reality/. 
  47. "Virtual keyboard". https://www.psbonline.co.in/BankAwayRetail/(S(3izwzr554kvmhxbgks11su55))/web/L001/retail/jsp/user/vir_keyb.html. 
  48. Lake Software: Does not defeat keyloggers!
  49. Smith, David A. (2006-06-21), Outsmarting Keyloggers, PC Magazine, https://www.pcmag.com/article2/0,2817,1978513,00.asp, retrieved 2009-11-16 

External links