1. Technical Field
The present disclosure relates to electronic devices with navigation keys and, particularly, to an electronic device with navigation keys and navigation method thereof.
2. Description of the Related Art
Most of electronic devices employ navigation keys to control a cursor up, down, left and right, to activate a selection. Five keys in five different directions usually compose the navigation keys. However, when the area of the navigation keys is too small, it is easy to touch several keys at the same time, and make an error.
Therefore, it is beneficial to provide an electronic device to overcome the limitations described.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of an electronic device with navigation keys and navigation method thereof. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
Referring to
Referring to
The touch sensing unit 11 is configured for determining whether the navigation key module 3 is touched by users, and generating corresponding signals when being touched.
The touch control unit 10 includes a touch area determining module 100 and a key determining module 101. The touch area determining module 100 is configured for determining the coordinates touched according to the signals generated by the touch sensing unit 11, and searching the key-coordinate area relation list 130 stored in the storage unit 13 to determine the coordinate areas including touched coordinates. The key determining module 101 is configured for determining which key is touched according to the key-coordinate area relation list 130 and the coordinate area determined by the touch area determining module 100. The CPU 12 is configured for executing the corresponding key function according to the key touched determined by the key determining module 101.
Generally speaking, traditional keys shown on the touch panel have an unchangeable size, and the size is small. When a user touches a key, an adjacent key may also be touched at the same time. An error may occur.
To solve the problem, in the embodiments, the touch control module 10 further includes an area calculating module 102 and a proportion calculating module 103. The key-coordinate area relation list 130 further defines a corresponding relationship between an “OK” key (not shown) and coordinate areas. In the embodiments, the coordinate areas corresponding to the “OK” key are coordinate areas of two opposite keys. For example, in the embodiment, the coordinate areas corresponding to the “OK” key are the coordinate areas of the up key 30 and the down key 31. When the touch area determining module 100 determines coordinates in the coordinate areas of the up key 30 and the down key 31 are both touched according to the signals generated by the touch sensing unit 11, the key determining module 101 determines the “OK” key is touched, and the CPU 12 executes a function corresponding to the “OK” key. Therefore, the navigation key module 3 is in fact a navigation key module including five-direction keys, and further errors can be avoided.
The “OK” key is actually a combination of two opposite keys, in the exemplary embodiment, the “OK” key is a combination of the up key 30 and down key 31. That is, the up key 30 and the down key 31 corporately define the “OK” key. Therefore, when both the up key 30 and down key 31 are touched at the same time, the CPU 12 executes a confirmation function. When two keys, except the opposite keys, which corporately define the “OK” key, are touched simultaneously, the touch control unit 10 is further configured to distinguish which key is the key the user intended to touch. In the exemplary embodiment, the area calculating module 102 is configured for calculating a touched area of each touched key. The proportion calculating module 103 is configured for calculating a proportion of the touched area relative to the coordinate area of the corresponding touched key.
The key determining module 101 is further configured for comparing the two proportions calculated by the proportion calculating module 103 and determine the intended key of the user according to the comparison result. In the exemplary embodiment, the intended key corresponds to the larger proportion value. The CPU 12 then executes a function corresponding to the intended key.
For example, the touch area determining module 100 determines the touch coordinates A(20, 25) and B(20, 35) are in the area of the up key 30, and the touch coordinates C(15, 20) and D(15, 35) are in the area of the left key 32, the calculating module 102 respectively calculates touch areas S′0 and S′2. The whole area of the up key is S0, and the whole area of the left key is S2. The proportion calculating module 103 respectively divides S0 by S′0 and divides S2 by S′2 to get proportions Y1(S′0/S0) and Y2(S′2/S2). The key determining module 101 compares Y1 and Y2. If Y1>Y2, the key determining module 101 determines the up key 30 is the intended key, and the CPU 12 controls to execute a “up” function; if Y1<Y2, the key determining module 101 determines the left key 32 is the intended key, and the CPU 12 controls to execute a “left” function.
Referring to
In step S400, the electronic device 1 is started, and the touch sensing unit 11 determines whether the navigation key module 3 is touched by a user, if yes, the procedure goes to step S401; otherwise, the procedure goes to step S400.
In step S401, the touch sensing module 11 generates corresponding signals.
In step S402, the touch area determining module 100 determines the coordinates touched according to the signals generated by the touch sensing unit 11, and searches the key-coordinate area relation list 130 stored in the storage unit 13 to determine the coordinate areas including the touched coordinates.
In step S403, the touch area determining module 100 determines whether the touched coordinates are in two coordinate areas, if yes, the procedure goes to step S404; otherwise, the procedure goes to step S409.
In step S404, the touch area determining module 100 determines whether the touched coordinates distributed in the coordinate areas of two opposite keys which cooperatively define an “OK” key, if yes, the procedure goes to step S405, otherwise, the procedure goes to step S406.
In step S405, the key determining module 102 determines the “OK” key is touched. Then the procedure goes to step S410.
In step S406, the area calculating module 102 calculates a touched area of each coordinate area.
In step S407, the proportion calculating module 103 calculates a proportion of the touched area relative to the coordinate area of the corresponding touched key.
In step S408, the key determining module 101 compares the two proportions calculated by the proportion calculating module 103 and determine the intended key of the user according to the comparison result. Then the procedure goes to step S410. In the exemplary embodiment, the intended key corresponds to the larger proportion.
In step S409, the key determining module 101 determines the key touched according to the key-coordinate area relation list 130 and the coordinate area determined by the touch area determining module 100.
In step S410, the CPU 12 executes a function corresponding to the intended key.
It is understood that the present disclosure may be embodied in other forms without departing from the spirit thereof. Thus, the present examples and embodiments are to be considered in all respects as illustrative and not restrictive, and the disclosure is not to be limited to the details given herein.
Number | Date | Country | Kind |
---|---|---|---|
201010277256.9 | Sep 2010 | CN | national |