Background technology
In portable terminal, the keyboard input is traditional, the most general present a kind of input mode, people utilize the combination of keyboard to carry out various inputs, but in order to pursue portability, small size, people are to the requirement of large display screen in addition under a lot of situations, and portable terminal often keyboard is less, be unfavorable for operation, and when more input is arranged, need repeatedly combination repeatedly to select, comparatively inconvenience in the use.
At above-mentioned situation, people are applied to portable terminal with the dummy keyboard technology, it is by means of the area of display screen, can show more button, people finish input process by stylus to the selection of button on the dummy keyboard, make input process need not repeatedly to make up repeatedly and select, thereby this mode has more and more obtained liking of people.
But, the dummy keyboard input is used alone as a kind of input method at present traditional portable terminal, in input mode is in the portable terminal that keyboard is imported and dummy keyboard is imported and deposited, import and at first to select to determine keyboard entry method or dummy keyboard input mode, dual mode switches and can not finish automatically, use particularly inconvenience, have bigger use limitation.
Summary of the invention
The technical problem to be solved in the present invention is: a kind of portable terminal with keyboard and virtual keyboard synergic input function is provided, this portable terminal can be realized the switching of keyboard input and dummy keyboard input automatically when importing, need not artificial manually setting, simple to operate, it is convenient to realize.
For solving the problems of the technologies described above, the invention provides a kind of portable terminal with keyboard and virtual keyboard synergic input function, comprise stylus, touch-screen, keyboard that is connected with touch-screen and dummy keyboard are worked in coordination with input media, and the collaborative input media of described keyboard and dummy keyboard comprises further:
Keyboard operation perception unit is used to receive the button operation signal;
The keyboard input block, be used to receive keyboard input state trigger pip after, under keyboard input service state, receive the input information of keyboard;
Processing unit is finished in the keyboard input, is used for the information of keyboard input is recognized, made up, and generate possible selection Chinese character, and the result after will confirming exports demonstration;
Refer to sense of touch notice of invitation unit, be used to receive the signal of stylus contact touch-screen;
The dummy keyboard input block is used to receive dummy keyboard input state trigger pip, receives the input information of stylus to dummy keyboard when dummy keyboard is in the input service state;
Processing unit is finished in the dummy keyboard input, is used for the information of dummy keyboard input is recognized, made up, and generate possible selection Chinese character, and the result after will confirming exports demonstration.
Further, in the collaborative input media of described keyboard and dummy keyboard, keyboard input state trigger pip and dummy keyboard input state trigger pip are by the keyboard input block or refer to what sense of touch notice of invitation unit produced.
Further, the collaborative input system of described keyboard and dummy keyboard also comprises: be used to judge stylus and touch-screen take off touch take off sense of touch notice of invitation unit.
Further, described taking off in the sense of touch notice of invitation unit is provided with further: be used to set and withdraw from virtual input state and wait for that taking off of maximum duration touch timer, described taking off touched timer and taken off when touching zero clearing at stylus and touch-screen and restart.
Further, described stylus leaves the touch-screen time and touches the timer timing greater than taking off, and then shows virtual end of input.
Compared with prior art, a kind of portable terminal proposed by the invention with keyboard and virtual keyboard synergic input function, can when input, discern keyboard input state and dummy keyboard input state automatically, need not to carry out the setting of input method, make that when portable terminal uses the switching of input mode is more succinct, convenient.
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is further introduced, but not as a limitation of the invention.
With reference to shown in Figure 1, a kind of portable terminal with keyboard and virtual keyboard synergic input function comprises stylus, and touch-screen, the keyboard that is connected with touch-screen and dummy keyboard are worked in coordination with input media, and this device comprises:
Keyboard operation perception unit 1 is used to receive the button operation signal;
Keyboard input block 2, be used to receive keyboard input state trigger pip after, under keyboard input service state, receive the input information of keyboard;
Processing unit 3 is finished in the keyboard input, is used for the information of keyboard input is recognized, made up, and generate possible selection Chinese character, and the result after will confirming exports to screen displaying.
Refer to sense of touch notice of invitation unit 4, be used to receive the signal of stylus contact touch-screen, wherein be provided with finger and touch timer, refer to touch timer zero clearing when stylus contact touch-screen and restart;
Take off sense of touch notice of invitation unit 5, be used to receive stylus and lift, take off the signal that touches, wherein be provided with to take off and touch timer, take off and touch timer and take off when touching touch-screen zero clearing at stylus and restart with touch-screen;
Dummy keyboard input block 6 is used to receive dummy keyboard input state trigger pip, receives the input information of stylus to dummy keyboard when dummy keyboard is in the input service state;
Processing unit 7 is finished in the dummy keyboard input, is used for the information of dummy keyboard input is recognized, made up, and generate possible selection Chinese character, and the result after will confirming exports to screen displaying.
In above-mentioned finger-impu system and dummy keyboard input media, refer to that sense of touch notice of invitation unit 4 when dummy keyboard input block 6 sends dummy keyboard input service state trigger pip, stops keyboard input state trigger pip to 2 transmissions of keyboard input block; When keyboard operation perception unit 1 sends keyboard input service state trigger pip to keyboard input block 2, stop dummy keyboard input state trigger pip to 6 transmissions of dummy keyboard input block; Guaranteed the switching accuracy of two kinds of input modes like this.
With reference to shown in Figure 2, when portable terminal carries out in the Chinese character input process, if what originally use is the keyboard entry method input, then to convert the input mode of utilizing dummy keyboard to, can finish automatic switchover by finger-impu system, in carrying out the dummy keyboard input process, to be converted to keyboard entry method, also can realize by finger-impu system, suppose in this portable terminal, the input method of acquiescence is: the keyboard spelling input method, carry out two kinds of Automatic Switching of Input in input process according to actual needs, implementation procedure is as follows:
Step 101: when application program for mobile terminal starts, call keyboard input block 2, load the keyboard spelling input method, below screen, open the interface of input method.
Step 102: utilize the combination of a plurality of buttons on the cell phone keyboard, press button on the lower keyboard, begin to carry out the Chinese character input, keyboard input block 2 receives keying input information, sending keyboard input to finishes 3 pairs of input informations of processing unit and recognizes, makes up, generate possible options in screen displaying, the affirmation information of the keyboard input that again keyboard input block 2 is received is sent to the keyboard input and finishes in the processing unit 3, the selected information of confirming is outputed on the touch-screen show;
For example: input " urging ", priority presses 2 keys and 8 key combinations are imported, keyboard input block 2 receives input information, sending into keyboard input finishes and carries out analyzing and processing in the processing unit 3, possible phonetic elements combination " bu cu cun cuo cui " is exported, on touch-screen, show, options button moves right, make the phonetic element choose " cu ", press the OK key, input information once more, keyboard input block 2 will be selected the result and send keyboard input to and finish processing unit 3, the keyboard input finish processing unit 3 according to selected result with possible candidate output, on touch-screen, show, continue to utilize mobile options button, select " urge ", press the OK key, the continuing of the selected result that keyboard input block 2 will receive sends keyboard input to and finishes processing unit 3, processing unit 3 is finished in the keyboard input will select an output, show on touch-screen " urging ".
Step 103: refer to that sense of touch notice of invitation unit 4 detects stylus and presses at touch-screen, and the time is greater than referring to touch the timer timing, keyboard input block 2 quits work, and calls dummy keyboard and shows on touch-screen, and dummy keyboard input block 6 is subjected to trigger and starts working;
Step 104: utilize stylus point on dummy keyboard to touch selection " jin ", touch definite key then, the selected result that dummy keyboard input block 6 will receive sends the dummy keyboard input to and finishes processing unit 7;
Step 105: the dummy keyboard input is finished processing unit 7 and is carried out exporting the possible candidate of demonstration " it is near to advance modern gold " after the respective handling on touch-screen, touching selection with the stylus point " advances ", determine to finish input, the selected result that will be received by dummy keyboard input block 6 finishes processing unit 7 outputs by the dummy keyboard input and is presented on the touch-screen again.
Thus, finished the input of " promotion ", in keyboard input " urging " afterwards, Direct Recognition the switching of dummy keyboard input state, and need not artificial setting.
Step 106: if after the dummy keyboard input process, change into again and carry out keyboard operation, then by the lower keyboard meaning button of taking up an official post, keyboard operation perception unit 1 receives the button operation trigger pip, send keyboard input service state trigger pip to keyboard input block 2, enter the keyboard input state, and send the trigger pip that quits work to dummy keyboard input block 6 simultaneously, make it withdraw from the dummy keyboard input mode automatically.
In above-mentioned steps, if after carrying out the dummy keyboard input, stylus and touch-screen take off and touch, taking off sense of touch notice of invitation unit 5 this moment receives to take off and touches signal, pick up counting,, then withdraw from the dummy keyboard input state if the time of touching of taking off of stylus and touch-screen is touched timing greater than taking off of setting, reenter the keyboard input state, making has on the touch-screen bigger space to receive the information that may insert at any time.And select for the mode of input, can when importing next time, select for use automatically.