Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer,, the embodiment of the invention is described in further details below in conjunction with execution mode and accompanying drawing.At this, the exemplary embodiment of the embodiment of the invention and explanation thereof are used to explain the embodiment of the invention, but not as the qualification to the embodiment of the invention.
Embodiment one
Present embodiment provides a kind of terminal, describes below in conjunction with the terminal of accompanying drawing to present embodiment.
Fig. 2 is the schematic diagram of a kind of terminal 200 of providing of the embodiment of the invention, and as shown in Figure 2, terminal 200 comprises a keyboard 201, and keyboard 201 comprises a plurality of buttons 203 and is installed on a plurality of dismountable button cap 205 on the button 203.
In embodiments of the present invention, keyboard 201 can be a numeric keypad, comprise 0 to 9 digital keys, it also can be an alphabetic keypad, the alphabet key that comprises A to Z, each button is formed by button 203 and the button cap 205 that is installed on the button 203, and button 203 can be a push switch, when button cap 205 is pressed, thereby button 203 is switched on and sends a push button signalling.
According to present embodiment, terminal 200 also comprises memory cell 207, detecting unit 209 and updating block 211, wherein:
Memory cell 207 is used to store the mapping relations of described button and keypress function.
In embodiments of the present invention, memory cell 207 is used to store the mapping relations of button 203 and this keypress function.Figure 3 shows that the cross-sectional view of the terminal 300 that one embodiment of the invention provides, it is that example describes that present embodiment is provided with 3 buttons with terminal 300, in other embodiments of the invention, number of keys can be provided with arbitrarily as required, as shown in Figure 3, terminal 300 comprises button 301,303 and 305, and being installed on button cap 307,309 and 311 on button 301,303 and 305 respectively, 307,309 and 311 upper surface is printed on the sign of alphabetical A, B, C respectively on the button cap.Figure 4 shows that button 301,303 that one embodiment of the invention provides and 305 and the mapping relations figure of keypress function, as shown in Figure 4, button 301,303 and 305 is corresponding with button cap 307,309 and 311 respectively, 307, the marking keys on 309 and 311 is respectively A, B, C, is respectively input alphabet " A ", " B ", " C " with button 301,303 and 305 corresponding key functions.
Whether the position that detecting unit 209 is used to detect button cap changes.
In embodiments of the present invention, whether detecting unit 209 position that is used to detect each button cap 205 changes.
Figure 5 shows that the schematic diagram of the detecting unit 209 that one embodiment of the invention provides, as shown in Figure 5, in the present embodiment, terminal is a clamshell phone, detecting unit 209 is positioned on its upturning lid, and is positioned at the keyboard top on the down turnover cover, and button cap 205 outer surfaces are provided with image identification, detecting unit 209 can be the image identification recognition unit, judges by detecting the image identification that is provided with on the button cap 205 whether the position of button cap 205 changes.Wherein, the image identification that is provided with on the button cap 205 can be a letter, numeral, and bar code also can be other literal that visually intuitively can differentiate or figures.Image identification can be arranged at the outer surface of button cap 205, detecting unit 209 can be the camera of terminal, and the image identification in image by intercepting button cap 205 arrangement positions and the detected image on each button cap 205 judges whether the position of button cap 205 changes.
Figure 6 shows that the schematic diagram of the detecting unit 209 that another embodiment of the present invention provides, as shown in Figure 6, in the present embodiment, the inner surface of button cap 205 is provided with magnetic label, detecting unit 209 can be a magnetic label detecting unit, judge by the magnetic label that detects on the button cap 205 whether the position of button cap 205 changes, wherein magnetic label is positioned on button cap 205 and the inner surface that button 203 contacts, the magnetic label detecting unit is positioned on button 203 and the surface that button cap 205 contacts, and it is corresponding with the magnetic label on the button cap 205, magnetic label on each button cap 205 has different magnetic, so whether the magnetic label detecting unit can be judged the position of button cap 205 and change by detecting magnetic label.
Updating block 211 is used for when detecting unit 209 detects described button cap position and changes, and upgrades the mapping relations of described push-button unit and keypress function according to the button cap after changing.
In embodiments of the present invention, the user according to oneself use habit with button A, B, the position of C is adjusted, button C has been put into the left side, button A has been put into middle, button B has been put into the right side, updating block 211 is used for when detecting unit 209 detects button cap 205 positions and changes, upgrade the mapping relations of button 203 and keypress function according to the position of the button cap 205 after changing, Figure 7 shows that terminal 300 button cap position cross-sectional view after changing among Fig. 3 that one embodiment of the invention provides, as shown in Figure 7, the button cap 307 of terminal 300, change has taken place in 309 and 311 installation site, is installed on button 305 respectively, on 301 and 303.Figure 8 shows that button 301,303 that one embodiment of the invention provides and 305 and the mapping relations figure of keypress function, as shown in Figure 8, button 301,303 and 305 is corresponding with button cap 309,311 and 307 respectively, be respectively B, C, A with the marking keys on button 301,303 and the 305 corresponding key caps, updating block 211 will be respectively input alphabet " B ", " C ", " A " with button 301,303 and 305 corresponding key functions according to the mapping relations of position renewal button 203 with the keypress function of new button cap 205.
In embodiments of the present invention, memory cell 207 can also comprise that one is provided with module, is used for being provided with and each button corresponding key function, is set to functions of shortcut key combination as keypress function that can certain button; Or be set to sky such as the keypress function of certain button, make it possible to achieve the effect of this button of forbidding.
The embodiment of the invention by changing button cap the installation site and upgrade push-button unit and the method for keypress function mapping relations, overcome terminal push fixed-site in the prior art, the user can't change the problem of key arrangement, makes the user that the layout of keyboard can be set according to the needs of oneself.
Embodiment two
The embodiment of the invention also provides a kind of press keys setup method of terminal, below in conjunction with accompanying drawing present embodiment is elaborated.
Fig. 9 is the press keys setup method flow chart of a kind of terminal of providing of the embodiment of the invention, and as shown in Figure 9, described method comprises:
Step S901 sets up the mapping relations of terminal push and keypress function;
In embodiments of the present invention, terminal can be embodiment one a described terminal 200, comprises a keyboard, and keyboard comprises a plurality of buttons and a plurality of dismountable button cap that is installed on the button, and terminal is set up the mapping relations of button and keypress function.
In embodiments of the present invention, can be provided with and described button corresponding key function, be set to functions of shortcut key combination as keypress function that can certain button; Or be set to sky such as the keypress function of certain button, make it possible to achieve the effect of this button of forbidding.
Whether step S903 detects the button cap that is installed on the described button and changes;
In embodiments of the present invention, terminal can judge whether the button cap on the button changes by the magnetic label or the image identification that detect on the button cap.
Step S905 when detecting described button cap and change, upgrades the mapping relations of described button and keypress function according to the button cap after changing.
In embodiments of the present invention, after the user had carried out the position of button according to oneself needs adjusting, terminal detected described button cap position and changes, and upgraded the mapping relations of each button and keypress function immediately according to the button cap arrangement position after changing.
The embodiment of the invention by changing button cap the installation site and upgrade button and the method for keypress function mapping relations, overcome terminal push fixed-site in the prior art, the user can't change the problem of key arrangement, makes the user that the layout of keyboard can be set according to the needs of oneself.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is the specific embodiment of the present invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.