WO2018119760A1 - 一种数据输入方法、装置及设备 - Google Patents
一种数据输入方法、装置及设备 Download PDFInfo
- Publication number
- WO2018119760A1 WO2018119760A1 PCT/CN2016/112679 CN2016112679W WO2018119760A1 WO 2018119760 A1 WO2018119760 A1 WO 2018119760A1 CN 2016112679 W CN2016112679 W CN 2016112679W WO 2018119760 A1 WO2018119760 A1 WO 2018119760A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- character
- minus
- cursor
- dot
- button
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the present invention relates to the field of digital processing technologies, and in particular, to a data input method, apparatus, and device.
- a soft keyboard is a virtual keyboard that is usually made by software tools.
- a soft keyboard can replace the traditional physical keyboard as a tool for input signals.
- the soft keyboard in many cases, in order to simulate the appearance and function of a traditional physical keyboard, the soft keyboard is usually rectangular in shape and is provided with letters, numbers or other symbols or function buttons. Common functions include: inputting numbers, inputting uppercase and lowercase letters, inputting common symbols, input arrows, backspace, carriage returns, space symbols, and so on.
- the embodiment of the invention provides a data input method, device and device for limiting the input character type in a specific case, reducing the error probability when inputting data, and improving work efficiency.
- the first aspect of the present invention provides a data input method, including:
- the system generates and displays a soft keyboard for inputting data, and the keyboard area of the soft keyboard is composed of a numeric button, a minus button, and a dot button;
- the system receives an input signal through the soft keyboard
- the system determines a target character corresponding to the input signal
- the system determines whether there is a first minus character corresponding to the minus button in the character display box;
- the system processes the target character according to the judgment result.
- the system includes:
- the system determines whether the cursor in the character display box is a character bit after the first minus character, the cursor is used to represent a position identifier of the target character in the character display frame;
- the system inserts the numeric character at the cursor
- the system filters the numeric character
- the system inserts the numeric character at the cursor.
- the system processing the target character according to the judgment result including:
- the system filters the second minus character
- the system moves the cursor to the first character position of the character display frame, and the cursor is used to represent the position of the target character in the character display frame.
- the system inserts the second minus character at the cursor.
- the target character is a second dot character corresponding to the dot button, and the system processes the target character according to the determination result, including:
- the system determines whether the cursor is in a character position before the first minus character, and the cursor is used to represent a position identifier of the target character in the character display frame. ;
- the system filters the second dot character
- the system determines whether the first dot character corresponding to the dot button exists;
- the system filters the second dot character
- the system inserts the second dot at the cursor character.
- the number The button consists of a 0 to 9 decimal number.
- a second aspect of the present invention provides a data input device, including:
- a display module configured to generate and display a soft keyboard for inputting data, wherein a keyboard area of the soft keyboard is composed of a numeric button, a minus button, and a dot button;
- a receiving module configured to receive an input signal by using the soft keyboard
- a determining module configured to determine a target character corresponding to the input signal
- a first determining module configured to determine whether a first minus character corresponding to the minus button exists in the character display box
- the processing module is configured to process the target character according to the determination result of the first determining module.
- the processing module includes:
- a first determining unit configured to: when the determining module determines that the target character is a numeric character corresponding to the digital key, and the first determining module determines that the first negative number character exists, determining a character display box Whether the cursor is a character bit after the first minus character, the cursor is used to represent a position identifier of the target character in the character display frame;
- a first insertion unit configured to: when the first determining unit determines a character position of the cursor after the first minus character, insert the numeric character at the cursor;
- a first filtering unit configured to: when the first determining unit determines a character bit of the cursor before the first minus character, filtering the numeric character
- the first insertion unit is further configured to insert the numeric character at the cursor if the first minus character is not present.
- the processing module further includes:
- a second filtering unit configured to: when the determining module determines that the target character is a second negative character corresponding to the negative button, and the first determining module determines that the first negative character exists, Filtering the second minus character;
- a moving unit configured to: when the first determining module determines that the first minus character is not present, move the cursor to a first character position of the character display frame;
- a second insertion unit configured to insert the second minus character at the cursor after the moving unit moves the cursor to a first character position of the character display frame.
- the processing module further includes:
- a second determining unit configured to: when the determining module determines that the target character is a second dot character corresponding to the dot button, and the first determining module determines that the first negative character exists, Determining whether the cursor is a character bit preceding the first minus character;
- a third filtering unit configured to filter the second dot character when the second determining unit determines the character bit of the cursor before the first minus character
- a third determining unit configured to: when the first determining module determines that the first minus character is not present, or the second determining unit determines that the cursor is in a character position after the first minus character, Determining whether there is a first dot character corresponding to the dot button;
- the third filtering unit is further configured to filter the second dot character if the third determining unit determines that the first dot character is present;
- a third insertion unit configured to insert the second dot character at the cursor when the third determining unit determines that the first dot character is not present.
- a third aspect of the invention provides a data input device comprising a processor, a memory and a display,
- the memory is for storing an application
- the processor invokes an application stored in the memory to perform the following method:
- the system generates a soft keyboard for inputting data, and the keyboard area of the soft keyboard is composed of a numeric button, a minus button, and a dot button;
- the system receives an input signal through the soft keyboard
- the system determines a target character corresponding to the input signal
- the system determines whether there is a first minus character corresponding to the minus button in the character display box;
- the system processes the target character according to the judgment result.
- the processor calls the save
- the application stored in the memory is also used to perform the following methods:
- the system determines whether the cursor in the character display box is a character bit after the first minus character, and the cursor is used to represent the target character in the The position identifier in the character display box;
- the system inserts the numeric character at the cursor
- the system filters the numeric character
- the system inserts the numeric character at the cursor.
- the processor calling the application stored in the memory is further configured to perform the following method:
- the system filters the second minus character
- the system moves the cursor to the first character position of the character display frame, and the cursor is used to represent the position of the target character in the character display frame.
- the system inserts the second minus character at the cursor.
- any one of the first to second embodiments of the third aspect in the third implementation manner of the third aspect of the embodiment of the present invention, is a second dot character corresponding to the dot button, and the processor calls the application stored in the memory to perform the following method:
- the system determines whether the cursor is in a character position before the first minus character, and the cursor is used to represent a position identifier of the target character in the character display frame. ;
- the system filters the second dot character
- the system determines whether the first dot character corresponding to the dot button exists;
- the system filters the second dot character
- the system inserts the second dot character at the cursor.
- any one of the first to third embodiments of the third aspect in a fourth implementation manner of the third aspect of the embodiments of the present invention, the memory Also used to store the input signal received through the soft keyboard.
- any one of the first to fourth embodiments of the third aspect in a fifth implementation manner of the third aspect of the embodiments of the present invention, the display And for displaying the soft keyboard generated by the processor and the target character processed by the processor.
- the invention provides a data input method, device and device. Since the input signal is limited to a signal generated by a numeric character, a minus character and a dot character, the input character is limited to ensure the input when the numerical input is performed. Characters are in line with mathematical habits. For example, when you need to represent a negative value, the minus character will always be at the far left of the input box, and the negative character can only display at most one. When you need to represent a non-integer, the dot character can only display at most one. This input mode ensures that no invalid signal is input in the robot teach pendant or in other situations where only numbers and specific symbols are required, which effectively reduces the probability of error when inputting data, and improves the operation efficiency.
- FIG. 1 is a schematic diagram of a soft keyboard of a data input method according to an embodiment of the present invention
- FIG. 2 is a schematic diagram of an embodiment of a data input method according to an embodiment of the present invention.
- FIG. 3 is a schematic diagram of another embodiment of a data input method according to an embodiment of the present invention.
- FIG. 4 is a schematic diagram of still another embodiment of a data input method according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a data input device according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of a data input device according to an embodiment of the present invention.
- the embodiment of the invention provides a data input method, device and device for limiting the input character type in a specific case, reducing the error probability when inputting data, and improving work efficiency.
- the user inputs characters through the soft keyboard to operate. Since the soft keyboard is composed of three different types of characters during design, different types of characters are input when performing related operations. The methods and steps are different. The following describes three different character processing methods:
- FIG. 2 is a schematic diagram of an embodiment of a data input method according to an embodiment of the present invention.
- the embodiment shown in FIG. 2 is a processing method when the input character type is a numeric character.
- the method can be applied to user terminals such as robots, robot teaching devices, numerical control machine tools, and computers.
- the method may include:
- Step 201 The system generates and displays a soft keyboard.
- the system edits and generates a soft keyboard through the application software.
- the system can generate a soft keyboard by applying the Qt framework, or use the Java language to generate a soft keyboard, or use the MFC (Microsoft Foundation Classes) or other programs, frameworks, programming languages to generate a soft keyboard. This is not specifically limited.
- DOM Document Object Model
- the soft keyboard may include a numeric button, a minus button, and a dot button.
- the digital button can be a button composed of 0 to 9 decimal digits. This setting method is in line with the current commonly used digital input mode, and has good applicability.
- the minus button corresponds to the negative sign in mathematics and is used to distinguish between positive and negative values.
- the dot button corresponds to the decimal point in mathematics and can be used when representing a non-integer.
- the system After the step of generating the soft keyboard is completed, the system will display the soft keyboard for the user.
- the design schematic diagram of the specific soft keyboard please refer to FIG. 1.
- the design of the soft keyboard may also have other forms, which is not specifically limited herein.
- Step 202 The system receives an input signal through a soft keyboard.
- the user sends a signal by clicking the relevant button on the soft keyboard, and the system receives these signals to analyze the signal, and performs different processing according to the character corresponding to the analyzed signal. For example, when receiving the signal input by the digital key, the system displays the number. The character corresponding to the button.
- Step 203 The system determines that the input character is a numeric character
- the system When the user clicks the number button, the system will receive the corresponding signal when the number button is pressed, and the system analyzes the signal to obtain the corresponding numeric character of the number button, thereby performing related processing, for example, receiving the signal input by the digital button at this time, The character corresponding to the number button will be displayed. If the button signal of the number 1 is displayed, the character of the number 1 will be displayed.
- Step 204 The system determines whether there is a negative character in the display box.
- the system determines that the character type is a numeric character, it first determines whether there is a negative character in the character display box, that is, whether the user has entered the negative character character first, and the negative character here is used to distinguish the positive value from the negative value and the negative value. Character, corresponding to the mathematical negative sign. If the system determines that there is a negative character in the display box, step 205 is performed. If the system determines that there is no symbol character in the display box, step 207 is performed.
- Step 205 The system determines whether the cursor is before the negative character
- the system determines whether the cursor is before the minus character, and the position of the cursor identifies the character after the character is entered.
- the position in the frame, the cursor before the minus character indicates that the entered character will be before the negative character.
- the cursor may be a blinking vertical line, or other forms, as long as it can prompt the user to input characters, which is not specifically limited herein.
- the character display frame is generally set to display the input characters in order from left to right.
- the cursor indicates the character position of the cursor to the left of the negative character character before the symbol, and the character display frame may have other setting manners. No specific limitation.
- step 206 is performed. If the system determines that the cursor is not in the character position before the negative character, step 207 is performed.
- Step 206 The system filters characters.
- the system determines the character position of the cursor before the negative character, the system will judge that the input character at this time is invalid and does not meet the operation instruction, so the system will filter the character signal and not process the invalid character signal.
- Step 207 The system inserts a numeric character at the cursor
- the system determines the character position of the cursor after the negative character, the input character is valid at this time, and the related device can work according to the instruction corresponding to the relevant character. At this time, the system will insert a character at the cursor.
- This embodiment is directed to a processing step when a numeric character generated by a numeric button is input. Due to a mathematical limitation, an input numeric character cannot appear before a negative character, so the embodiment can ensure the effective input of the numeric character. Sex.
- the input character type is the processing method of the negative character.
- the embodiment shown in FIG. 3 is a processing method when the input character type is a minus character.
- the method may include:
- Step 301 is the same as step 201 in the embodiment of the present invention, and details are not described herein again.
- Step 302 The system receives an input signal through a soft keyboard.
- the user sends a signal by clicking the relevant button on the soft keyboard.
- the system receives these signals to analyze the signal, and performs different processing according to the character corresponding to the analyzed signal. For example, when receiving the signal input by the negative button, the system will display the signal. The negative character corresponding to the minus button.
- Step 303 The system determines that the input character is a negative character
- the system When the user clicks the negative button, the system will receive the signal corresponding to the negative button, the system pairs the signal. Performing the analysis to obtain the corresponding negative character of the minus button, and performing related processing. For example, when the signal of the negative key input is received at this time, the character corresponding to the negative key is displayed, that is, the "-" character is displayed.
- Step 304 The system determines whether there is a negative character in the character display box.
- step 305 is performed. If the system determines that there is no symbol character in the display box, step 307 is performed.
- Step 305 The system filters characters.
- the system When the system judges that the negative character has already existed in the character display box, the system will filter the negative character entered by the user. This method ensures that there is only one negative character in the character display box.
- Step 306 The system moves the cursor to the first character position of the character display frame
- the cursor When the system determines that there is no negative character in the character display box, the cursor will be moved to the first character position of the character display box.
- the character display frame is set to display characters in order from left to right, the first character bit of the character display frame represents the leftmost character bit of the character display frame.
- the character display box can also have other setting manners, which is not specifically limited herein.
- Step 307 The system inserts a negative character at the cursor
- the system inserts a negative character at the beginning of the cursor. Since the system moves the cursor to the first character position of the character display box in step 306, a negative character is inserted at the cursor so that the negative character is always in the character display box. The first character bit.
- This embodiment is directed to a processing step when a negative character generated by a minus key is input. Since mathematical restrictions, numeric characters are not preceded by a negative character, so when a negative character is required, the system The negative character is always placed at the foremost position to ensure that the characters entered later are correct. This embodiment can guarantee the validity of the input negative character.
- the input character type is the processing method when the dot character is used.
- FIG. 4 wherein the embodiment shown in FIG. 4 is a processing method when the input character type is a dot character. As shown in FIG. 4, the method may include:
- Step 401 is the same as step 201 in the embodiment of the present invention, and details are not described herein again.
- Step 402 The system receives an input signal through a soft keyboard.
- the user sends a signal by clicking the relevant button on the soft keyboard, and the system receives these signals and will input the signal.
- Line analysis according to the corresponding characters of the signal obtained by the analysis to make different processing, for example, when receiving the signal input by the point number button, the system will display the point number character corresponding to the point number button, where the point number character is mathematically A decimal point that is used to represent a non-integer input.
- Step 403 The system determines that the input character is a dot character
- the system When the user clicks the button, the system will receive the corresponding signal when the button is pressed.
- the system analyzes the signal to get the corresponding point character of the button, so as to perform related processing. For example, the button is received at this time.
- the input signal will display the character corresponding to the dot button, that is, the ".” character will be displayed.
- Step 404 The system determines whether there is a negative character in the character display box.
- step 405 is performed. If the system determines that there is no symbol character in the display box, step 406 is performed.
- Step 405 The system determines whether the cursor is before the negative character
- the system determines whether the cursor is before the negative character. Since the position of the cursor corresponds to the position of the character in the character display box after input, the cursor indicates that the input character will be before the negative character.
- step 407 is performed. If the system determines that the cursor is not in the character position before the negative character, step 406 is performed.
- Step 406 The system determines whether the character display box has a number of characters
- step 407 is performed. If not, step 408 is performed.
- Step 407 The system filters the dot character.
- the system When the system determines that the cursor is preceded by a minus character or a character with a dot character in the character display box, the system will filter the dot character entered by the user. This method ensures that there is only one dot character in the character display box, and if there is The negative character, the character entered after the dot character will be after the negative character.
- Step 408 The system inserts a dot character character at the cursor
- This embodiment is directed to a processing step when a dot character generated by a dot button is input. Due to a mathematical limitation, when a dot character is required to represent a non-integer, the entered dot character must be at a minus sign. After the character, and only one dot can exist. This embodiment can ensure the validity of the entered dot character.
- the soft keyboard input method in the embodiment of the present invention has been described above.
- the data input device in the embodiment of the present invention will be described below.
- FIG. 5 is a schematic structural diagram of a data input device according to an embodiment of the present invention.
- the data input device may include:
- a display module 501 a receiving module 502, a determining module 503, a first determining module 504, and a processing module 505, wherein
- the display module 501 is configured to generate and display a soft keyboard for inputting data, and the keyboard area of the soft keyboard is composed of a numeric button, a minus button, and a dot button.
- the receiving module 502 is configured to receive an input signal through a soft keyboard.
- the determining module 503 is configured to determine a target character corresponding to the input signal.
- the first determining module 504 is configured to determine whether there is a first minus character corresponding to the negative button in the character display box.
- the processing module 505 is configured to process the target character according to the determination result of the first determining module.
- the processing module 505 further includes a first determining unit 5051, a first inserting unit 5052, a first filtering unit 5053, a second filtering unit 5054, a moving unit 5055, a second inserting unit 5056, a second determining unit 5057, and a fourth The determining unit 5058, the third filtering unit 5059, and the third inserting unit 50510.
- the first determining unit 5051 is configured to determine, when the determining module 503 determines that the target character is a numeric character corresponding to the digital key, and the first determining module 504 determines that the first negative character exists, determining whether the cursor in the character display frame is at the first negative The character bit after the number character, the cursor is the position identifier of the target character in the character display box.
- the first inserting unit 5052 is configured to insert a numeric character at the cursor when the first determining unit 5051 determines the character bit of the cursor after the first minus character.
- the first insertion unit 5052 is further configured to insert a numeric character at the cursor if the first minus character is not present.
- a first filtering unit 5053 configured to: when the first determining unit 5051 determines that the cursor is at the first minus sign The character character before the character filters the numeric character.
- the second filtering unit 5054 is configured to: when the determining module 503 determines that the target character is the second negative character corresponding to the negative key, and the first determining module 504 determines that the first negative character exists, filtering the second negative character.
- the moving unit 5055 is configured to: when the first determining module 504 determines that the first minus character is not present, move the cursor to the first character bit of the character display box.
- the second insertion unit 5056 is configured to insert a second minus character at the cursor after the moving unit 5055 moves the cursor to the first character position of the character display frame.
- the second determining unit 5057 is configured to: when the determining module 503 determines that the target character is the second dot character corresponding to the dot button, and the first determining module 504 determines that the first negative character exists, determining whether the cursor is at the first negative The character bit before the number character.
- the third determining unit 5058 is configured to: when the first determining module 504 determines that the first negative character is not present, or the second determining unit 5057 determines that the cursor is in the character position after the first negative character, it determines whether there is a dot button Corresponding first point character.
- the third filtering unit 5059 is configured to filter the second dot character when the second determining unit 5057 determines that the cursor is in the character position before the first minus character.
- the third filtering unit 5059 is further configured to filter the second dot character if the third determining unit 5058 determines that the first dot character is present;
- the third insertion unit 50510 is configured to insert a second dot character character at the cursor when the third determining unit 5058 determines that the first dot character is not present.
- a device in the embodiment of the present invention is described above from the perspective of a modular functional entity.
- a data input device in the embodiment of the present invention is described below from a hardware perspective.
- an embodiment of an embedded device in an embodiment of the present invention includes:
- the memory 602 is configured to store an application
- the processor 601 calls an application stored in the memory 602 to perform the following method:
- the processor 601 instructs the system to generate a soft keyboard for inputting data, and instructs the display 603 to display a soft keyboard for inputting data, and the keyboard area of the soft keyboard is composed of a numeric button, a minus button, and a dot button;
- the system receives an input signal through a soft keyboard
- the system determines a target character corresponding to the input signal
- the system determines whether there is a first minus character corresponding to the minus button in the character display box;
- the system processes the target character according to the judgment result.
- the processor 601 performs corresponding processing according to the difference of the target character.
- the processor 601 calls the application stored in the memory 602 to also perform the following method:
- the system determines whether the cursor in the character display box is a character bit after the first minus character, and the cursor is used to represent the position identifier of the target character in the character display frame;
- the system inserts a numeric character at the cursor
- the system filters the numeric characters
- the system inserts a numeric character at the cursor.
- the processor 601 calls the application stored in the memory 602 to perform the following method:
- the system filters the second negative character
- the system moves the cursor to the first character position of the character display frame, and the cursor is used to represent the position identifier of the target character in the character display frame;
- the system inserts a second minus character at the cursor.
- the processor 601 calls the application stored in the memory 602 to perform the following method:
- the system determines whether the cursor is in the character position before the first negative character, and the cursor is used to represent the position identifier of the target character in the character display frame;
- the system filters the second dot character
- the system determines whether there is a first dot character corresponding to the dot button
- the system filters the second dot character
- the system inserts a second dot character at the cursor.
- the memory 602 is also used to store input signals received through a soft keyboard.
- the display 603 is used to display the soft keyboard generated by the processor 601 and the target characters processed by the processor 601.
- the disclosed system, apparatus, and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
- a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Input From Keyboards Or The Like (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种数据输入方法、装置及设备,用于在特定情况下限制输入的字符类型,降低了输入数据时的出错概率,提高工作效率。所述方法包括:系统生成并显示用于输入数据的软键盘(201),软键盘的键盘区域由数字按键、负号按键以及点号按键组成;系统通过软键盘接收输入信号(202);系统确定所述输入信号对应的目标字符;系统判断字符显示框中是否存在负号按键对应的第一负号字符;系统根据判断结果对所述目标字符进行处理。上述数据输入方法、装置及设备,保证了进行数值输入的时候输入的字符符合数学上的习惯,有效地降低了输入数据时的出错概率,使得操作效率得到提高。
Description
本发明涉及数字处理技术领域,尤其涉及一种数据输入方法、装置及设备。
软键盘是一种虚拟键盘,通常是由软件工具制作而成。软键盘可以代替传统物理键盘作为输入信号的工具。在很多场合下,为了模拟传统物理键盘的外观以及功能,软键盘通常采用矩形设计,并设置了字母、数字或者其他符号或功能按键。其常用功能包括:输入数字、输入大小写字母、输入常用符号、输入箭头、退格、回车、空格符号等。
但是,在某些特殊的领域中,例如在操作机器人示教器软件时,经常遇到只需要输入数字的情况。在这种情况下,字母以及某些字符的信号对于机器人示教器软件来说是无效的字符。对于操作者来说,如果没有相应的提示,可能会输入除数字以外的其他字符,例如字母字符,这样就导致软件运行时因为接收到无效的字符而出现错误并报警,影响了操作者在操作示教器软件时的效率。
发明内容
本发明实施例提供了一种数据输入方法、装置及设备,用于在特定情况下限制输入的字符类型,降低了输入数据时的出错概率,提高工作效率。
有鉴于此,本发明的第一方面提供一种数据输入方法,包括:
系统生成并显示用于输入数据的软键盘,所述软键盘的键盘区域由数字按键、负号按键以及点号按键组成;
所述系统通过所述软键盘接收输入信号;
所述系统确定所述输入信号对应的目标字符;
所述系统判断字符显示框中是否存在所述负号按键对应的第一负号字符;
所述系统根据判断结果对所述目标字符进行处理。
结合本发明实施例的第一方面,在本发明实施例的第一方面的第一种实施方式中,若所述目标字符为所述数字按键对应的数字字符,所述系统根据判断结果对所述目标字符进行处理包括:
若存在所述第一负号字符,则所述系统判断所述字符显示框中的光标是否
在所述第一负号字符之后的字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;
若所述光标在所述第一负号字符之后的字符位,则所述系统在所述光标处插入所述数字字符;
若所述光标在所述第一负号字符之前的字符位,则所述系统过滤所述数字字符;
若不存在所述第一负号字符,则所述系统在所述光标处插入所述数字字符。
结合本发明实施例的第一方面或第一方面的第一种实施方式中的任意一种,在本发明实施例的第一方面的第二种实施方式中,若所述目标字符为所述负号按键对应的第二负号字符,所述系统根据判断结果对所述目标字符进行处理包括:
若存在所述第一负号字符,则所述系统过滤所述第二负号字符;
若不存在所述第一负号字符,则所述系统将光标移动到所述字符显示框的第一个字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;
所述系统在所述光标处插入所述第二负号字符。
结合本发明实施例的第一方面、第一方面的第一种至第二种实施方式之中的任意一种,在本发明实施例的第一方面的第三种实施方式中,若所述目标字符为所述点号按键对应的第二点号字符,所述系统根据判断结果对所述目标字符进行处理包括:
若存在所述第一负号字符,则所述系统判断光标是否在所述第一负号字符之前的字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;
若所述光标在所述第一负号字符之前的字符位,则所述系统过滤所述第二点号字符;
若所述光标在所述第一负号字符之后的字符位,或,若不存在所述第一负号字符,则所述系统判断是否存在所述点号按键对应的第一点号字符;
若存在所述第一点号字符,则所述系统过滤所述第二点号字符;
若不存在所述第一点号字符,则所述系统在所述光标处插入所述第二点号
字符。
结合本发明实施例的第一方面、第一方面的第一种至第三种实施方式之中的任意一种,在本发明实施例的第一方面的第四种实施方式中,所述数字按键为0至9的十进制数字组成的按键。
本发明的第二方面提供一种数据输入装置,包括:
显示模块,用于生成并显示用于输入数据的软键盘,所述软键盘的键盘区域由数字按键、负号按键以及点号按键组成;
接收模块,用于通过所述软键盘接收输入信号;
确定模块,用于确定所述输入信号对应的目标字符;
第一判断模块,用于判断字符显示框中是否存在所述负号按键对应的第一负号字符;
处理模块,用于根据所述第一判断模块的判断结果对所述目标字符进行处理。
结合本发明实施例的第二方面,在本发明实施例的第二方面的第一种实施方式中,所述处理模块包括:
第一判断单元,用于当所述确定模块确定所述目标字符为所述数字按键对应的数字字符,且所述第一判断模块判断存在所述第一负号字符时,判断字符显示框中的光标是否在所述第一负号字符之后的字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;
第一插入单元,用于当所述第一判断单元判断所述光标在所述第一负号字符之后的字符位,在所述光标处插入所述数字字符;
第一过滤单元,用于当所述第一判断单元判断所述光标在所述第一负号字符之前的字符位,则过滤所述数字字符;
所述第一插入单元还用于若不存在所述第一负号字符,则在所述光标处插入所述数字字符。
结合本发明实施例的第二方面和第二方面的第一种实施方式中的任意一种,在本发明实施例的第二方面的第二种实施方式中,所述处理模块还包括:
第二过滤单元,用于当所述确定模块确定所述目标字符为所述负号按键对应的第二负号字符,且所述第一判断模块判断存在所述第一负号字符时,则过滤所述第二负号字符;
移动单元,用于当所述第一判断模块判断不存在所述第一负号字符时,则将所述光标移动到所述字符显示框的第一个字符位;
第二插入单元,用于当所述移动单元将所述光标移动到所述字符显示框的第一个字符位后,在所述光标处插入所述第二负号字符。
结合本发明实施例的第二方面、第二方面的第一种实施方式和第二方面的第二种实施方式中的任意一种,在本发明实施例的第二方面的第三种实施方式中,所述处理模块还包括:
第二判断单元,用于当所述确定模块确定所述目标字符为所述点号按键对应的第二点号字符,且所述第一判断模块判断存在所述第一负号字符时,则判断所述光标是否在所述第一负号字符之前的字符位;
第三过滤单元,用于当所述第二判断单元判断所述光标在所述第一负号字符之前的字符位,则过滤所述第二点号字符;
第三判断单元,用于当所述第一判断模块判断不存在所述第一负号字符,或所述第二判断单元判断所述光标在所述第一负号字符之后的字符位时,则判断是否存在所述点号按键对应的第一点号字符;
所述第三过滤单元还用于若所述第三判断单元判断所述存在所述第一点号字符,则过滤所述第二点号字符;
第三插入单元,用于当所述第三判断单元判断不存在所述第一点号字符时,则在所述光标处插入所述第二点号字符。
本发明的第三方面提供一种数据输入设备,包括处理器、存储器和显示器,
所述存储器用于存储应用程序;
所述处理器调用存储在所述存储器中的应用程序,以执行如下方法:
系统生成用于输入数据的软键盘,所述软键盘的键盘区域由数字按键、负号按键以及点号按键组成;
所述系统通过所述软键盘接收输入信号;
所述系统确定所述输入信号对应的目标字符;
所述系统判断字符显示框中是否存在所述负号按键对应的第一负号字符;
所述系统根据判断结果对所述目标字符进行处理。
结合本发明实施例的第三方面,在本发明实施例的第三方面的第一种实施方式中,若所述目标字符为所述数字按键对应的数字字符,所述处理器调用存
储在所述存储器中的应用程序还用于执行如下方法:
若存在所述第一负号字符,则所述系统判断所述字符显示框中的光标是否在所述第一负号字符之后的字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;
若所述光标在所述第一负号字符之后的字符位,则所述系统在所述光标处插入所述数字字符;
若所述光标在所述第一负号字符之前的字符位,则所述系统过滤所述数字字符;
若不存在所述第一负号字符,则所述系统在所述光标处插入所述数字字符。
结合本发明实施例的第三方面或第三方面的第一种实施方式中的任意一种,在本发明实施例的第三方面的第二种实施方式中,若所述目标字符为所述负号按键对应的第二负号字符,所述处理器调用存储在所述存储器中的应用程序还用于执行如下方法:
若存在所述第一负号字符,则所述系统过滤所述第二负号字符;
若不存在所述第一负号字符,则所述系统将光标移动到所述字符显示框的第一个字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;
所述系统在所述光标处插入所述第二负号字符。
结合本发明实施例的第三方面、第三方面的第一种至第二种实施方式之中的任意一种,在本发明实施例的第三方面的第三种实施方式中,若所述目标字符为所述点号按键对应的第二点号字符,所述处理器调用存储在所述存储器中的应用程序还用于执行如下方法:
若存在所述第一负号字符,则所述系统判断光标是否在所述第一负号字符之前的字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;
若所述光标在所述第一负号字符之前的字符位,则所述系统过滤所述第二点号字符;
若所述光标在所述第一负号字符之后的字符位,或,若不存在所述第一负号字符,则所述系统判断是否存在所述点号按键对应的第一点号字符;
若存在所述第一点号字符,则所述系统过滤所述第二点号字符;
若不存在所述第一点号字符,则所述系统在所述光标处插入所述第二点号字符。
结合本发明实施例的第三方面、第三方面的第一种至第三种实施方式之中的任意一种,在本发明实施例的第三方面的第四种实施方式中,所述存储器还用于存储通过所述软键盘接收的所述输入信号。
结合本发明实施例的第三方面、第三方面的第一种至第四种实施方式之中的任意一种,在本发明实施例的第三方面的第五种实施方式中,所述显示器用于显示所述处理器生成的所述软键盘以及经过所述处理器处理的所述目标字符。
从以上技术方案可以看出,本发明实施例具有以下优点:
本发明提供了一种数据输入方法、装置及设备,由于输入的信号仅限于数字字符、负号字符、点号字符生成的信号,通过对输入字符的限制,保证了进行数值输入的时候输入的字符符合数学上的习惯。例如,当需要表示负值时,负号字符会始终在输入框最左端,且负号字符最多只能显示一个。当需要表示非整数时,点号字符也最多只能显示一个。这种输入方式保证了在机器人示教器中或在其他只需数字和特定符号的场合下不会输入无效的信号,有效地降低了输入数据时的出错概率,使得操作效率得到提高。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1是本发明实施例的一种数据输入方法的一个软键盘示意图;
图2是本发明实施例的一种数据输入方法的一个实施例示意图;
图3是本发明实施例的一种数据输入方法的另一个实施例示意图;
图4是本发明实施例的一种数据输入方法的又一个实施例示意图;
图5是本发明实施例的一种数据输入装置的结构示意图;
图6是本发明实施例的一种数据输入设备的结构示意图。
本发明实施例提供了一种数据输入方法、装置及设备,用于在特定情况下限制输入的字符类型,降低了输入数据时的出错概率,提高工作效率
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
本发明实施例中,系统在生成并显示软键盘后,用户通过软键盘输入字符进行操作,由于软键盘在设计时由三种不同类型的字符组成,输入不同类型的字符在进行相关后续操作时的方法和步骤不同,下面就三种不同的字符处理方法进行描述:
请参阅图2,图2是本发明实施例的一种数据输入方法的一个实施例示意图。其中,图2所示的实施例是当输入的字符类型是数字字符时的处理方法。该方法可适用于机器人、机器人示教器、数控机床、计算机等用户终端。如图2所示,该方法可以包括:
步骤201、系统生成并显示软键盘;
系统通过应用软件编辑并生成软键盘。在实际运用中,系统可以通过应用Qt框架生成软键盘,也可以利用Java语言生成软键盘,还可以利用MFC(Microsoft Foundation Classes,微软基础类库)或其他程序、框架、编程语言生成软键盘,此处不做具体限定。
下面以利用Qt生成软键盘为例进行说明:系统通过Qt生成软键盘,具体步骤如下:利用Qt中的QPushbutton类控件创建所有按键,设置尺寸属性,
并利用QVBoxLayout类控件和QHBoxLayout类控件对按键的布局进行设置。然后使用DOM(Document Object Model,文档对象模型)方式读取配置文件,根据配置文件确定对应按键显示的内容,并设置按键对应的键值及其他属性,键值用于确定按键被点击时向当前焦点窗口发送的值。之后用Qt的信号与槽机制,将按键的keyClick信号和keyPress槽函数关联起来,当按键被按下时就发送keyClick信号,keyClick信号触发keyPress槽函数,在keyPress槽函数中通过调用sendKey函数发送正确的键值,从而实现字符输入。在实际应用中,软键盘可以包括数字按键、负号按键以及点号按键。其中,数字按键可以是由0至9的十进制数字组成的按键,这种设置方法符合当前常用的数字输入方式,适用性较好。负号按键对应数学中的负号,用于区分数值的正负值。点号按键对应数学中的小数点,在表示非整数时可以用到。
在生成软键盘步骤完成后,系统会将软键盘显示供用户使用,具体软键盘的一种设计示意图请参阅图1,在实际应用中软键盘的设计也可以有其他形式,此处不作具体限定。
步骤202、系统通过软键盘接收输入信号;
用户通过软键盘点击相关按键发出信号,系统接收到这些信号会对信号进行分析,根据分析得到的信号对应的字符作出不同的处理,例如当接收到数字按键输入的信号时,系统会显示该数字按键对应的字符。
步骤203、系统确定输入的字符为数字字符;
当用户点击数字按键时,系统会接收到按下数字按键时对应的信号,系统对信号进行分析得到数字按键的对应数字字符,从而进行相关处理,例如此时接收到数字按键输入的信号,则会显示该数字按键对应的字符,假如到数字1的按键信号,则会显示数字1的字符。
步骤204、系统判断显示框中是否有负号字符;
当系统确定字符类型为数字字符后,会首先判断字符显示框中有没有负号字符,即判断用户在先有没有输入负号字符,这里的负号字符即用于区别数字正值以及负值的字符,与数学上的负号对应。若系统判断显示框中存在负号字符,则执行步骤205,若系统判断显示框中不存在符号字符,则执行步骤207。
步骤205、系统判断光标是否在负号字符之前;
系统判断光标是否在负号字符之前,光标的位置标识字符输入后在字符显
示框中的位置,光标在负号字符之前表示输入的字符会在负号字符之前的字符位。
在实际应用中,光标可以是一条闪烁的竖线,也可以是其他的形式,只要能起到提示用户输入字符的位置即可,此处不作具体限定。
需要说明的是,字符显示框一般被设置成按照从左至右顺序显示输入的字符,光标在符号之前表示光标在负号字符左边的字符位,字符显示框也可以有其他设置方式,此处不作具体限定。
若系统判断光标在负号字符之前的字符位,则执行步骤206,若系统判断光标不在负号字符之前的字符位,则执行步骤207。
步骤206、系统过滤字符;
当系统判断光标在负号字符之前的字符位,系统会判断此时的输入字符无效,不符合操作指令规定,所以系统会把字符信号过滤,不处理无效的字符信号。
步骤207、系统在光标处插入数字字符;
当系统判断光标在负号字符之后的字符位,此时输入的字符是有效的,相关的设备可以根据相关的字符对应的指令工作,此时系统会在光标处插入字符。
本实施例是针对当输入的是由数字按键生成的数字字符时的处理步骤,由于数学上的限制,输入数字字符不能出现在负号字符之前,所以本实施例能够保证输入的数字字符的有效性。
二、输入的字符类型是负号字符时的处理方法。
请参阅图3,其中,图3所示的实施例是当输入的字符类型是负号字符时的处理方法。如图3所示,该方法可以包括:
本发明实施例中步骤301与步骤201相同,此处不再赘述。
步骤302、系统通过软键盘接收输入信号;
用户通过软键盘点击相关按键发出信号,系统接收到这些信号会对信号进行分析,根据分析得到的信号对应的字符作出不同的处理,例如当接收到负号按键输入的信号时,系统会显示该负号按键对应的负号字符。
步骤303、系统确定输入的字符为负号字符;
当用户点击负号按键时,系统会接收到负号按键对应的信号,系统对信号
进行分析得到负号按键的对应负号字符,从而进行相关处理,例如此时接收到负号按键输入的信号,则会显示该负号按键对应的字符,即显示“-”字符。
步骤304、系统判断字符显示框中是否有负号字符;
当系统确定字符类型为负号字符后,会判断字符显示框中有没有负号字符,即判断用户在先有没有输入负号字符。若系统判断字符显示框中存在负号字符,说明在先已经输入过负号字符,则执行步骤305,若系统判断显示框中不存在符号字符,则执行步骤307。
步骤305、系统过滤字符;
当系统判断字符显示框中在先已经存在负号字符,系统会过滤在后用户输入的负号字符,这种方法保证了字符显示框中只有一个负号字符。
步骤306、系统将光标移动至字符显示框的第一个字符位;
当系统判断字符显示框中不存在负号字符,则会把光标移动至字符显示框的第一个字符位。
需要说明的是,通常由于字符显示框被设置成按照从左至右顺序显示字符,字符显示框的第一个字符位表示在字符显示框最左面的字符位。字符显示框也可以有其他设置方式,此处不作具体限定。
步骤307、系统在光标处插入负号字符;
系统在光标初插入负号字符,由于在步骤306中,系统把光标移动至字符显示框的第一个字符位,此时在光标处插入负号字符,使得负号字符总会在字符显示框的第一个字符位。
本实施例是针对当输入的是由负号按键生成的负号字符时的处理步骤,由于在数学上的限制,数字字符不会在负号字符之前,所以当需要输入负号字符时,系统总是会将负号字符安排在最前的位置确保之后输入的字符正确,本实施例能够保证输入的负号字符的有效性。
三、输入的字符类型是点号字符时的处理方法。
请参阅图4,其中,图4所示的实施例是当输入的字符类型是点号字符时的处理方法。如图4所示,该方法可以包括:
本发明实施例中步骤401与步骤201相同,此处不再赘述。
步骤402、系统通过软键盘接收输入信号;
用户通过软键盘点击相关按键发出信号,系统接收到这些信号会对信号进
行分析,根据分析得到的信号对应的字符作出不同的处理,例如当接收到点号按键输入的信号时,系统会显示该点号按键对应的点号字符,此处点号字符即数学上的小数点,用于表示非整数的输入。
步骤403、系统确定输入的字符为点号字符;
当用户点击点号按键时,系统会接收到按下点号按键时对应的信号,系统对信号进行分析得到点号按键的对应点号字符,从而进行相关处理,例如此时接收到点号按键输入的信号,则会显示该点号按键对应的字符,即显示“.”字符。
步骤404、系统判断字符显示框中是否有负号字符;
当系统确定字符类型为点号字符后,会判断字符显示框中有没有负号字符,即判断用户在先有没有输入负号字符。若系统判断字符显示框中存在负号字符,说明在先已经输入过负号字符,则执行步骤405,若系统判断显示框中不存在符号字符,则执行步骤406。
步骤405、系统判断光标是否在负号字符之前;
系统判断光标是否在负号字符之前,由于光标的位置对应了相关字符输入后在字符显示框中的位置,所以光标在负号字符之前表示输入的字符会在负号字符之前的字符位。
若系统判断光标在负号字符之前的字符位,则执行步骤407,若系统判断光标不在负号字符之前的字符位,则执行步骤406。
步骤406、系统判断字符显示框中是否有点号字符;
系统判断字符显示框中是否在先已经有点号字符,若有,则执行步骤407,若没有,则执行步骤408。
步骤407、系统过滤点号字符;
当系统判断光标在负号字符之前或字符显示框中在先有点号字符,系统会过滤用户在后输入的点号字符,这种方法保证了字符显示框中只有一个点号字符,且如果有负号字符,在后输入的点号字符会在负号字符之后的字符位。
步骤408、系统在光标处插入点号字符;
当系统判断字符输入框中没有点号字符,则说明在先用户没有输入点号字符,此时系统会在字符显示框中的光标处插入点号字符,结合步骤407,保证了最多只能输入一个点号字符。
本实施例是针对当输入的是由点号按键生成的点号字符时的处理步骤,由于在数学上的限制,当需要输入点号字符表示非整数时,输入的点号字符必须在负号字符之后,而且只能存在一个点号。本实施例能够保证输入的点号字符的有效性。
上面对本发明实施例中的软键盘输入方法进行了描述,下面对本发明实施例中的数据输入装置进行描述。
请参阅图5,图5是本发明实施例的一种数据输入装置的结构示意图,如图5所示,该数据输入装置可以包括:
显示模块501、接收模块502、确定模块503、第一判断模块504、以及处理模块505,其中,
显示模块501,用于生成并显示用于输入数据的软键盘,软键盘的键盘区域由数字按键、负号按键以及点号按键组成。
接收模块502,用于通过软键盘接收输入信号。
确定模块503,用于确定输入信号对应的目标字符。
第一判断模块504,用于判断字符显示框中是否存在负号按键对应的第一负号字符。
处理模块505,用于根据第一判断模块的判断结果对目标字符进行处理。
进一步的,处理模块505还包括第一判断单元5051,第一插入单元5052,第一过滤单元5053,第二过滤单元5054,移动单元5055,第二插入单元5056,第二判断单元5057,第四判断单元5058,第三过滤单元5059,第三插入单元50510。
第一判断单元5051,用于当确定模块503确定目标字符为数字按键对应的数字字符,且第一判断模块504判断存在第一负号字符时,判断字符显示框中的光标是否在第一负号字符之后的字符位,光标为目标字符在字符显示框中的位置标识。
第一插入单元5052,用于当第一判断单元5051判断光标在第一负号字符之后的字符位,在光标处插入数字字符。
第一插入单元5052还用于若不存在第一负号字符,则在光标处插入数字字符。
第一过滤单元5053,用于当所述第一判断单元5051判断光标在第一负号
字符之前的字符位,则过滤数字字符。
第二过滤单元5054,用于当确定模块503确定目标字符为负号按键对应的第二负号字符,且第一判断模块504判断存在第一负号字符时,则过滤第二负号字符。
移动单元5055,用于当第一判断模块504判断不存在第一负号字符时,则将光标移动到字符显示框的第一个字符位。
第二插入单元5056,用于当移动单元5055将光标移动到字符显示框的第一个字符位后,在光标处插入第二负号字符。
第二判断单元5057,用于当确定模块503确定目标字符为点号按键对应的第二点号字符,且第一判断模块504判断存在第一负号字符时,则判断光标是否在第一负号字符之前的字符位。
第三判断单元5058,用于当第一判断模块504判断不存在第一负号字符,或第二判断单元5057判断光标在第一负号字符之后的字符位时,则判断是否存在点号按键对应的第一点号字符。
第三过滤单元5059,用于当第二判断单元5057判断光标在第一负号字符之前的字符位,则过滤第二点号字符。
第三过滤单元5059还用于若第三判断单元5058判断存在第一点号字符,则过滤第二点号字符;
第三插入单元50510,用于当三判断单元5058判断不存在第一点号字符时,则在光标处插入第二点号字符。
上面从模块化功能实体的角度对本发明实施例中的一种装置进行描述,下面从硬件角度对本发明实施例中的一种数据输入设备进行描述。
请参阅图6,本发明实施例中的一种嵌入式设备的一个实施例包括:
处理器601,存储器602和显示器603。
存储器602用于存储应用程序;
处理器601调用存储在存储器602中的应用程序,以执行如下方法:
处理器601指示系统生成用于输入数据的软键盘,并指示显示器603显示用于输入数据的软键盘,软键盘的键盘区域由数字按键、负号按键以及点号按键组成;
系统通过软键盘接收输入信号;
系统确定输入信号对应的目标字符;
系统判断字符显示框中是否存在负号按键对应的第一负号字符;
系统根据判断结果对目标字符进行处理。
其中,当目标字符分别为数字字符、负号字符、点号字符时,处理器601会根据目标字符的不同进行对应的处理。
若目标字符为数字按键对应的数字字符,处理器601调用存储在存储器602中的应用程序还用于执行如下方法:
若存在第一负号字符,则系统判断字符显示框中的光标是否在第一负号字符之后的字符位,光标用于表征目标字符在字符显示框中的位置标识;
若光标在第一负号字符之后的字符位,则系统在光标处插入数字字符;
若光标在第一负号字符之前的字符位,则系统过滤数字字符;
若不存在第一负号字符,则系统在光标处插入数字字符。
若目标字符为负号按键对应的第二负号字符,处理器601调用存储在存储器602中的应用程序还用于执行如下方法:
若存在第一负号字符,则系统过滤第二负号字符;
若不存在第一负号字符,则系统将光标移动到字符显示框的第一个字符位,光标用于表征目标字符在字符显示框中的位置标识;
系统在光标处插入第二负号字符。
若目标字符为点号按键对应的第二点号字符,处理器601调用存储在存储器602中的应用程序还用于执行如下方法:
若存在第一负号字符,则系统判断光标是否在第一负号字符之前的字符位,光标用于表征目标字符在字符显示框中的位置标识;
若光标在第一负号字符之前的字符位,则系统过滤第二点号字符;
若光标在第一负号字符之后的字符位,或,若不存在第一负号字符,则系统判断是否存在点号按键对应的第一点号字符;
若存在第一点号字符,则系统过滤第二点号字符;
若不存在第一点号字符,则系统在光标处插入第二点号字符。
存储器602还用于存储通过软键盘接收的输入信号。
显示器603用于显示处理器601生成的软键盘以及经过处理器601处理的目标字符。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分
技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。
Claims (15)
- 一种数据输入方法,其特征在于,包括:系统生成并显示用于输入数据的软键盘,所述软键盘的键盘区域由数字按键、负号按键以及点号按键组成;所述系统通过所述软键盘接收输入信号;所述系统确定所述输入信号对应的目标字符;所述系统判断字符显示框中是否存在所述负号按键对应的第一负号字符;所述系统根据判断结果对所述目标字符进行处理。
- 根据权利要求1所述的数据输入方法,其特征在于,若所述目标字符为所述数字按键对应的数字字符,所述系统根据判断结果对所述目标字符进行处理包括:若存在所述第一负号字符,则所述系统判断所述字符显示框中的光标是否在所述第一负号字符之后的字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;若所述光标在所述第一负号字符之后的字符位,则所述系统在所述光标处插入所述数字字符;若所述光标在所述第一负号字符之前的字符位,则所述系统过滤所述数字字符;若不存在所述第一负号字符,则所述系统在所述光标处插入所述数字字符。
- 根据权利要求1所述的数据输入方法,其特征在于,若所述目标字符为所述负号按键对应的第二负号字符,所述系统根据判断结果对所述目标字符进行处理包括:若存在所述第一负号字符,则所述系统过滤所述第二负号字符;若不存在所述第一负号字符,则所述系统将光标移动到所述字符显示框的第一个字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;所述系统在所述光标处插入所述第二负号字符。
- 根据权利要求1所述的数据输入方法,其特征在于,若所述目标字符为所述点号按键对应的第二点号字符,所述系统根据判断结果对所述目标字符 进行处理包括:若存在所述第一负号字符,则所述系统判断光标是否在所述第一负号字符之前的字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;若所述光标在所述第一负号字符之前的字符位,则所述系统过滤所述第二点号字符;若所述光标在所述第一负号字符之后的字符位,或,若不存在所述第一负号字符,则所述系统判断是否存在所述点号按键对应的第一点号字符;若存在所述第一点号字符,则所述系统过滤所述第二点号字符;若不存在所述第一点号字符,则所述系统在所述光标处插入所述第二点号字符。
- 根据权利要求1或2所述的数据输入方法,其特征在于,所述数字按键为0至9的十进制数字组成的按键。
- 一种数据输入装置,其特征在于,包括:显示模块,用于生成并显示用于输入数据的软键盘,所述软键盘的键盘区域由数字按键、负号按键以及点号按键组成;接收模块,用于通过所述软键盘接收输入信号;确定模块,用于确定所述输入信号对应的目标字符;第一判断模块,用于判断字符显示框中是否存在所述负号按键对应的第一负号字符;处理模块,用于根据所述第一判断模块的判断结果对所述目标字符进行处理。
- 根据权利要求6所述的数据输入装置,其特征在于,所述处理模块包括:第一判断单元,用于当所述确定模块确定所述目标字符为所述数字按键对应的数字字符,且所述第一判断模块判断存在所述第一负号字符时,判断字符显示框中的光标是否在所述第一负号字符之后的字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;第一插入单元,用于当所述第一判断单元判断所述光标在所述第一负号字符之后的字符位,在所述光标处插入所述数字字符;第一过滤单元,用于当所述第一判断单元判断所述光标在所述第一负号字符之前的字符位,则过滤所述数字字符;所述第一插入单元还用于若不存在所述第一负号字符,则在所述光标处插入所述数字字符。
- 根据权利要求7所述的数据输入装置,其特征在于,所述处理模块还包括:第二过滤单元,用于当所述确定模块确定所述目标字符为所述负号按键对应的第二负号字符,且所述第一判断模块判断存在所述第一负号字符时,则过滤所述第二负号字符;移动单元,用于当所述第一判断模块判断不存在所述第一负号字符时,则将所述光标移动到所述字符显示框的第一个字符位;第二插入单元,用于当所述移动单元将所述光标移动到所述字符显示框的第一个字符位后,在所述光标处插入所述第二负号字符。
- 根据权利要求8所述的数据输入装置,其特征在于,所述处理模块还包括:第二判断单元,用于当所述确定模块确定所述目标字符为所述点号按键对应的第二点号字符,且所述第一判断模块判断存在所述第一负号字符时,则判断所述光标是否在所述第一负号字符之前的字符位;第三过滤单元,用于当所述第二判断单元判断所述光标在所述第一负号字符之前的字符位,则过滤所述第二点号字符;第三判断单元,用于当所述第一判断模块判断不存在所述第一负号字符,或所述第二判断单元判断所述光标在所述第一负号字符之后的字符位时,则判断是否存在所述点号按键对应的第一点号字符;所述第三过滤单元还用于若所述第三判断单元判断存在所述第一点号字符,则过滤所述第二点号字符;第三插入单元,用于当所述第三判断单元判断不存在所述第一点号字符时,则在所述光标处插入所述第二点号字符。
- 一种数据输入设备,其特征在于,包括处理器、存储器和显示器,所述存储器用于存储应用程序;所述处理器调用存储在所述存储器中的应用程序,以执行如下方法:系统生成用于输入数据的软键盘,所述软键盘的键盘区域由数字按键、负号按键以及点号按键组成;所述系统通过所述软键盘接收输入信号;所述系统确定所述输入信号对应的目标字符;所述系统判断字符显示框中是否存在所述负号按键对应的第一负号字符;所述系统根据判断结果对所述目标字符进行处理。
- 根据权利要求10所述的数据输入设备,其特征在于,若所述目标字符为所述数字按键对应的数字字符,所述处理器调用存储在所述存储器中的应用程序还用于执行如下方法:若存在所述第一负号字符,则所述系统判断所述字符显示框中的光标是否在所述第一负号字符之后的字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;若所述光标在所述第一负号字符之后的字符位,则所述系统在所述光标处插入所述数字字符;若所述光标在所述第一负号字符之前的字符位,则所述系统过滤所述数字字符;若不存在所述第一负号字符,则所述系统在所述光标处插入所述数字字符。
- 根据权利要求10所述的数据输入设备,其特征在于,若所述目标字符为所述负号按键对应的第二负号字符,所述处理器调用存储在所述存储器中的应用程序还用于执行如下方法:若存在所述第一负号字符,则所述系统过滤所述第二负号字符;若不存在所述第一负号字符,则所述系统将光标移动到所述字符显示框的第一个字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;所述系统在所述光标处插入所述第二负号字符。
- 根据权利要求10所述的数据输入设备,其特征在于,若所述目标字符为所述点号按键对应的第二点号字符,所述处理器调用存储在所述存储器中的应用程序还用于执行如下方法:若存在所述第一负号字符,则所述系统判断光标是否在所述第一负号字符 之前的字符位,所述光标用于表征所述目标字符在所述字符显示框中的位置标识;若所述光标在所述第一负号字符之前的字符位,则所述系统过滤所述第二点号字符;若所述光标在所述第一负号字符之后的字符位,或,若不存在所述第一负号字符,则所述系统判断是否存在所述点号按键对应的第一点号字符;若存在所述第一点号字符,则所述系统过滤所述第二点号字符;若不存在所述第一点号字符,则所述系统在所述光标处插入所述第二点号字符。
- 根据权利要求10所述的数据输入设备,其特征在于,所述存储器还用于存储通过所述软键盘接收的所述输入信号。
- 根据权利要求10所述的数据输入设备,其特征在于,所述显示器用于显示所述处理器生成的所述软键盘以及经过所述处理器处理的所述目标字符。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2016/112679 WO2018119760A1 (zh) | 2016-12-28 | 2016-12-28 | 一种数据输入方法、装置及设备 |
CN201680038876.2A CN107995966A (zh) | 2016-12-28 | 2016-12-28 | 一种数据输入方法、装置及设备 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2016/112679 WO2018119760A1 (zh) | 2016-12-28 | 2016-12-28 | 一种数据输入方法、装置及设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018119760A1 true WO2018119760A1 (zh) | 2018-07-05 |
Family
ID=62028721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/112679 WO2018119760A1 (zh) | 2016-12-28 | 2016-12-28 | 一种数据输入方法、装置及设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107995966A (zh) |
WO (1) | WO2018119760A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112558786A (zh) * | 2020-12-25 | 2021-03-26 | 福建利利普光电科技有限公司 | 一种可切换进制的数字输入键盘及其控制方法 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035049A (zh) * | 2020-09-02 | 2020-12-04 | 中国银行股份有限公司 | 一种基于移动端h5的金额输入实现方法及装置 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5886910A (en) * | 1995-02-24 | 1999-03-23 | Casio Computer Co., Ltd. | Computer with a check function |
CN102707812A (zh) * | 2012-05-16 | 2012-10-03 | 河南辉煌科技股份有限公司 | 时分输入方法 |
CN102830903A (zh) * | 2012-06-29 | 2012-12-19 | 鸿富锦精密工业(深圳)有限公司 | 电子设备及其备忘添加方法 |
CN103176739A (zh) * | 2013-03-05 | 2013-06-26 | 广东欧珀移动通信有限公司 | 实现手写计算器功能的方法及其移动终端 |
CN104898963A (zh) * | 2014-03-04 | 2015-09-09 | 珠海金山办公软件有限公司 | 虚拟键盘显示方法及系统 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100489879C (zh) * | 2007-03-20 | 2009-05-20 | 华为技术有限公司 | 一种对页面数据进行校验的方法、系统和服务器 |
CN104270395A (zh) * | 2014-10-24 | 2015-01-07 | 中国建设银行股份有限公司 | 一种输入数据校验的方法、装置及系统 |
-
2016
- 2016-12-28 CN CN201680038876.2A patent/CN107995966A/zh active Pending
- 2016-12-28 WO PCT/CN2016/112679 patent/WO2018119760A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5886910A (en) * | 1995-02-24 | 1999-03-23 | Casio Computer Co., Ltd. | Computer with a check function |
CN102707812A (zh) * | 2012-05-16 | 2012-10-03 | 河南辉煌科技股份有限公司 | 时分输入方法 |
CN102830903A (zh) * | 2012-06-29 | 2012-12-19 | 鸿富锦精密工业(深圳)有限公司 | 电子设备及其备忘添加方法 |
CN103176739A (zh) * | 2013-03-05 | 2013-06-26 | 广东欧珀移动通信有限公司 | 实现手写计算器功能的方法及其移动终端 |
CN104898963A (zh) * | 2014-03-04 | 2015-09-09 | 珠海金山办公软件有限公司 | 虚拟键盘显示方法及系统 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112558786A (zh) * | 2020-12-25 | 2021-03-26 | 福建利利普光电科技有限公司 | 一种可切换进制的数字输入键盘及其控制方法 |
CN112558786B (zh) * | 2020-12-25 | 2023-02-07 | 福建利利普光电科技有限公司 | 一种可切换进制的数字输入键盘及其控制方法 |
Also Published As
Publication number | Publication date |
---|---|
CN107995966A (zh) | 2018-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9152529B2 (en) | Systems and methods for dynamically altering a user interface based on user interface actions | |
JP5790070B2 (ja) | 表示制御装置およびプログラム | |
WO2012055714A1 (en) | Automated adjustment of input configuration | |
US20230196825A1 (en) | Face key point detection method and apparatus, and electronic device | |
CN102841996A (zh) | 一种点击式验证图片和点击式验证方法 | |
CN103309596A (zh) | 一种输入法键盘的调整方法及其移动终端 | |
JP2016527643A (ja) | タッチ入力パネルのレイアウトを適応的に調整する装置、方法及びモバイル端末 | |
KR20140039517A (ko) | 필기 기반으로 특정 기능을 실행하는 방법 및 그에 따른 디바이스 | |
CN104657077A (zh) | 一种定位光标的方法 | |
WO2018119760A1 (zh) | 一种数据输入方法、装置及设备 | |
TWI505173B (zh) | 提高手持裝置觸碰鍵盤辨識率的系統和方法 | |
CN108737634B (zh) | 语音输入方法及装置、计算机装置和计算机可读存储介质 | |
CN107835305B (zh) | 用于具有屏幕的终端设备的信息输入方法和装置 | |
JP6667452B2 (ja) | テキスト情報の入力方法及び装置 | |
CN105589570B (zh) | 一种处理输入错误的方法和装置 | |
US20130021260A1 (en) | Method for inputting korean character on touch screen | |
CN104076945A (zh) | 用于在终端中显示输入键盘的装置和方法 | |
CN102902751A (zh) | 移动终端中的网页输入方法及装置、移动终端 | |
JPWO2016170691A1 (ja) | 入力処理プログラム、入力処理装置、入力処理方法、文字特定プログラム、文字特定装置、及び文字特定方法 | |
CN105094355A (zh) | 输入方法及相关电子装置 | |
CN104331214B (zh) | 一种信息处理方法和电子设备 | |
CN110569501A (zh) | 用户账号生成方法、装置、介质和计算机设备 | |
CN102375655A (zh) | 一种字母输入的处理方法及系统 | |
CN104657078A (zh) | 一种终端 | |
CN102736822B (zh) | 提高手持装置触碰键盘辨识率的系统和方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16925755 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16925755 Country of ref document: EP Kind code of ref document: A1 |