CN107390977A - Button operation method, apparatus and storage medium - Google Patents
Button operation method, apparatus and storage medium Download PDFInfo
- Publication number
- CN107390977A CN107390977A CN201710622040.3A CN201710622040A CN107390977A CN 107390977 A CN107390977 A CN 107390977A CN 201710622040 A CN201710622040 A CN 201710622040A CN 107390977 A CN107390977 A CN 107390977A
- Authority
- CN
- China
- Prior art keywords
- navigation key
- terminal
- key
- virtual navigation
- virtual
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000004590 computer program Methods 0.000 claims description 3
- 230000004044 response Effects 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 230000005236 sound signal Effects 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Input From Keyboards Or The Like (AREA)
Abstract
The invention discloses a kind of button operation method, apparatus and storage medium, belong to field of terminal technology.Methods described includes:When terminal is in transverse screen display pattern, virtual navigation keys are hidden;When detecting the operation of display navigation keys, show the virtual navigation keys, to be operated based on the virtual navigation keys, wherein, the virtual navigation keys are terminal configuration, or the physical navigation button of configuration is set into predeterminated position generation invalid and in display screen for the terminal.The virtual navigation keys that the present invention is configured or generated by concealed terminal, user's false touch can be avoided, is shown again when detecting the operation of display navigation keys, user can be facilitated to timely use navigation keys, so as to simplify the operation that user uses navigation keys, button operation efficiency is improved.
Description
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a key operation method, a key operation device and a storage medium.
Background
In order to facilitate the operation of the user, the terminal is usually configured with navigation keys at the bottom of the display screen, where the navigation keys include a Menu key, a Home key, a Back key, and the like, and some terminals are configured with physical navigation keys and some terminals are configured with virtual navigation keys. However, in practical applications, the user often touches the navigation key by mistake, for example, when the user plays a game or watches a video in the landscape display mode, since the navigation key is located at a position where the user holds the terminal, the user is very likely to touch the navigation key by mistake, which may cause interruption of the current display content and affect the user experience.
In order to prevent the user from touching the navigation key by mistake, a key operation method is proposed in the related art, by which the navigation key can be forcibly disabled. That is, a navigation key disabling mode is provided in the terminal, and after the navigation key disabling mode is activated, when it is detected that the terminal is switched to the landscape display mode, the navigation key of the terminal is set to be invalid, so that the navigation key does not respond even if the user erroneously touches the navigation key.
However, in the above method, when the user wants to use the navigation key, the user needs to enter the setting menu to close the navigation key disable mode, and then reopens the previous display content to be used successfully, which is tedious for the user to operate and low in key operation efficiency.
Disclosure of Invention
In order to solve the problems of complicated user operation and low key operation efficiency in the related art, embodiments of the present invention provide a key operation method, device and storage medium. The technical scheme is as follows:
in a first aspect, a method for operating a key is provided, the method including:
hiding the virtual navigation key when the terminal is in a horizontal screen display mode;
the virtual navigation key is configured for the terminal, or the configured physical navigation key is set to be invalid for the terminal and is generated at a preset position of a display screen;
and when the operation of displaying the navigation key is detected, displaying the virtual navigation key so as to operate based on the virtual navigation key.
Optionally, hiding the virtual navigation key when the terminal is in the landscape display mode includes:
when the terminal is in a horizontal screen display mode and the terminal is configured with a physical navigation key, setting the physical navigation key as invalid;
generating and hiding the virtual navigation key at a preset position of a display screen of the terminal;
correspondingly, the displaying the virtual navigation key comprises:
and displaying the virtual navigation key at a preset position of the display screen.
Optionally, before the terminal is in the landscape display mode, the method further includes:
calling a designated interface of a system, and acquiring screen state information of the terminal through the designated interface;
and when the screen state information indicates that the terminal is switched to a horizontal screen display mode, determining that the terminal is in the horizontal screen display mode.
Optionally, before the operation of displaying the navigation key is detected, the method further includes:
when the triggering operation of an appointed physical key is detected, determining that the operation of displaying a navigation key is detected, wherein the appointed physical key comprises a physical navigation key configured by the terminal; or,
when an up-stroke operation with respect to the bottom of the display screen is detected, it is determined that an operation of displaying a navigation key is detected.
Optionally, after displaying the virtual navigation key, the method further includes:
and hiding the virtual navigation key when the triggering operation of the virtual navigation key is not detected within the preset time after the virtual navigation key is displayed.
Optionally, the method further comprises:
responding to the trigger operation when the trigger operation of the virtual navigation key is detected within the preset time after the virtual navigation key is displayed;
hiding the virtual navigation key when the triggering operation of the virtual navigation key is not detected within the preset time after the triggering operation is responded.
Optionally, the method further comprises:
and when the terminal is detected to be switched from the horizontal screen display mode to the vertical screen display mode and is configured with a physical navigation key, deleting the virtual navigation key generated at the preset position of the display screen and setting the physical navigation key to be effective.
In a second aspect, there is provided a key operation device, the device comprising:
the first hiding module is used for hiding the virtual navigation key when the terminal is in a horizontal screen display mode;
the virtual navigation key is configured for the terminal, or the configured physical navigation key is set to be invalid for the terminal and is generated at a preset position of a display screen;
and the display module is used for displaying the virtual navigation key when the operation of displaying the navigation key is detected so as to operate based on the virtual navigation key.
Optionally, the hiding module comprises:
the terminal comprises a setting unit, a display unit and a display unit, wherein the setting unit is used for setting a physical navigation key to be invalid when the terminal is in a horizontal screen display mode and the terminal is configured with the physical navigation key;
the generating unit is used for generating and hiding the virtual navigation key at a preset position of a display screen of the terminal;
accordingly, the display module is configured to:
and displaying the virtual navigation key at a preset position of the display screen.
Optionally, the apparatus further comprises:
the calling module is used for calling a designated interface of the system and acquiring the screen state information of the terminal through the designated interface;
the first determining module is configured to determine that the terminal is in the landscape display mode when the screen state information indicates that the terminal is switched to the landscape display mode.
Optionally, the apparatus further comprises:
the second determination module is used for determining that the operation of displaying the navigation keys is detected when the triggering operation of the appointed physical keys is detected, wherein the appointed physical keys comprise the physical navigation keys configured by the terminal; or,
the second determination module is used for determining that the operation of displaying the navigation key is detected when the stroke-up operation relative to the bottom of the display screen is detected.
Optionally, the apparatus further comprises:
and the second hiding module is used for hiding the virtual navigation key when the triggering operation of the virtual navigation key is not detected within the preset time after the virtual navigation key is displayed.
Optionally, the apparatus further comprises:
the response module is used for responding to the trigger operation when the trigger operation on the virtual navigation key is detected within the preset time length after the virtual navigation key is displayed;
and the third hiding module is used for hiding the virtual navigation key when the triggering operation of the virtual navigation key is not detected within the preset time after the triggering operation is responded.
Optionally, the apparatus further comprises:
and the switching module is used for deleting the virtual navigation key generated at the preset position of the display screen and setting the physical navigation key as effective when the terminal is detected to be switched from the horizontal screen display mode to the vertical screen display mode and the terminal is configured with the physical navigation key.
In a third aspect, there is provided a key operation device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor is configured to perform the steps of any of the key operation methods described in the first aspect.
In a fourth aspect, there is provided a computer readable storage medium having stored therein instructions which, when run on a computer, cause the computer to perform any of the key operation methods as described in the first aspect above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when the terminal is in the horizontal screen display mode, the virtual navigation key configured by the terminal is hidden, or the terminal sets the configured physical navigation key to be invalid and generates the virtual navigation key at the preset position of the display screen and then hides the virtual navigation key, so that the error touch of a user can be avoided, and the virtual navigation key is displayed immediately when the operation of displaying the navigation key is detected so as to be convenient for the user to operate, thereby facilitating the user to use the navigation key on the basis of avoiding the error touch of the user, simplifying the operation of the user and improving the key operation efficiency.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1A is a flowchart of a key operation method according to an embodiment of the present invention;
fig. 1B is a schematic diagram of a horizontal screen display interface of a terminal according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for operating keys according to an embodiment of the present invention;
fig. 3A is a schematic structural diagram of a key operation device according to an embodiment of the present invention;
fig. 3B is a schematic structural diagram of a first hidden module 301 according to an embodiment of the present invention;
fig. 3C is a schematic structural diagram of another key operation device according to an embodiment of the present invention;
fig. 3D is a schematic structural diagram of another key operation device according to an embodiment of the present invention;
fig. 3E is a schematic structural diagram of another key operation device according to an embodiment of the present invention;
fig. 3F is a schematic structural diagram of another key operation device according to an embodiment of the present invention;
fig. 3G is a schematic structural diagram of another key operation device according to an embodiment of the present invention;
fig. 4 is a diagram illustrating a result of a terminal 400 according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, first, an application scenario provided by the embodiments of the present invention is described.
The embodiment of the invention is applied to a scene that a user uses the terminal in the landscape display mode, for example, when the user uses the terminal to watch videos or play games, the terminal is preferably switched to the landscape display mode, or some terminals can be automatically switched to the landscape display mode when detecting the operation of playing the videos or the games, so that the user can watch or operate the video or the games conveniently. However, since the navigation key is usually installed at the bottom of the terminal, after the terminal is switched to the landscape display mode, the user may easily touch the navigation key at the bottom by mistake, and thus the terminal is triggered to interrupt the current display content, which affects the user experience. Therefore, it is also desirable to provide a key operation method to prevent the user from touching the navigation key by mistake and to facilitate the user to use the navigation key.
Of course, besides the horizontal screen display mode, the embodiment of the present invention may also be applied to the full screen display mode or other terminal scenarios that may easily cause the user to touch the navigation key by mistake, which is not limited in the embodiment of the present invention.
Next, an implementation environment of the embodiment of the present invention will be described.
The embodiment of the invention is applied to the terminal, and the terminal can be a mobile phone or a tablet personal computer and other terminals with a horizontal and vertical screen display mode. And the terminal is configured with a navigation key, and the specifically configured navigation key can be a physical navigation key or a virtual navigation key. For example, the terminal may configure an entity Home key, or configure three entity keys, namely an entity Menu key, an entity Home key, and an entity Back key, or configure a virtual Home key, or configure a virtual navigation key bar, where the virtual navigation key bar includes three virtual keys, namely a virtual Menu key, a virtual Home key, and a virtual Back key, below the display screen. Of course, in practical applications, the navigation key may also be in other implementation forms, which is not limited in the embodiment of the present invention.
After describing application scenarios and implementation environments of the embodiments of the present invention, the key operation method provided by the embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1A is a flowchart of a key operation method according to an embodiment of the present invention, where an execution subject of the method is a terminal. Referring to fig. 1A, the method includes the steps of:
step 101: and when the terminal is in a horizontal screen display mode, hiding the virtual navigation key.
The step of hiding the virtual navigation key means that the virtual navigation key is not displayed and the navigation function of the virtual navigation key is closed, so that a user cannot see the virtual navigation key and the virtual navigation key cannot respond to the operation of the user. By hiding the virtual navigation key, the user can be prevented from touching by mistake.
The virtual navigation key is configured for the terminal, or the configured physical navigation key is set to be invalid for the terminal and is generated at a preset position of a display screen. That is, according to the difference of the navigation keys configured in the terminal, hiding the virtual navigation key when the terminal is in the landscape display mode may include the following two implementation manners:
the first implementation mode comprises the following steps: if the navigation key configured by the terminal is a virtual navigation key, the virtual navigation key displayed by the terminal is directly hidden when the terminal is in a horizontal screen display mode.
When the terminal configures the virtual navigation key, the terminal usually displays the virtual navigation key which can be triggered by the user, such as a highlighted virtual navigation key, below the display screen in the landscape display mode.
The second implementation mode comprises the following steps: if the navigation key configured by the terminal is a physical navigation key, when the terminal is in a horizontal screen display mode, the physical navigation key is set to be invalid, a virtual navigation key is generated at a preset position of a display screen of the terminal, and then the generated virtual navigation key is hidden.
The physical navigation key is set to be invalid, namely the navigation function of the physical navigation key is closed, so that the physical navigation key cannot respond to triggering operations such as pressing of a user, and the like, and the user is prevented from mistakenly touching the physical navigation key.
The preset position is a preset position for generating the virtual navigation key, and the preset position may be set by a default of the terminal or by a user, which is not limited in the embodiments of the present invention. For example, the preset position may be the bottom of the display screen that the user is accustomed to using, or may be other positions such as the top of the display screen.
For example, the generated virtual navigation key may be a virtual Home key or a virtual navigation key bar, and the virtual navigation key bar includes three virtual keys, namely a virtual Menu key, a virtual Home key, and a virtual Back key.
For example, referring to fig. 1B, if the terminal configuration navigation key is a physical navigation key and the physical navigation key is a convex arc Home key at the bottom of the terminal, after the terminal switches to the game interface in the landscape display mode, the Home key may be set to be invalid, and a virtual navigation key bar 10 is generated at the bottom of the display screen, where the virtual navigation key bar 10 includes a virtual Menu key 11, a virtual Home key 12, and a virtual Back key 13, and then the generated virtual navigation key bar 10 may be hidden.
The virtual navigation key is generated at the preset position of the display screen, so that the user can conveniently use the virtual navigation key subsequently, and the generated virtual navigation key is hidden, so that the user can be prevented from touching the virtual navigation key by mistake.
Further, in order to implement the present invention, the terminal also needs to be able to determine whether the terminal is currently in the landscape display mode. In a possible implementation manner, the terminal may call a designated interface of the system, and obtain the screen state information of the terminal through the designated interface; and when the screen state information indicates that the terminal is switched to the landscape display mode, determining that the terminal is in the landscape display mode.
The designated interface is a public interface provided by the terminal system and capable of indicating screen state information, for example, a Sensor Manager interface of the system. Through the appointed interface, the terminal can monitor the switching of the horizontal and vertical screen display modes, and when the terminal is monitored to be switched to the horizontal screen display mode, the terminal can be determined to be in the horizontal screen display mode, and the virtual navigation key is hidden.
Step 102: and when the operation of displaying the navigation key is detected, displaying the virtual navigation key so as to operate based on the virtual navigation key.
That is, after the virtual navigation key is hidden, the user can display the hidden navigation key only by performing the operation of displaying the navigation key, and after the virtual navigation key is displayed, the user can conveniently use the virtual navigation key, so that the key operation efficiency is high.
Therefore, the problems that in the related art, if a user wants to use the navigation key in the navigation key disabling mode, the user must enter the setting menu to close the navigation key disabling mode and then reopen the previous display content to be used successfully, so that the user operation is complicated and the key operation efficiency is low are solved.
Specifically, when the virtual navigation key is a virtual navigation key configured for the terminal itself, the virtual navigation key may be displayed at a default configuration position of the virtual navigation key, and when the virtual navigation key is a virtual navigation key generated by the terminal, the virtual navigation key may be displayed at a preset position of the display screen.
The operation of displaying the navigation key can be triggered by a user and is used for indicating that the user has the intention of using the navigation key, so that when the operation of displaying the navigation key is detected, the virtual navigation key can be displayed for the user to use. In practical applications, the operation of displaying the navigation key may be a trigger operation or a swipe operation on a physical key, and the operation of displaying the navigation key is not specifically limited in the embodiment of the present invention.
Specifically, detecting the operation of displaying the navigation key may include the following two implementation manners:
the first implementation mode comprises the following steps: when the triggering operation of the appointed physical key is detected, the operation of displaying the navigation key is determined to be detected, wherein the appointed physical key comprises the physical navigation key configured by the terminal.
The designated physical key may be a physical navigation key, a volume key, an on-off key, or the like configured for the terminal, or may be other physical keys, which is not limited in the embodiment of the present invention. The trigger operation on the designated physical key may be a touch operation or a press operation.
Further, in order to ensure accuracy, the terminal may further determine that the operation of displaying the navigation key is detected when N consecutive trigger operations on the designated physical key are detected. That is, only when detecting N consecutive trigger operations on the designated physical key, it is determined that the user has an intention to use the navigation key, and the virtual navigation key is displayed for the user to use, so that the user can be prevented from mistakenly touching the designated physical navigation key.
The N is a positive integer, and the N may have a terminal default setting or may be set by a user, which is not limited in the embodiment of the present invention. For example, N may be 2, 3, or 4, etc.
The second implementation mode comprises the following steps: when a stroke-up operation with respect to the bottom of the display screen is detected, it is determined that an operation of displaying a navigation key is detected.
For example, when the user wants to use the virtual navigation key during playing a game, the user can slide the finger upward from the bottom of the display screen to display the hidden virtual navigation key.
Of course, the operation of the display navigation key may also be a downward stroke operation or other stroke operations relative to the top of the display screen, which is not limited in the embodiment of the present invention.
Step 103: and hiding the virtual navigation key when the triggering operation of the virtual navigation key is not detected within the preset time after the virtual navigation key is displayed.
The preset time length is the maximum display time length which can be maintained by the virtual navigation key. If the user uses the virtual navigation key within the preset time length, the terminal responds to the use of the user and counts time again, and if the user does not use the navigation key within the preset time length, the virtual navigation key can be hidden again to avoid the user from touching the virtual navigation key by mistake.
The preset duration may be set by a default of the terminal or by a user, which is not limited in the embodiments of the present invention. For example, the preset time period may be 2s, 3s, 4s, or 5 s.
In practical application, taking the preset time length as 5s as an example, when the virtual navigation key is displayed, the terminal may start timing through a timer, and when the timing time length reaches 5s, if the trigger operation on the virtual navigation key is not detected, the terminal may hide the virtual navigation key.
Step 104: and responding to the trigger operation when the trigger operation of the virtual navigation key is detected within the preset time after the virtual navigation key is displayed.
Wherein, responding to the trigger operation refers to executing a navigation function corresponding to the trigger operation. For example, if the trigger operation on the virtual Home key is detected within the preset time length, the main interface of the terminal can be displayed.
And after responding to the triggering operation, the terminal counts time again so as to judge whether the triggering operation of the virtual navigation key is detected within a preset time length after responding to the triggering operation.
Step 105: and hiding the virtual navigation key when the triggering operation of the virtual navigation key is not detected within the preset time after the triggering operation is responded.
After hiding the virtual navigation key, if the display operation of the navigation key is detected again, the virtual navigation key is displayed again, and step 103 and step 105 are executed in a loop.
Further, when the triggering operation of the virtual navigation key is detected within the preset time after the triggering operation is responded, the triggering operation is also responded, and the time is counted again.
Further, when it is detected that the terminal is switched from the horizontal screen display mode to the vertical screen display mode, normal navigation key operation can be resumed, which specifically includes the following two implementation manners:
the first implementation mode comprises the following steps: and when the terminal is detected to be switched from the horizontal screen display mode to the vertical screen display mode and the terminal is configured with the virtual navigation key, restoring the default configuration of the virtual navigation key.
That is, when the navigation key configured in the terminal is the virtual navigation key, the virtual navigation key can be normally displayed without hiding the virtual navigation key after the terminal is switched to the vertical screen display mode.
The second implementation mode comprises the following steps: and when the terminal is detected to be switched from the horizontal screen display mode to the vertical screen display mode and is configured with a physical navigation key, deleting the virtual navigation key generated at the preset position of the display screen, and setting the physical navigation key as effective.
That is, when the navigation key configured in the terminal is the physical navigation key, after the display mode is switched to the vertical screen display mode, the virtual navigation key generated before can be deleted, and the default setting of the physical navigation key is recovered, so that the physical navigation key can normally respond to the triggering operation of the user.
In the embodiment of the invention, when the terminal is in the horizontal screen display mode, the virtual navigation key configured by the terminal is hidden, or the terminal sets the configured physical navigation key to be invalid and generates the virtual navigation key at the preset position of the display screen and then hides the virtual navigation key, so that the error touch of a user can be avoided, and the virtual navigation key is displayed immediately when the operation of displaying the navigation key is detected so as to be convenient for the user to operate, thereby facilitating the user to use the navigation key on the basis of avoiding the error touch of the user, simplifying the operation of the user and improving the key operation efficiency.
For convenience of understanding, the following will describe in detail a key operation method provided by an embodiment of the present invention with reference to fig. 2 by taking a terminal as an example of configuring a physical navigation key.
Fig. 2 is a flowchart of another key operation method according to an embodiment of the present invention, where an execution subject of the method is a terminal. Referring to fig. 2, the method comprises the steps of:
step 201: and when the terminal is in a horizontal screen display mode and the terminal is provided with a physical navigation key, setting the physical navigation key to be invalid.
Step 202: and generating and hiding the virtual navigation key at a preset position of a display screen of the terminal.
Step 203: and when the operation of displaying the navigation key is detected, displaying the virtual navigation key at the preset position of the display screen.
Step 204: and hiding the virtual navigation key when the triggering operation of the virtual navigation key is not detected within the preset time after the virtual navigation key is displayed.
Step 205: and responding to the trigger operation when the trigger operation of the virtual navigation key is detected within the preset time after the virtual navigation key is displayed.
Step 206: and hiding the virtual navigation key when the triggering operation of the virtual navigation key is not detected within the preset time after the triggering operation is responded.
Step 207: and when the terminal is detected to be switched from the horizontal screen display mode to the vertical screen display mode, deleting the virtual navigation key generated at the preset position of the display screen, and setting the physical navigation key as effective.
The specific implementation manner of steps 201-207 may refer to the related description of the embodiment shown in fig. 1A, and the embodiment of the present invention is not described herein again.
In the embodiment of the invention, when the terminal is in the horizontal screen display mode, the virtual navigation key configured by the terminal is hidden, or the terminal sets the configured physical navigation key to be invalid and generates the virtual navigation key at the preset position of the display screen and then hides the virtual navigation key, so that the error touch of a user can be avoided, and the virtual navigation key is displayed immediately when the operation of displaying the navigation key is detected so as to be convenient for the user to operate, thereby facilitating the user to use the navigation key on the basis of avoiding the error touch of the user, simplifying the operation of the user and improving the key operation efficiency.
After the key operation method according to the embodiment of the present invention is described in detail, the structure of the key operation device according to the embodiment of the present invention will be described in detail.
Fig. 3A is a schematic structural diagram of a key operation device according to an embodiment of the present invention, and referring to fig. 3A, the key operation device includes:
a first hiding module 301, configured to hide the virtual navigation key when the terminal is in a landscape display mode;
the virtual navigation key is configured for the terminal, or the configured physical navigation key is set to be invalid for the terminal and is generated at a preset position of a display screen;
the display module 302 is configured to display the virtual navigation key when detecting an operation of displaying the navigation key, so as to perform an operation based on the virtual navigation key.
Optionally, referring to fig. 3B, the first hiding module 301 includes:
the setting unit 3011 is configured to set the physical navigation key to be invalid when the terminal is in the landscape display mode and the terminal is configured with the physical navigation key;
a generating unit 3012, configured to generate and hide the virtual navigation key at a preset position on a display screen of the terminal;
accordingly, the display module 302 is configured to:
and displaying the virtual navigation key at a preset position of the display screen.
Optionally, referring to fig. 3C, the apparatus further comprises:
a calling module 303, configured to call a designated interface of the system, and obtain screen state information of the terminal through the designated interface;
a first determining module 304, configured to determine that the terminal is in the landscape display mode when the screen status information indicates that the terminal is switched to the landscape display mode.
Optionally, referring to fig. 3D, the apparatus further comprises:
a second determining module 305, configured to determine that an operation of displaying navigation keys is detected when a triggering operation on a specified physical key is detected, where the specified physical key includes a physical navigation key configured by the terminal; or,
the second determining module 305 is configured to determine that an operation of displaying a navigation key is detected when an up-stroke operation with respect to the bottom of the display screen is detected.
Optionally, referring to fig. 3E, the apparatus further comprises:
the second hiding module 306 is configured to hide the virtual navigation key when the trigger operation on the virtual navigation key is not detected within a preset time period after the virtual navigation key is displayed.
Optionally, referring to fig. 3F, the apparatus further comprises:
a response module 307, configured to respond to the trigger operation when the trigger operation on the virtual navigation key is detected within the preset time period after the virtual navigation key is displayed;
a third hiding module 308, configured to hide the virtual navigation key when the trigger operation on the virtual navigation key is not detected within the preset time period after the trigger operation is responded.
Optionally, referring to fig. 3G, the apparatus further comprises:
the switching module 309 is configured to delete the virtual navigation key generated at the preset position of the display screen and set the physical navigation key as valid when it is detected that the terminal is switched from the landscape display mode to the portrait display mode and the terminal is configured with the physical navigation key.
In the embodiment of the invention, when the terminal is in the horizontal screen display mode, the virtual navigation key configured by the terminal is hidden, or the terminal sets the configured physical navigation key to be invalid and generates the virtual navigation key at the preset position of the display screen and then hides the virtual navigation key, so that the error touch of a user can be avoided, and the virtual navigation key is displayed immediately when the operation of displaying the navigation key is detected so as to be convenient for the user to operate, thereby facilitating the user to use the navigation key on the basis of avoiding the error touch of the user, simplifying the operation of the user and improving the key operation efficiency.
It should be noted that: in the key operation device provided in the above embodiment, when performing a key operation, only the division of the above functional modules is taken as an example, and in practical applications, the above function allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the key operation device and the key operation method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 4 is a diagram illustrating a result of a terminal 400 according to an embodiment of the present invention. For example, the terminal 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 4, the terminal 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the terminal 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the terminal 400. Examples of such data include instructions for any application or method operating on the terminal 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 406 provide power to the various components of the terminal 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the terminal 400.
The multimedia component 408 comprises a screen providing an output interface between the terminal 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 400 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the terminal 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the terminal 400. For example, the sensor assembly 414 can detect an open/closed state of the terminal 400, relative positioning of components, such as a display and keypad of the terminal 400, the sensor assembly 414 can also detect a change in position of the terminal 400 or a component of the terminal 400, the presence or absence of user contact with the terminal 400, orientation or acceleration/deceleration of the terminal 400, and a change in temperature of the terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communications between the terminal 400 and other devices in a wired or wireless manner. The terminal 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the key operation methods provided by the embodiments shown in fig. 1A or fig. 2 described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the terminal 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In another embodiment, a key operation device is further provided, where the key operation device includes a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor is configured to execute the key operation method provided in the embodiment of fig. 1A or fig. 2.
In another embodiment, a computer-readable storage medium is further provided, which stores instructions that, when executed on a computer, cause the computer to perform the key operation method provided in the above-mentioned fig. 1A or fig. 2 embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (16)
1. A key operation method, the method comprising:
hiding the virtual navigation key when the terminal is in a horizontal screen display mode;
the virtual navigation key is configured for the terminal, or the configured physical navigation key is set to be invalid for the terminal and is generated at a preset position of a display screen;
and when the operation of displaying the navigation key is detected, displaying the virtual navigation key so as to operate based on the virtual navigation key.
2. The method of claim 1, wherein hiding the virtual navigation key when the terminal is in landscape display mode comprises:
when the terminal is in a horizontal screen display mode and the terminal is configured with a physical navigation key, setting the physical navigation key as invalid;
generating and hiding the virtual navigation key at a preset position of a display screen of the terminal;
correspondingly, the displaying the virtual navigation key comprises:
and displaying the virtual navigation key at a preset position of the display screen.
3. The method of claim 1, wherein before the terminal is in landscape display mode, further comprising:
calling a designated interface of a system, and acquiring screen state information of the terminal through the designated interface;
and when the screen state information indicates that the terminal is switched to a horizontal screen display mode, determining that the terminal is in the horizontal screen display mode.
4. The method of claim 1, wherein prior to detecting the operation of displaying the navigation key, further comprising:
when the triggering operation of an appointed physical key is detected, determining that the operation of displaying a navigation key is detected, wherein the appointed physical key comprises a physical navigation key configured by the terminal; or,
when an up-stroke operation with respect to the bottom of the display screen is detected, it is determined that an operation of displaying a navigation key is detected.
5. The method of claim 1, wherein after displaying the virtual navigation key, further comprising:
and hiding the virtual navigation key when the triggering operation of the virtual navigation key is not detected within the preset time after the virtual navigation key is displayed.
6. The method of claim 5, wherein the method further comprises:
responding to the trigger operation when the trigger operation of the virtual navigation key is detected within the preset time after the virtual navigation key is displayed;
hiding the virtual navigation key when the triggering operation of the virtual navigation key is not detected within the preset time after the triggering operation is responded.
7. The method of any of claims 1-6, further comprising:
and when the terminal is detected to be switched from the horizontal screen display mode to the vertical screen display mode and is configured with a physical navigation key, deleting the virtual navigation key generated at the preset position of the display screen and setting the physical navigation key to be effective.
8. A key operation device, characterized in that the device comprises:
the first hiding module is used for hiding the virtual navigation key when the terminal is in a horizontal screen display mode;
the virtual navigation key is configured for the terminal, or the configured physical navigation key is set to be invalid for the terminal and is generated at a preset position of a display screen;
and the display module is used for displaying the virtual navigation key when the operation of displaying the navigation key is detected so as to operate based on the virtual navigation key.
9. The apparatus of claim 8, wherein the first concealment module comprises:
the terminal comprises a setting unit, a display unit and a display unit, wherein the setting unit is used for setting a physical navigation key to be invalid when the terminal is in a horizontal screen display mode and the terminal is configured with the physical navigation key;
the generating unit is used for generating and hiding the virtual navigation key at a preset position of a display screen of the terminal;
accordingly, the display module is configured to:
and displaying the virtual navigation key at a preset position of the display screen.
10. The apparatus of claim 8, wherein the apparatus further comprises:
the calling module is used for calling a designated interface of the system and acquiring the screen state information of the terminal through the designated interface;
the first determining module is configured to determine that the terminal is in the landscape display mode when the screen state information indicates that the terminal is switched to the landscape display mode.
11. The apparatus of claim 8, wherein the apparatus further comprises:
the second determination module is used for determining that the operation of displaying the navigation keys is detected when the triggering operation of the appointed physical keys is detected, wherein the appointed physical keys comprise the physical navigation keys configured by the terminal; or,
the second determination module is used for determining that the operation of displaying the navigation key is detected when the stroke-up operation relative to the bottom of the display screen is detected.
12. The apparatus of claim 8, wherein the apparatus further comprises:
and the second hiding module is used for hiding the virtual navigation key when the triggering operation of the virtual navigation key is not detected within the preset time after the virtual navigation key is displayed.
13. The apparatus of claim 12, wherein the apparatus further comprises:
the response module is used for responding to the trigger operation when the trigger operation on the virtual navigation key is detected within the preset time length after the virtual navigation key is displayed;
and the third hiding module is used for hiding the virtual navigation key when the triggering operation of the virtual navigation key is not detected within the preset time after the triggering operation is responded.
14. The apparatus of any of claims 8-13, wherein the apparatus further comprises:
and the switching module is used for deleting the virtual navigation key generated at the preset position of the display screen and setting the physical navigation key as effective when the terminal is detected to be switched from the horizontal screen display mode to the vertical screen display mode and the terminal is configured with the physical navigation key.
15. A key operation device comprising a memory, a processor and a computer program stored on said memory and executable on said processor, characterized in that said processor is configured to perform the steps of any of the methods of claims 1-7.
16. A computer-readable storage medium having stored therein instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710622040.3A CN107390977A (en) | 2017-07-27 | 2017-07-27 | Button operation method, apparatus and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710622040.3A CN107390977A (en) | 2017-07-27 | 2017-07-27 | Button operation method, apparatus and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107390977A true CN107390977A (en) | 2017-11-24 |
Family
ID=60341743
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710622040.3A Pending CN107390977A (en) | 2017-07-27 | 2017-07-27 | Button operation method, apparatus and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107390977A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108536368A (en) * | 2018-03-30 | 2018-09-14 | 努比亚技术有限公司 | Button application method, terminal and computer readable storage medium |
CN108595089A (en) * | 2018-04-13 | 2018-09-28 | 维沃移动通信有限公司 | A kind of virtual key control method and mobile terminal |
CN108762639A (en) * | 2018-05-28 | 2018-11-06 | 努比亚技术有限公司 | A kind of control method of physical button, mobile terminal and storage medium |
CN109002438A (en) * | 2018-07-02 | 2018-12-14 | 北京分音塔科技有限公司 | False-touch prevention method, apparatus and translator |
CN109634503A (en) * | 2018-07-26 | 2019-04-16 | 维沃移动通信有限公司 | A kind of operation response method and mobile terminal |
CN109782971A (en) * | 2018-12-28 | 2019-05-21 | 惠州Tcl移动通信有限公司 | Intelligent terminal and its screen display method, the device with store function |
CN110475021A (en) * | 2019-08-16 | 2019-11-19 | 深圳传音控股股份有限公司 | Control method, mobile terminal and the computer storage medium of mobile terminal |
WO2022088790A1 (en) * | 2020-10-29 | 2022-05-05 | 深圳市万普拉斯科技有限公司 | False trigger prevention method, readable storage medium, and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103399703A (en) * | 2012-07-16 | 2013-11-20 | 华为终端有限公司 | User equipment system bar control method and user equipment |
CN103795869A (en) * | 2014-03-07 | 2014-05-14 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104156171A (en) * | 2014-08-29 | 2014-11-19 | 广东欧珀移动通信有限公司 | Method and device for preventing touch key misoperations in landscape screen state of mobile terminal |
CN104461282A (en) * | 2014-11-10 | 2015-03-25 | 小米科技有限责任公司 | Key processing method, key processing device and key processing equipment |
CN106095310A (en) * | 2016-06-08 | 2016-11-09 | 维沃移动通信有限公司 | The control method of a kind of SOT state of termination and terminal |
-
2017
- 2017-07-27 CN CN201710622040.3A patent/CN107390977A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103399703A (en) * | 2012-07-16 | 2013-11-20 | 华为终端有限公司 | User equipment system bar control method and user equipment |
CN103795869A (en) * | 2014-03-07 | 2014-05-14 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104156171A (en) * | 2014-08-29 | 2014-11-19 | 广东欧珀移动通信有限公司 | Method and device for preventing touch key misoperations in landscape screen state of mobile terminal |
CN104461282A (en) * | 2014-11-10 | 2015-03-25 | 小米科技有限责任公司 | Key processing method, key processing device and key processing equipment |
CN106095310A (en) * | 2016-06-08 | 2016-11-09 | 维沃移动通信有限公司 | The control method of a kind of SOT state of termination and terminal |
Non-Patent Citations (1)
Title |
---|
刘建清: "《GSM手机修理从入门到精通 第2版》", 31 July 2007 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108536368A (en) * | 2018-03-30 | 2018-09-14 | 努比亚技术有限公司 | Button application method, terminal and computer readable storage medium |
CN108536368B (en) * | 2018-03-30 | 2021-06-15 | 努比亚技术有限公司 | Key using method, terminal and computer readable storage medium |
CN108595089A (en) * | 2018-04-13 | 2018-09-28 | 维沃移动通信有限公司 | A kind of virtual key control method and mobile terminal |
WO2019196864A1 (en) * | 2018-04-13 | 2019-10-17 | 维沃移动通信有限公司 | Control method for virtual button and mobile terminal |
CN108762639A (en) * | 2018-05-28 | 2018-11-06 | 努比亚技术有限公司 | A kind of control method of physical button, mobile terminal and storage medium |
CN109002438A (en) * | 2018-07-02 | 2018-12-14 | 北京分音塔科技有限公司 | False-touch prevention method, apparatus and translator |
CN109634503A (en) * | 2018-07-26 | 2019-04-16 | 维沃移动通信有限公司 | A kind of operation response method and mobile terminal |
CN109634503B (en) * | 2018-07-26 | 2021-01-08 | 维沃移动通信有限公司 | Operation response method and mobile terminal |
CN109782971A (en) * | 2018-12-28 | 2019-05-21 | 惠州Tcl移动通信有限公司 | Intelligent terminal and its screen display method, the device with store function |
CN110475021A (en) * | 2019-08-16 | 2019-11-19 | 深圳传音控股股份有限公司 | Control method, mobile terminal and the computer storage medium of mobile terminal |
WO2022088790A1 (en) * | 2020-10-29 | 2022-05-05 | 深圳市万普拉斯科技有限公司 | False trigger prevention method, readable storage medium, and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101722522B1 (en) | Method and apparatus for switching display mode | |
CN107908351B (en) | Application interface display method and device and storage medium | |
CN107390977A (en) | Button operation method, apparatus and storage medium | |
US20170060320A1 (en) | Method for controlling a mobile terminal using a side touch panel | |
CN110020313A (en) | Show the method and device of task management interface | |
WO2017084183A1 (en) | Information displaying method and device | |
CN107102772B (en) | Touch control method and device | |
CN107992257B (en) | Screen splitting method and device | |
EP3232301B1 (en) | Mobile terminal and virtual key processing method | |
CN104317402B (en) | Description information display method and device and electronic equipment | |
US10234924B2 (en) | Method and apparatus for displaying time on mobile device | |
CN110262692B (en) | Touch screen scanning method, device and medium | |
CN108073328B (en) | Touch response method and device | |
CN111610912B (en) | Application display method, application display device and storage medium | |
CN106547462B (en) | Photographing control method and device and mobile terminal | |
CN105912204B (en) | Method and device for starting application interface | |
CN109862169B (en) | Electronic equipment control method, device and storage medium | |
CN112905136A (en) | Screen projection control method and device and storage medium | |
CN109521923B (en) | Floating window control method and device and storage medium | |
CN108874450B (en) | Method and device for waking up voice assistant | |
CN112423092A (en) | Video recording method and video recording device | |
US11614953B2 (en) | Method and apparatus for implementing OSD | |
CN110769114B (en) | Call interface display method and device and mobile terminal | |
US20160195992A1 (en) | Mobile terminal and method for processing signals generated from touching virtual keys | |
CN112905027A (en) | Timing method and device, mobile terminal and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171124 |