CN107995966A - A kind of data entry device, device and equipment - Google Patents

A kind of data entry device, device and equipment Download PDF

Info

Publication number
CN107995966A
CN107995966A CN201680038876.2A CN201680038876A CN107995966A CN 107995966 A CN107995966 A CN 107995966A CN 201680038876 A CN201680038876 A CN 201680038876A CN 107995966 A CN107995966 A CN 107995966A
Authority
CN
China
Prior art keywords
character
negative sign
cursor
sign character
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201680038876.2A
Other languages
Chinese (zh)
Inventor
穆文锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen A&E Intelligent Technology Institute Co Ltd
Original Assignee
Shenzhen A&E Intelligent Technology Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen A&E Intelligent Technology Institute Co Ltd filed Critical Shenzhen A&E Intelligent Technology Institute Co Ltd
Publication of CN107995966A publication Critical patent/CN107995966A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements 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/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

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

A kind of data entry device, device and equipment, for limiting the character types of input under specific circumstances, reduce error probability during input data, improve work efficiency.The described method includes:System generates and shows the soft keyboard (201) for input data, and the keyboard area of soft keyboard is made of digital keys, negative sign button and period button;System receives input signal (202) by soft keyboard;System determines that the corresponding target character system of the input signal judges to whether there is the corresponding first negative sign character of negative sign button in character display box;System is handled the target character according to judging result.Above-mentioned data entry device, device and equipment, ensure that the character for carrying out being inputted when numerical value input meets custom mathematically.Significantly reduce error probability during input data so that operating efficiency is improved.

Description

A kind of data entry device, device and equipment
Technical field
The present invention relates to digital processing technology field, more particularly to a kind of data entry device, device and equipment.
Background technology
Soft keyboard is a kind of dummy keyboard, is typically made by software tool.Soft keyboard can replace conventional physical Instrument of the keyboard as input signal.In many instances, in order to simulate the appearance of conventional physical keyboard and function, soft keyboard Generally use rectangular design, and there is provided letter, numeral or other symbols or function button.Its common function includes:Input Numeral, input upper and lower case letter, input conventional sign, input arrow, backspace, carriage return, space symbol etc..
But in some special fields, such as in operation robot teaching machine software, frequently encounter only need it is defeated Enter the situation of numeral.In this case, alphabetical and some characters signal is nothing for robot demonstrator software The character of effect.For operator, if without prompting accordingly, other characters in addition to numeral, example may be inputted Such as alphabetic character, occur mistake because invalid character is received when so resulting in running software and alarm, have impact on behaviour Efficiency of the author when operating teaching machine software.
The content of the invention
It is defeated for limiting under specific circumstances an embodiment of the present invention provides a kind of data entry device, device and equipment The character types entered, reduce error probability during input data, improve work efficiency.
In view of this, the first aspect of the present invention provides a kind of data entry device, including:
System generates and shows the soft keyboard for input data, and the keyboard area of the soft keyboard is by digital keys, negative Number button and period button composition;
The system receives input signal by the soft keyboard;
The system determines the corresponding target character of the input signal;
The system judges to whether there is the corresponding first negative sign character of the negative sign button in character display box;
The system is handled the target character according to judging result.
With reference to the embodiment of the present invention in a first aspect, the first embodiment of the first aspect in the embodiment of the present invention In, if the target character is the corresponding numerical character of the digital keys, the system is according to judging result to the target Character, which carries out processing, to be included:
If there are the first negative sign character, whether the system judges cursor in the character display box described Character bit after first negative sign character, the cursor are used to characterize position of the target character in the character display box Mark;
If character bit of the cursor after the first negative sign character, the system are inserted into institute at the cursor State numerical character;
If character bit of the cursor before the first negative sign character, the system filters the numerical character;
If the first negative sign character is not present, the system is inserted into the numerical character at the cursor.
With reference to any one in the first aspect of the embodiment of the present invention or the first embodiment of first aspect, at this In second of embodiment of the first aspect of inventive embodiments, if the target character is the negative sign button corresponding second Negative sign character, the system carries out processing according to judging result to the target character to be included:
If there are the first negative sign character, the system filters the second negative sign character;
If the first negative sign character is not present, the system moves the cursor to first of the character display box Character bit, the cursor are used to characterize station location marker of the target character in the character display box;
The system is inserted into the second negative sign character at the cursor.
The first of first aspect, first aspect with reference to the embodiment of the present invention are to any among second of embodiment One kind, in the third embodiment of the first aspect of the embodiment of the present invention, if the target character is the period button Corresponding second point sign character, the system carries out processing according to judging result to the target character to be included:
If there are the first negative sign character, whether the system judges cursor before the first negative sign character Character bit, the cursor are used to characterize station location marker of the target character in the character display box;
If character bit of the cursor before the first negative sign character, the system filters the second period word Symbol;
If character bit of the cursor after the first negative sign character, if or, be not present the first negative sign character, Then the system judges whether corresponding first sign character of the period button;
If there are first sign character, the system filters the second point sign character;
If first sign character is not present, the system is inserted into the second point sign character at the cursor.
The first of first aspect, first aspect with reference to the embodiment of the present invention are to any among the third embodiment One kind, in the 4th kind of embodiment of the first aspect of the embodiment of the present invention, the digital keys are 0 to 9 decimal number The button of word composition.
The second aspect of the present invention provides a kind of data input device, including:
Display module, for generating and showing the soft keyboard for input data, the keyboard area of the soft keyboard is by counting Word button, negative sign button and period button composition;
Receiving module, for receiving input signal by the soft keyboard;
Determining module, for determining the corresponding target character of the input signal;
First judgment module, for judging to whether there is the corresponding first negative sign word of the negative sign button in character display box Symbol;
Processing module, for being handled according to the judging result of first judgment module the target character.
With reference to the second aspect of the embodiment of the present invention, in the first embodiment of the second aspect of the embodiment of the present invention In, the processing module includes:
First judging unit, for determining that the target character is the corresponding number of the digital keys when the determining module Word character, and first judgment module judges that there are during the first negative sign character, judge that the cursor in character display box is The no character bit after the first negative sign character, the cursor are used to characterize the target character in the character display box In station location marker;
First insertion unit, for after first judging unit judges the cursor in the first negative sign character Character bit, the numerical character is inserted at the cursor;
First filter element, for judging the cursor before the first negative sign character when first judging unit Character bit, then filter the numerical character;
If the first insertion unit is additionally operable to that the first negative sign character be not present, be inserted at the cursor described in Numerical character.
With reference to any one in the second aspect of the embodiment of the present invention and the first embodiment of second aspect, at this In second of embodiment of the second aspect of inventive embodiments, the processing module further includes:
Second filter element, for determining the target character for the negative sign button corresponding the when the determining module Two negative sign characters, and first judgment module is judged there are during the first negative sign character, then filters the second negative sign word Symbol;
Mobile unit, described in when first judgment module judges the first negative sign character is not present, then inciting somebody to action Cursor is moved to the first character position of the character display box;
Second insertion unit, for the cursor to be moved to first of the character display box when the mobile unit After character bit, the second negative sign character is inserted at the cursor.
The first embodiment of second aspect, second aspect with reference to the embodiment of the present invention and second of second aspect Any one in embodiment, in the third embodiment of the second aspect of the embodiment of the present invention, the processing module Further include:
Second judging unit, for determining the target character for the period button corresponding the when the determining module 2 sign characters, and first judgment module judge there are during the first negative sign character, then judge the cursor whether Character bit before the first negative sign character;
3rd filter element, for judging the cursor before the first negative sign character when second judging unit Character bit, then filter the second point sign character;
3rd judging unit, for judging the first negative sign character is not present when first judgment module, or it is described Second judging unit judges that the cursor in the character bit after the first negative sign character, then judges whether the point Number corresponding first sign character of button;
If the 3rd filter element be additionally operable to the 3rd judging unit judge it is described there are first sign character, Then filter the second point sign character;
3rd insertion unit, for when the 3rd judging unit judges first sign character is not present, then existing The second point sign character is inserted at the cursor.
The third aspect of the present invention provides a kind of data input device, including processor, memory and display, the place Reason device is used to perform following method:
System generates and shows the soft keyboard for input data, and the keyboard area of the soft keyboard is by digital keys, negative Number button and period button composition;
The system receives input signal by the soft keyboard;
The system determines the corresponding target character of the input signal;
The system judges to whether there is the corresponding first negative sign character of the negative sign button in character display box;
The system is handled the target character according to judging result.
With reference to the third aspect of the embodiment of the present invention, in the first embodiment of the third aspect of the embodiment of the present invention In, if the target character is the corresponding numerical character of the digital keys, the processor is additionally operable to perform following method:
If there are the first negative sign character, whether the system judges cursor in the character display box described Character bit after first negative sign character, the cursor are used to characterize position of the target character in the character display box Mark;
If character bit of the cursor after the first negative sign character, the system are inserted into institute at the cursor State numerical character;
If character bit of the cursor before the first negative sign character, the system filters the numerical character;
If the first negative sign character is not present, the system is inserted into the numerical character at the cursor.
With reference to any one in the third aspect of the embodiment of the present invention or the first embodiment of the third aspect, at this In second of embodiment of the third aspect of inventive embodiments, if the target character is the negative sign button corresponding second Negative sign character, the processor are additionally operable to perform following method:
If there are the first negative sign character, the system filters the second negative sign character;
If the first negative sign character is not present, the system moves the cursor to first of the character display box Character bit, the cursor are used to characterize station location marker of the target character in the character display box;
The system is inserted into the second negative sign character at the cursor.
The first of the third aspect, the third aspect with reference to the embodiment of the present invention are to any among second of embodiment One kind, in the third embodiment of the third aspect of the embodiment of the present invention, if the target character is the period button Corresponding second point sign character, the processor are additionally operable to perform following method:
If there are the first negative sign character, whether the system judges cursor before the first negative sign character Character bit, the cursor are used to characterize station location marker of the target character in the character display box;
If character bit of the cursor before the first negative sign character, the system filters the second period word Symbol;
If character bit of the cursor after the first negative sign character, if or, be not present the first negative sign character, Then the system judges whether corresponding first sign character of the period button;
If there are first sign character, the system filters the second point sign character;
If first sign character is not present, the system is inserted into the second point sign character at the cursor.
The first of the third aspect, the third aspect with reference to the embodiment of the present invention are to any among the third embodiment One kind, in the 4th kind of embodiment of the third aspect of the embodiment of the present invention, the memory is used to store by described soft The input signal that keyboard receives.
The first of the third aspect, the third aspect with reference to the embodiment of the present invention are to any among the 4th kind of embodiment One kind, in the 5th kind of embodiment of the third aspect of the embodiment of the present invention, the display is used to show the processor The soft keyboard of generation and the target character by processor processing.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
The present invention provides a kind of data entry device, device and equipment, due to the signal of input be only limitted to numerical character, Negative sign character, the signal of point sign character generation, by the limitation to inputting character, ensure that and inputted when numerical value input Character meet custom mathematically.For example, when need represent negative value when, negative sign character can all the time in input frame high order end, and Negative sign character is at most only able to display one.When needing to represent non-integer, point sign character is also at most only able to display one.It is this defeated Enter mode ensure that in robot demonstrator or will not be inputted under occasions that other need numeral and special symbol it is invalid Signal, significantly reduces error probability during input data so that operating efficiency is improved.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only the embodiment of the present invention, general for this area For logical technical staff, without creative efforts, other attached drawings can also be obtained according to the attached drawing of offer.
Fig. 1 is an a kind of soft keyboard schematic diagram of data entry device of the embodiment of the present invention;
Fig. 2 is a kind of one embodiment schematic diagram of data entry device of the embodiment of the present invention;
Fig. 3 is a kind of another embodiment schematic diagram of data entry device of the embodiment of the present invention;
Fig. 4 is a kind of another embodiment schematic diagram of data entry device of the embodiment of the present invention;
Fig. 5 is a kind of structure diagram of data input device of the embodiment of the present invention;
Fig. 6 is a kind of structure diagram of data input device of the embodiment of the present invention.
Embodiment
It is defeated for limiting under specific circumstances an embodiment of the present invention provides a kind of data entry device, device and equipment The character types entered, reduce error probability during input data, improve work efficiency
In order to make those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Attached drawing, is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's all other embodiments obtained without making creative work, should all belong to the model that the present invention protects Enclose.
Term " first ", " second ", " the 3rd " in description and claims of this specification and above-mentioned attached drawing, " The (if present)s such as four " are for distinguishing similar object, without for describing specific order or precedence.It should manage The data that solution so uses can exchange in the appropriate case, so that the embodiments described herein can be with except illustrating herein Or the order beyond the content of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, for example, containing the process of series of steps or unit, method, system, product or equipment need not limit In those steps or unit for clearly listing, but may include not list clearly or for these processes, method, production The intrinsic other steps of product or equipment or unit.
In the embodiment of the present invention, after generating and showing soft keyboard, user inputs character by soft keyboard and is grasped system Make, since soft keyboard is made of in design three kinds of different types of characters, input different types of character after correlation is carried out Method and steps during continuous operation is different, is described below with regard to three kinds of different character processing methods:
Referring to Fig. 2, Fig. 2 is a kind of one embodiment schematic diagram of data entry device of the embodiment of the present invention.Wherein, Embodiment shown in Fig. 2 is the processing method when the character types of input are numerical characters.This method be applicable to robot, The user terminals such as robot demonstrator, numerically-controlled machine tool, computer.As shown in Fig. 2, this method can include:
Step 201, system generate and show soft keyboard;
System is by application software editor and generates soft keyboard.In practice, system can be by applying Qt frames Soft keyboard is generated, Java language generation soft keyboard can also be utilized, MFC (Microsoft Foundation can also be utilized Classes, Microsoft Foundation class libraries) or other programs, frame, programming language generation soft keyboard, it is not specifically limited herein.
Illustrated below exemplified by generating soft keyboard using Qt:System generates soft keyboard by Qt, comprises the following steps that: All buttons are created using the QPushbutton classes control in Qt, size attribute is set, and utilizes QVBoxLayout class controls The layout of button is configured with QHBoxLayout classes control.Then using DOM (Document Object Model, text Shelves object model) mode reads configuration file, the content that corresponding button shows is determined according to configuration file, and set button to correspond to Key assignments and other attributes, key assignments be used for determine when button is clicked to current focus window send value.The letter of Qt is used afterwards Number and mechanism slot, the keyClick signals of button and keyPress groove functions are associated, when the button is pressed just send KeyClick signals, keyClick signals triggering keyPress groove functions, by calling sendKey in keyPress groove functions Function sends correct key assignments, so as to fulfill character input.In practical applications, soft keyboard can include digital keys, negative sign Button and period button.Wherein, the button that digital keys can be made of 0 to 9 ten's digit, this set method Meet current common numeral input mode, applicability is preferable.Negative sign button corresponds to the negative sign in mathematics, for distinguishing numerical value Positive and negative values.Period button corresponds to the decimal point in mathematics, can be used when representing non-integer.
After the completion of soft keyboard step is generated, system can show soft keyboard for users to use, one kind of specific soft keyboard Design diagram referring to Fig. 1, in practical applications the design of soft keyboard can also have other forms, do not limit specifically herein It is fixed.
Step 202, system receive input signal by soft keyboard;
User clicks on related key by soft keyboard and sends signal, and system, which receives these signals, to divide signal Analysis, the corresponding character of signal obtained according to analysis make different processing, such as when the signal for receiving digital keys input When, system can show the corresponding character of the digital keys.
Step 203, system determine that the character of input is numerical character;
When user clicks on digital keys, system can receive corresponding signal when pressing digital keys, and system is to signal Analyzed to obtain the correspondence numerical character of digital keys, so as to carry out relevant treatment, such as to receive digital keys at this time defeated The signal entered, then can show the corresponding character of the digital keys, if to numeral 1 push button signalling, then can show numeral 1 word Symbol.
Step 204, system judge whether there is negative sign character in display box;
After it is numerical character that system, which determines character types, it can first determine whether in character display box either with or without negative sign character, Judge user formerly either with or without input negative sign character, negative sign character here be used to distinguishing numeral on the occasion of and negative value word Symbol, it is corresponding with negative sign mathematically.If system judges to perform step 205 there are negative sign character in display box, if system judges Sign character is not present in display box, then performs step 207.
Whether step 205, system judge cursor before negative sign character;
System judges cursor whether before negative sign character, after the station location marker character input of cursor in character display box Position, cursor represented before negative sign character input character can be in the character bit before negative sign character.
In practical applications, cursor can be the vertical line of a flicker or other forms, be carried as long as can play Show the position of user inputs character, be not especially limited herein.
It should be noted that character display box is typically set to the character according to the input of order display from left to right, light Character bit of the cursor on the negative sign character left side is represented before being marked on symbol, character display box can also have other set-up modes, this Place is not especially limited.
If system judges character bit of the cursor before negative sign character, step 206 is performed, if system judges that cursor does not exist Character bit before negative sign character, then perform step 207.
Step 206, system filtering characters;
When system judges character bit of the cursor before negative sign character, system can judge that input character at this time is invalid, no Meet operational order regulation, so system can filter character signal, do not handle invalid character signal.
Step 207, system are inserted into numerical character at cursor;
Character bit after system judges cursor in negative sign character, the character inputted at this time be it is effective, it is relevant to set It is standby can be according to the corresponding instruction works of relevant character, system can be inserted into character at cursor at this time.
The present embodiment be directed to when input be by digital keys generate numerical character when processing step, due to mathematics On limitation, before inputting digital character cannot appear in negative sign character, thus the present embodiment can ensure input numeric word The validity of symbol.
2nd, the processing method when character types of input are negative sign characters.
Referring to Fig. 3, wherein, the embodiment shown in Fig. 3 is the processing side when the character types of input are negative sign characters Method.As shown in figure 3, this method can include:
Step 301 is identical with step 201 in the embodiment of the present invention, and details are not described herein again.
Step 302, system receive input signal by soft keyboard;
User clicks on related key by soft keyboard and sends signal, and system, which receives these signals, to divide signal Analysis, different processing is made according to the corresponding character of signal that analysis obtains, such as when the signal for receiving negative sign key-press input When, system can show the corresponding negative sign character of the negative sign button.
Step 303, system determine that the character of input is negative sign character;
When user clicks on negative sign button, system can receive the corresponding signal of negative sign button, and system divides signal Analysis obtains the correspondence negative sign character of negative sign button, so as to carry out relevant treatment, such as receives the letter of negative sign key-press input at this time Number, then it can show the corresponding character of negative sign button, that is, show "-" character.
Step 304, system judge whether there is negative sign character in character display box;
After it is negative sign character that system, which determines character types, it can judge either with or without negative sign character to sentence in character display box Disconnected user is formerly either with or without input negative sign character.If system judges there are negative sign character to illustrate formerly in character display box Negative sign character was inputted, then performs step 305, if system judges sign character is not present in display box, performs step 307.
Step 305, system filtering characters;
When system is judged formerly there are negative sign character in character display box, system can be filtered rear input by user negative Sign character, this method, which ensure that, only has a negative sign character in character display box.
Cursor is moved to the first character position of character display box by step 306, system;
When system judges negative sign character is not present in character display box, then cursor can be moved to the first of character display box A character bit.
It is configured to show character, character according to order from left to right it should be noted that being typically due to character display box The first character position of display box represents the character bit on the character display box most left side.Character display box can also have other settings Mode, is not especially limited herein.
Step 307, system are inserted into negative sign character at cursor;
System is inserted into negative sign character at the beginning of cursor, since within step 306, cursor is moved to character display box by system First character position, is inserted into negative sign character at cursor at this time so that negative sign character is always in the first character of character display box Fu Wei.
The present embodiment be directed to when input be the negative sign character generated by negative sign button when processing step, due in number Limitation on, numerical character will not be before negative sign characters, so when needing to input negative sign character, system will can always be born Sign character, which is arranged in most preceding position, ensures that the character that inputs afterwards is correct, and the present embodiment can ensure the negative sign character of input Validity.
3rd, the processing method when character types of input are sign characters.
Referring to Fig. 4, wherein, the embodiment shown in Fig. 4 is the processing sides when the character types of input are sign character Method.As shown in figure 4, this method can include:
Step 401 is identical with step 201 in the embodiment of the present invention, and details are not described herein again.
Step 402, system receive input signal by soft keyboard;
User clicks on related key by soft keyboard and sends signal, and system, which receives these signals, to divide signal Analysis, different processing is made according to the corresponding character of signal that analysis obtains, such as when the signal for receiving period key-press input When, system can show corresponding sign character of the period button, and it is decimal point mathematically to put sign character herein, for representing non- The input of integer.
Step 403, system determine that the character of input is point sign character;
When user clicks on period button, system can receive corresponding signal when pressing period button, and system is to signal Analyzed to obtain the corresponding points sign character of period button, so as to carry out relevant treatment, such as to receive period button at this time defeated The signal entered, then can show the corresponding character of period button, that is, show " " character.
Step 404, system judge whether there is negative sign character in character display box;
After it is point sign character that system, which determines character types, it can judge either with or without negative sign character to sentence in character display box Disconnected user is formerly either with or without input negative sign character.If system judges there are negative sign character to illustrate formerly in character display box Negative sign character was inputted, then performs step 405, if system judges sign character is not present in display box, performs step 406.
Whether step 405, system judge cursor before negative sign character;
System judges cursor whether before negative sign character, due to after the position correspondence relevant character input of cursor in word The position in display box is accorded with, so cursor represents that the character of input can be in the character before negative sign character before negative sign character Position.
If system judges character bit of the cursor before negative sign character, step 407 is performed, if system judges that cursor does not exist Character bit before negative sign character, then perform step 406.
Step 406, system judge whether there is a sign character in character display box;
System judges whether formerly there is a sign character in character display box, if so, step 407 is then performed, if not having, Then perform step 408.
Step 407, system filtered points sign character;
When system judges that cursor formerly has a sign character before negative sign character or in character display box, system can filter use Family is in the point sign character of rear input, and this method, which ensure that, only has sign character in character display box, and if negative sign Character, can be in the character bit after negative sign character in the point sign character of rear input.
Step 408, system the insertion point sign character at cursor;
When system judge in character input boxes without point a sign character, then illustrate that first user does not have input point sign character, this When system can at the cursor in character display box insertion point sign character, with reference to step 407, ensure that can only at most input one Point sign character.
The present embodiment be directed to when input be by period button generate point sign character when processing step, due in number Limitation on, when needing input point sign character to represent non-integer, the point sign character of input must after negative sign character, and And can only there are a period.The present embodiment can ensure the validity of the point sign character of input.
The soft keyboard input method in the embodiment of the present invention is described above, below in the embodiment of the present invention Data input device is described.
Referring to Fig. 5, Fig. 5 is a kind of structure diagram of data input device of the embodiment of the present invention, as shown in figure 5, The data input device can include:
Display module 501, receiving module 502, determining module 503, the first judgment module 504 and processing module 505, Wherein,
Display module 501, for generating and showing the soft keyboard for input data, the keyboard area of soft keyboard is by numeral Button, negative sign button and period button composition.
Receiving module 502, for receiving input signal by soft keyboard.
Determining module 503, for determining the corresponding target character of input signal.
First judgment module 504, for judging to whether there is the corresponding first negative sign word of negative sign button in character display box Symbol.
Processing module 505, for being handled according to the judging result of the first judgment module target character.
Further, processing module 505 further includes the first judging unit 5051, the first insertion unit 5052, the first filtering Unit 5053, the second filter element 5054, mobile unit 5055, the second insertion unit 5056, the second judging unit 5057, the 4th Judging unit 5058, the 3rd filter element 5059, the 3rd insertion unit 50510.
First judging unit 5051, for determining that target character is the corresponding numeric word of digital keys when determining module 503 Symbol, and the first judgment module 504 judges that there are during the first negative sign character, judge whether the cursor in character display box is negative first Character bit after sign character, cursor are station location marker of the target character in character display box.
First insertion unit 5052, for word after the first judging unit 5051 judges cursor in the first negative sign character Fu Wei, is inserted into numerical character at cursor.
If the first insertion unit 5052 is additionally operable to that the first negative sign character is not present, numerical character is inserted at cursor.
First filter element 5053, for judging cursor before the first negative sign character when first judging unit 5051 Character bit, then filter digital character.
Second filter element 5054, for determining that target character is corresponding second negative for negative sign button when determining module 503 Sign character, and the first judgment module 504 is judged there are during the first negative sign character, then filters the second negative sign character.
Mobile unit 5055, for when the first judgment module 504 judges the first negative sign character is not present, then moving cursor Move the first character position of character display box.
Second insertion unit 5056, for moving the cursor to the first character of character display box when mobile unit 5055 Behind position, the second negative sign character is inserted at cursor.
Second judging unit 5057, for determining that target character is the corresponding second point of period button when determining module 503 Sign character, and the first judgment module 504 judge there are during the first negative sign character, then judge cursor whether the first negative sign character it Preceding character bit.
3rd judging unit 5058, for judging the first negative sign character is not present when the first judgment module 504, or second sentences Disconnected unit 5057 judges cursor in the character bit after the first negative sign character, then judges whether period button corresponding the Some sign characters.
3rd filter element 5059, for judging word of the cursor before the first negative sign character when the second judging unit 5057 Fu Wei, then filter second point sign character.
Judge if the 3rd filter element 5059 is additionally operable to the 3rd judging unit 5058 there are first sign character, filter the 2 sign characters;
3rd insertion unit 50510, for when three judging units 5058 judge first sign character is not present when, then in light Second point sign character is inserted at mark.
A kind of device in the embodiment of the present invention is described in the angle of slave module functional entity above, below from hard A kind of data input device in the embodiment of the present invention is described in part angle.
Referring to Fig. 6, a kind of one embodiment of embedded device in the embodiment of the present invention includes:
Processor 601, memory 602 and display 603.
Processor 601 is used to perform following method:
Processor 601 indicates soft keyboard of the system generation for input data, and the display of indication display 603 is used to input The soft keyboard of data, the keyboard area of soft keyboard are made of digital keys, negative sign button and period button;
System receives input signal by soft keyboard;
System determines the corresponding target character of input signal;
System judges to whether there is the corresponding first negative sign character of negative sign button in character display box;
System is handled target character according to judging result.
Wherein, when target character is respectively numerical character, negative sign character, point sign character, processor 601 can be according to target The difference of character carries out corresponding processing.
If target character is the corresponding numerical character of digital keys, processor 601 is additionally operable to perform following method:
If there are the first negative sign character, whether system judges cursor in character display box after the first negative sign character Character bit, cursor be used for characterize station location marker of the target character in character display box;
If character bit of the cursor after the first negative sign character, system are inserted into numerical character at cursor;
If character bit of the cursor before the first negative sign character, system filter digital character;
If the first negative sign character is not present, system is inserted into numerical character at cursor.
If target character is the corresponding second negative sign character of negative sign button, processor 601 is additionally operable to perform following method:
If there are the first negative sign character, system filters the second negative sign character;
If the first negative sign character is not present, system moves the cursor to the first character position of character display box, cursor For characterizing station location marker of the target character in character display box;
System is inserted into the second negative sign character at cursor.
If target character is the corresponding second point sign character of period button, processor 601 is additionally operable to perform following method:
If there are the first negative sign character, system judge cursor whether the character bit before the first negative sign character, cursor For characterizing station location marker of the target character in character display box;
If character bit of the cursor before the first negative sign character, system filtering second point sign character;
If character bit of the cursor after the first negative sign character, if or, be not present the first negative sign character, system judge be It is no that there are corresponding first sign character of period button;
If there are first sign character, system filtering second point sign character;
If first sign character is not present, system is inserted into second point sign character at cursor.
Memory 602 is used to store the input signal received by soft keyboard.
Display 603 is used for the soft keyboard that video-stream processor 601 generates and the target word handled by processor 601 Symbol.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, is only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit Close or communicate to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple In network unit.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products Embody, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment the method for the present invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Embodiment is stated the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding State the technical solution described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical solution.

Claims (15)

  1. A kind of 1. data entry device, it is characterised in that including:
    System generates and shows the soft keyboard for input data, and the keyboard area of the soft keyboard is pressed by digital keys, negative sign Key and period button composition;
    The system receives input signal by the soft keyboard;
    The system determines the corresponding target character of the input signal;
    The system judges to whether there is the corresponding first negative sign character of the negative sign button in character display box;
    The system is handled the target character according to judging result.
  2. 2. data entry device according to claim 1, it is characterised in that if the target character is the digital keys Corresponding numerical character, the system carries out processing according to judging result to the target character to be included:
    If there are the first negative sign character, whether the system judges cursor in the character display box described first Character bit after negative sign character, the cursor are used to characterize position mark of the target character in the character display box Know;
    If character bit of the cursor after the first negative sign character, the system are inserted into the number at the cursor Word character;
    If character bit of the cursor before the first negative sign character, the system filters the numerical character;
    If the first negative sign character is not present, the system is inserted into the numerical character at the cursor.
  3. 3. data entry device according to claim 1, it is characterised in that if the target character is the negative sign button Corresponding second negative sign character, the system carries out processing according to judging result to the target character to be included:
    If there are the first negative sign character, the system filters the second negative sign character;
    If the first negative sign character is not present, the system moves the cursor to the first character of the character display box Position, the cursor are used to characterize station location marker of the target character in the character display box;
    The system is inserted into the second negative sign character at the cursor.
  4. 4. data entry device according to claim 1, it is characterised in that if the target character is the period button Corresponding second point sign character, the system carries out processing according to judging result to the target character to be included:
    If there are the first negative sign character, the system judge cursor whether the character before the first negative sign character Position, the cursor are used to characterize station location marker of the target character in the character display box;
    If character bit of the cursor before the first negative sign character, the system filters the second point sign character;
    If character bit of the cursor after the first negative sign character, if or, being not present the first negative sign character, institute The system of stating judges whether corresponding first sign character of the period button;
    If there are first sign character, the system filters the second point sign character;
    If first sign character is not present, the system is inserted into the second point sign character at the cursor.
  5. 5. data entry device according to claim 1 or 2, it is characterised in that the digital keys be 0 to 9 ten into The button of system numeral composition.
  6. A kind of 6. data input device, it is characterised in that including:
    Display module, for generating and showing the soft keyboard for input data, the keyboard area of the soft keyboard is pressed by numeral Key, negative sign button and period button composition;
    Receiving module, for receiving input signal by the soft keyboard;
    Determining module, for determining the corresponding target character of the input signal;
    First judgment module, for judging to whether there is the corresponding first negative sign character of the negative sign button in character display box;
    Processing module, for being handled according to the judging result of first judgment module the target character.
  7. 7. data input device according to claim 6, it is characterised in that the processing module includes:
    First judging unit, for determining that the target character is the corresponding numeric word of the digital keys when the determining module Symbol, and first judgment module judge there are cursor during the first negative sign character, judged in character display box whether Character bit after the first negative sign character, the cursor are used to characterize the target character in the character display box Station location marker;
    First insertion unit, for word after first judging unit judges the cursor in the first negative sign character Fu Wei, is inserted into the numerical character at the cursor;
    First filter element, for judging word of the cursor before the first negative sign character when first judging unit Fu Wei, then filter the numerical character;
    If the first insertion unit is additionally operable to that the first negative sign character is not present, the numeral is inserted at the cursor Character.
  8. 8. data input device according to claim 7, it is characterised in that the processing module further includes:
    Second filter element, for determining that the target character is corresponding second negative for the negative sign button when the determining module Sign character, and first judgment module is judged there are during the first negative sign character, then filters the second negative sign character;
    Mobile unit, for when first judgment module judge the first negative sign character is not present when, then by the cursor It is moved to the first character position of the character display box;
    Second insertion unit, for the cursor to be moved to the first character of the character display box when the mobile unit Behind position, the second negative sign character is inserted at the cursor.
  9. 9. data input device according to claim 8, it is characterised in that the processing module further includes:
    Second judging unit, for determining that the target character is the corresponding second point of the period button when the determining module Sign character, and whether first judgment module is judged there are during the first negative sign character, then judge the cursor described Character bit before first negative sign character;
    3rd filter element, for judging word of the cursor before the first negative sign character when second judging unit Fu Wei, then filter the second point sign character;
    3rd judging unit, for judging the first negative sign character, or described second is not present when first judgment module Judging unit judges the cursor in the character bit after the first negative sign character, then judge whether the period by Corresponding first sign character of key;
    Judge if the 3rd filter element is additionally operable to the 3rd judging unit there are first sign character, filter institute State second point sign character;
    3rd insertion unit, for when the 3rd judging unit judge first sign character is not present when, then described The second point sign character is inserted at cursor.
  10. A kind of 10. data input device, it is characterised in that including processor, memory and display,
    The memory is used to store application program;
    The processor calls the application program being stored in the memory, to perform following method:
    Soft keyboard of the system generation for input data, the keyboard area of the soft keyboard by digital keys, negative sign button and Period button forms;
    The system receives input signal by the soft keyboard;
    The system determines the corresponding target character of the input signal;
    The system judges to whether there is the corresponding first negative sign character of the negative sign button in character display box;
    The system is handled the target character according to judging result.
  11. 11. data input device according to claim 10, it is characterised in that if the target character is pressed for the numeral The corresponding numerical character of key, the processor call the application program being stored in the memory to be additionally operable to perform such as lower section Method:
    If there are the first negative sign character, whether the system judges cursor in the character display box described first Character bit after negative sign character, the cursor are used to characterize position mark of the target character in the character display box Know;
    If character bit of the cursor after the first negative sign character, the system are inserted into the number at the cursor Word character;
    If character bit of the cursor before the first negative sign character, the system filters the numerical character;
    If the first negative sign character is not present, the system is inserted into the numerical character at the cursor.
  12. 12. data input device according to claim 10, it is characterised in that if the target character is pressed for the negative sign The corresponding second negative sign character of key, it is as follows that the processor calls the application program being stored in the memory to be additionally operable to execution Method:
    If there are the first negative sign character, the system filters the second negative sign character;
    If the first negative sign character is not present, the system moves the cursor to the first character of the character display box Position, the cursor are used to characterize station location marker of the target character in the character display box;
    The system is inserted into the second negative sign character at the cursor.
  13. 13. data input device according to claim 10, it is characterised in that if the target character is pressed for the period The corresponding second point sign character of key, it is as follows that the processor calls the application program being stored in the memory to be additionally operable to execution Method:
    If there are the first negative sign character, the system judge cursor whether the character before the first negative sign character Position, the cursor are used to characterize station location marker of the target character in the character display box;
    If character bit of the cursor before the first negative sign character, the system filters the second point sign character;
    If character bit of the cursor after the first negative sign character, if or, being not present the first negative sign character, institute The system of stating judges whether corresponding first sign character of the period button;
    If there are first sign character, the system filters the second point sign character;
    If first sign character is not present, the system is inserted into the second point sign character at the cursor.
  14. 14. data input device according to claim 10, it is characterised in that the memory is additionally operable to storage and passes through institute State the input signal of soft keyboard reception.
  15. 15. data input device according to claim 10, it is characterised in that the display is used to show the processing The soft keyboard and the target character by processor processing of device generation.
CN201680038876.2A 2016-12-28 2016-12-28 A kind of data entry device, device and equipment Pending CN107995966A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112679 WO2018119760A1 (en) 2016-12-28 2016-12-28 Data input method, apparatus and device

Publications (1)

Publication Number Publication Date
CN107995966A true CN107995966A (en) 2018-05-04

Family

ID=62028721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680038876.2A Pending CN107995966A (en) 2016-12-28 2016-12-28 A kind of data entry device, device and equipment

Country Status (2)

Country Link
CN (1) CN107995966A (en)
WO (1) WO2018119760A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035049A (en) * 2020-09-02 2020-12-04 中国银行股份有限公司 Mobile terminal H5-based money input implementation method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558786B (en) * 2020-12-25 2023-02-07 福建利利普光电科技有限公司 Digital input keyboard capable of switching system and control method thereof

Citations (6)

* Cited by examiner, † Cited by third party
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
CN101021890A (en) * 2007-03-20 2007-08-22 华为技术有限公司 Method, system and server for checking page data
CN102707812A (en) * 2012-05-16 2012-10-03 河南辉煌科技股份有限公司 Time input method
CN102830903A (en) * 2012-06-29 2012-12-19 鸿富锦精密工业(深圳)有限公司 Electronic equipment and memorandum adding method of electronic equipment
CN103176739A (en) * 2013-03-05 2013-06-26 广东欧珀移动通信有限公司 Calculator handwriting function realization method and mobile terminal thereof
CN104270395A (en) * 2014-10-24 2015-01-07 中国建设银行股份有限公司 Method, device and system for checking input data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898963A (en) * 2014-03-04 2015-09-09 珠海金山办公软件有限公司 Virtual keyboard display method and virtual keyboard display system

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
CN101021890A (en) * 2007-03-20 2007-08-22 华为技术有限公司 Method, system and server for checking page data
CN102707812A (en) * 2012-05-16 2012-10-03 河南辉煌科技股份有限公司 Time input method
CN102830903A (en) * 2012-06-29 2012-12-19 鸿富锦精密工业(深圳)有限公司 Electronic equipment and memorandum adding method of electronic equipment
CN103176739A (en) * 2013-03-05 2013-06-26 广东欧珀移动通信有限公司 Calculator handwriting function realization method and mobile terminal thereof
CN104270395A (en) * 2014-10-24 2015-01-07 中国建设银行股份有限公司 Method, device and system for checking input data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
明卿: "MFC控件edit封装,只能输入数字、负号、小数点", 《HTTPS://BLOG.CSDN.NET/QING666888/ARTICLE/DETAILS/53519768》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035049A (en) * 2020-09-02 2020-12-04 中国银行股份有限公司 Mobile terminal H5-based money input implementation method and device

Also Published As

Publication number Publication date
WO2018119760A1 (en) 2018-07-05

Similar Documents

Publication Publication Date Title
CN101350004B (en) Method for forming personalized error correcting model and input method system of personalized error correcting
CN100388628C (en) Component-based, adaptive stroke-order system
CN101788855B (en) Method, device and communication terminal for obtaining user input information
CN105511784A (en) Information input method, device and mobile terminal based on pressure detection
CN102207826B (en) A kind of method and system of scribble
CN100549916C (en) Mobile terminal device and characters input method
CN101581992A (en) Touch screen device and input method thereof
CN105718072B (en) A kind of character input method and mobile terminal
EP2642468A1 (en) Learning support device, learning support method and storage medium in which learning support program is stored
CN103365573A (en) Method and device for identifying multi-key input characters
CN103049206A (en) Text editing method and communication terminal
CN104077065A (en) Method for displaying virtual keyboard by touch screen terminal and touch screen terminal
CN107995966A (en) A kind of data entry device, device and equipment
CN101561718B (en) Braille input method of keyboard, keyboard and mobile phone adopting same
CN105955507B (en) A kind of display methods and terminal of soft keyboard
CN103026320A (en) Method and device for inputting Chinese characters
CN107797676A (en) A kind of input method of the single character and device
CN103389800B (en) A kind of method and apparatus generating entry
CN105094355A (en) Input method and related electronic device
CN102246158A (en) User-specified phrase input learning
US7352295B2 (en) Apparatus for and method of inputting alphabets using a reduced keypad
CN107168549A (en) Input method, display device and computer-readable recording medium
CN105739894A (en) Input method and terminal
KR101204151B1 (en) Letter input device of mobile terminal
CN111813948A (en) Information processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180504

RJ01 Rejection of invention patent application after publication