Input Box Keyboard Selection via Regular Expression Analysis
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Users face inefficiency when inputting information into web page input boxes as they often need to switch between different keyboards to meet varying character type requirements, such as numbers, symbols, or Chinese characters, which is cumbersome and time-consuming.
Innovation Solution
A method and device that detect the selection of a text input box and use the regular expression associated with it to determine the required data type, proactively presenting the suitable keyboard to the user before input, ensuring that only characters present in the available keyboard are used, thereby reducing the need for frequent keyboard switching.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If users manually switch between different keyboards to meet varying character type requirements for different input boxes, then all input box requirements can be satisfied, but input efficiency decreases and user effort increases
Solution Approach 1:
The system automatically detects the data type requirements of the currently selected input box and proactively presents the appropriate keyboard without user intervention. The keyboard selection process serves itself by using the regular expression information already available in the input box attributes, eliminating the need for manual keyboard switching and improving input efficiency
Solution Approach 2:
The system performs preliminary analysis of the regular expression associated with the input box to determine the required character type before the user actually starts inputting data. By pre-determining the appropriate keyboard based on the data type requirements, the system prepares the correct input tool in advance, avoiding the need for users to switch keyboards during the input process
2Productivity
If the system proactively presents keyboards based on regular expression analysis, then keyboard switching is reduced, but system complexity increases
Solution Approach 1:
The system uses the existing regular expression mechanism, which already serves the function of validating user input, to additionally perform the function of determining keyboard selection. By making the regular expression analysis serve multiple purposes (both validation and keyboard selection), the system avoids adding separate complex analysis mechanisms while still achieving proactive keyboard presentation
Solution Approach 2:
The regular expression acts as an intermediary that bridges the input box requirements and the keyboard selection process. Instead of directly analyzing input box attributes or implementing complex detection mechanisms, the system uses the regular expression as a mediator to convey the data type requirements, simplifying the overall system architecture while enabling intelligent keyboard selection
Data Source
AI summary
A method and device for controlling information input for text boxes are disclosed. The method includes: at a device having one or more processors, memory, and a display: detecting selection of a text input box in a user interface; in response to detecting the selection of the text input box and prior to receiving input text for the text input box, obtaining a regular expression for acceptable input corresponding to text input box; for each character in the regular expression, determining whether the character belongs to a respective validation filter character set for a predetermined data type; and in response to a determination that all characters in the regular expression belongs to the respective validation filter character set for the predetermined data type, selectively presenting a respective character keyboard corresponding to the predetermined data type to a user for text entry.


