Summary of the invention
In view of above content, be necessary to provide a kind of soft keyboard input system and method, it utilizes the limited area of touch-screen to amplify each button of soft keyboard, thereby can conveniently carry out the data input.
A kind of soft keyboard input system, be installed in the electronic installation, this electronic installation comprises touch-screen, this system comprises: module is set, be used to be provided with the key configurations of soft keyboard, this soft keyboard is cut into first and second portion, and first moving direction that described electronic installation is set is corresponding to the first of soft keyboard and second moving direction second portion corresponding to soft keyboard; Display module is used for when described electronic installation is in the button input state, shows the first of soft keyboard on described touch-screen; Gravity sensor is used for detecting the moving direction of described electronic installation when described electronic installation is in the button input state; Judge module, be used to judge whether the moving direction of described electronic installation is first moving direction or second moving direction, if first moving direction or second moving direction, then judge the soft keyboard that shows on the described touch-screen when forward part whether corresponding to this moving direction; And handover module, be used for the soft keyboard that on described touch-screen, shows when the moving direction of forward part and described electronic installation not at once, the forward part of working as of soft keyboard is switched to and pairing first of the moving direction of described electronic installation or second portion.
A kind of soft keyboard input system, be installed in the electronic installation, this electronic installation comprises touch-screen, this system comprises: module is set, be used to be provided with the key configurations of soft keyboard, this soft keyboard is cut into first and second portion, and first glide direction on the described touch-screen is set corresponding to the first of soft keyboard and second glide direction second portion corresponding to soft keyboard; Display module is used for when described electronic installation is in the button input state, shows the first of soft keyboard on described touch-screen; Detecting module is used for the glide direction of detecting touch action on described touch-screen when described electronic installation is in the button input state; Judge module is used to judge whether this glide direction is first glide direction or second glide direction, if first glide direction or second glide direction, then judge the soft keyboard that shows on the described touch-screen when forward part whether corresponding to this glide direction; And handover module, be used for the soft keyboard that on described touch-screen, shows when forward part and described glide direction not at once, the forward part of working as of soft keyboard is switched to and pairing first of described glide direction or second portion.
A kind of soft keyboard input method, be applied in the electronic installation, this electronic installation comprises touch-screen, this method comprises the steps: to be provided with the key configurations of soft keyboard, this soft keyboard is cut into first and second portion, and first moving direction that described electronic installation is set is corresponding to the first of soft keyboard and second moving direction second portion corresponding to soft keyboard; When described electronic installation is in the button input state, on described touch-screen, shows the first of soft keyboard, and start gravity sensor to detect the moving direction of described electronic installation; Whether the moving direction of judging described electronic installation is first moving direction or second moving direction; If first moving direction or second moving direction, then judge the soft keyboard that shows on the described touch-screen when forward part whether corresponding to this moving direction; And if the soft keyboard that shows not corresponding with the moving direction of described electronic installation when forward part on the described touch-screen switches to the forward part of working as of soft keyboard and pairing first of the moving direction of described electronic installation or second portion.
A kind of soft keyboard input method, be applied in the electronic installation, this electronic installation comprises touch-screen, this method comprises the steps: to be provided with the key configurations of soft keyboard, this soft keyboard is cut into first and second portion, and first glide direction on the described touch-screen is set corresponding to the first of soft keyboard and second glide direction second portion corresponding to soft keyboard; When described electronic installation is in the button input state, on described touch-screen, show the first of soft keyboard, and the glide direction of detecting touch action on described touch-screen; Judge whether this glide direction is first glide direction or second glide direction; If first glide direction or second glide direction, then judge the soft keyboard that shows on the described touch-screen when forward part whether corresponding to this glide direction; And if on the described touch-screen soft keyboard that shows when forward part and described glide direction not at once, the forward part of working as of soft keyboard is switched to and pairing first of described glide direction or second portion.
Compared to prior art, described soft keyboard input system and method can utilize the limited area of touch-screen to amplify each button of soft keyboard, thereby conveniently carry out the data input.
Embodiment
As shown in Figure 1, be the functional block diagram of soft keyboard input system better embodiment of the present invention.Described soft keyboard input system 2 is installed and is operated in the electronic installation 1.Described electronic installation 1 can be mobile phone, personal digital assistant (personaldigital assistant, PDA), electronic installation such as palm PC.
Described electronic installation 1 also comprises processor 10, memory storage 12 and touch-screen 14.Described processor 10 is used to carry out other application program in described soft keyboard input system 2 and the described electronic installation 1, for example: operating system etc.Described memory storage 12 can be built in described electronic installation 1, can also be external in this electronic installation 1, as SM card (Smart Card, smart card), SD card (Secure Digital Card, safe digital card) etc.Described memory storage 12 is used to store Various types of data, for example: short message, mail, associated person information and utilize described soft keyboard input system 2 set with the data of obtaining etc.
In this better embodiment, described soft keyboard input system 2 is used for the soft keyboard of described electronic installation 1 is carried out key configurations, thereby amplifies each button, so that the user can realize the input of information easily by pointer or finger presses button.
In first embodiment of the present invention, described soft keyboard input system 2 mainly comprises module 20, display module 22, gravity sensor 24, judge module 26 and handover module 28 is set.
The described module 20 that is provided with is used to be provided with the key configurations of soft keyboard, and this soft keyboard is cut into first and second portion.The button of conventional keyboard as shown in Figure 2 is provided with synoptic diagram, and keyboard can comprise 26 letter keys, 10 numerical keys, a plurality of function key and a plurality of symbolic keys usually.For example, as shown in Figure 3 for being applied to soft keyboard button of the present invention synoptic diagram is set.In other embodiments, the assortment of keys that comprises of soft keyboard can be provided with according to user's request or use habit.
In the present embodiment, the described module 20 that is provided with can be cut into soft keyboard as shown in Figure 3 left and right two parts or upper and lower two parts.For example,, described soft keyboard can be cut into left and right two parts, wherein, Figure 4 shows that first's button setting of soft keyboard, Figure 5 shows that the second portion button of soft keyboard is provided with synoptic diagram with reference to figure 4, shown in Figure 5.The first of described soft keyboard and second portion comprise a plurality of letter keys, numerical key and function key respectively.Described function key can be, but be not limited to " Caps Lock " key, " Shift " key, space bar, enter key, delete key etc.
The described module 20 that is provided with, first moving direction that also is used to be provided with described electronic installation 1 is corresponding to the first of soft keyboard and second moving direction second portion corresponding to soft keyboard.For example, when described soft keyboard is divided into left and right two parts, be a left side corresponding to the moving direction of first's (being left-half) of soft keyboard, be right corresponding to the moving direction of the second portion (being right half part) of soft keyboard.And for example, when described soft keyboard is divided into upper and lower two parts, corresponding to the moving direction of first's (being the first half) of soft keyboard be on, be down corresponding to the moving direction of the second portion (being the latter half) of soft keyboard.
Described display module 22 is used for when described electronic installation 1 is in the button input state, shows the first of soft keyboard on described touch-screen 14.For example, when utilizing information such as described electronic installation 1 input information, mail as the user, then described electronic installation 1 is in the button input state.
Described gravity sensor (G-sensor) 24 is used for detecting the moving direction of described electronic installation 1 when described electronic installation 1 is in the button input state.The acceleration that electronic installation 1 moved as described in this gravity sensor 24 was confirmed by three (as X, Y, Z axle), and the direction that moves.For example, the hand-holdable described electronic installation 1 of user carries out move left and right to switch the forward part of working as of soft keyboard, also can realize this switching by getting rid of screen.
Described judge module 26, be used to judge whether the moving direction of described electronic installation 1 is first moving direction or second moving direction, if first moving direction or second moving direction, then judge on the described touch-screen 14 soft keyboard that shows when forward part whether corresponding to this moving direction.
Described handover module 28, be used on described touch-screen 14 soft keyboard that shows when the moving direction of forward part and described electronic installation 1 not at once, the forward part of working as of soft keyboard is switched to and pairing first of the moving direction of described electronic installation 1 or second portion.For example, when described handover module 28 is turned right or is mobile down at described electronic installation 1, the first of the soft keyboard of current demonstration is switched to second portion, and when described electronic installation 1 moves toward the left or up, the second portion of the soft keyboard of current demonstration is switched to first.
In second embodiment of the present invention, described soft keyboard input system 2 also comprises detecting module 29.In second embodiment, the user need not to move described electronic installation 1 with the first of realization soft keyboard and the switching of second portion, only need slide at described touch-screen 14 and can realize this switching.
At first, the described module 20 that is provided with is further used for being provided with first glide direction on the described touch-screen 14 corresponding to the first of soft keyboard and second glide direction second portion corresponding to soft keyboard.
When described display module 22 is in the button input state at described electronic installation 1, on described touch-screen 14, show the first of soft keyboard.
Described detecting module 29 is used for the glide direction of detecting touch action on described touch-screen 14 when described electronic installation 1 is in the button input state.For example, the starting point that described detecting module 29 can be by detecting this touch action and the coordinate of terminal point are judged corresponding glide direction.
Described judge module 26 judges whether this glide direction is first glide direction or second glide direction, if first glide direction or second glide direction, then judge on the described touch-screen 14 soft keyboard that shows when forward part whether corresponding to this glide direction.
The soft keyboard that described handover module 28 shows on described touch-screen 14 when forward part and described glide direction not at once, the forward part of working as of soft keyboard is switched to and pairing first of described glide direction or second portion.
As shown in Figure 6, be the process flow diagram of soft keyboard input method better embodiment of the present invention.At first, step S2 describedly is provided with the key configurations that module 20 is provided with soft keyboard in the described electronic installation 1, and this soft keyboard is cut into first and second portion.The described module 20 that is provided with can be cut into soft keyboard as shown in Figure 3 left and right two parts or upper and lower two parts.
Step S4 describedly is provided with first moving direction that module 20 is provided with described electronic installation 1 corresponding to the first of soft keyboard and second moving direction second portion corresponding to soft keyboard.For example, when described soft keyboard is divided into left and right two parts, be a left side corresponding to the moving direction of first's (being left-half) of soft keyboard, be right corresponding to the moving direction of the second portion (being right half part) of soft keyboard.
When described electronic installation 1 was in the button input state, in step S6, described display module 22 showed the first of soft keyboard on described touch-screen 14.
Step S8, described gravity sensor (G-sensor) 24 starts, and detects the moving direction of described electronic installation 1.
Step S10, described handover module 28 switches the first of the soft keyboard that shows on the described touch-screen 14 or second portion with corresponding to this moving direction according to the moving direction of described electronic installation 1, then, process ends.Detailed process at step S10 can be with reference to flow process as shown in Figure 7.
As shown in Figure 7, be the refinement process flow diagram of the step S10 of soft keyboard input method better embodiment of the present invention.Step S100, described judge module 26 judge whether the moving direction of described electronic installation 1 is first moving direction or second moving direction.If not first moving direction or second moving direction, then flow process is back to step S100 to continue to judge next moving direction.
If first moving direction or second moving direction, in step S102, described judge module 26 judge on the described touch-screen 14 soft keyboard that shows when forward part whether corresponding to this moving direction.If the soft keyboard that shows on the described touch-screen 14 when forward part corresponding to this moving direction, then flow process is back to step S100.
If the forward part of working as of the soft keyboard that shows on the described touch-screen 14 does not correspond to this moving direction, in step S104, described handover module 28 switches to the forward part of working as of soft keyboard and pairing first of the moving direction of described electronic installation 1 or second portion.
Step S106, described judge module 26 judge whether that input finishes, and for example, whether this button input state withdraws from.If input does not finish as yet, then flow process is back to step S100.If input finishes, then process ends.
Fig. 6 and Fig. 7 are the switchings that realizes soft keyboard at the judgement of the moving direction of described electronic installation 1, in other embodiments, also can realize this switching by the judgement of the glide direction of user on described touch-screen 14.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to above better embodiment, those of ordinary skill in the art should be appreciated that and can make amendment or be equal to the spirit and scope that replacement should not break away from technical solution of the present invention technical scheme of the present invention.