CN109871114B - Keyboard operation method and device - Google Patents

Keyboard operation method and device Download PDF

Info

Publication number
CN109871114B
CN109871114B CN201711260737.7A CN201711260737A CN109871114B CN 109871114 B CN109871114 B CN 109871114B CN 201711260737 A CN201711260737 A CN 201711260737A CN 109871114 B CN109871114 B CN 109871114B
Authority
CN
China
Prior art keywords
preset
key
icon
mobile icon
mobile
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.)
Active
Application number
CN201711260737.7A
Other languages
Chinese (zh)
Other versions
CN109871114A (en
Inventor
涂畅
张扬
王砚峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201711260737.7A priority Critical patent/CN109871114B/en
Publication of CN109871114A publication Critical patent/CN109871114A/en
Application granted granted Critical
Publication of CN109871114B publication Critical patent/CN109871114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for operating a keyboard, wherein the method comprises the following steps: monitoring the inclination direction of the terminal; controlling a mobile icon to move on a keyboard displayed by the terminal according to the inclination direction; determining a corresponding target key when the mobile icon stops moving; and triggering the function provided by the target key. By using the keyboard operation method provided by the embodiment of the invention, when a user uses a keyboard, the terminal can be controlled to tilt towards all directions, the mobile icon is controlled to move on the keyboard displayed on the terminal by monitoring the tilting direction of the terminal according to the tilting direction of the terminal, and when the mobile icon is monitored to stop moving, the function provided by the target key corresponding to the mobile icon is triggered. Therefore, by using the scheme provided by the embodiment of the invention, the user can realize the triggering operation of the virtual key without clicking the touch screen, and the service life of the touch screen is prolonged.

Description

Keyboard operation method and device
Technical Field
The embodiment of the invention relates to the technical field of Internet, in particular to a method and a device for operating a keyboard.
Background
With the development of touch screen technology, currently, many terminals are installed with touch screens, for example: the terminal comprises a mobile phone, a tablet computer, a smart watch and the like, and the interaction between a user and the terminal is realized by adopting a touch screen technology. In a terminal mounted with a touch screen, a keypad is generally provided, which can provide various input functions to a user, such as: chinese input, english input, numeric input, etc.
The inventor finds that when the user uses the functions provided by the keyboard, on one hand, the frequency of clicking the touch screen is very high; on the other hand, the touch screen is easily stained when clicked. High frequency of clicks and soiling can affect the useful life of the touch screen.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and an apparatus for operating a keyboard, so that a touch screen does not need to be clicked, triggering operation of keys in the keyboard can be realized, and the service life of the touch screen is prolonged.
Therefore, the technical scheme for solving the technical problem is as follows:
in a first aspect, to solve the above problem, an embodiment of the present invention provides a keyboard operation method, where the method includes:
monitoring the inclination direction of the terminal;
controlling a mobile icon to move on a keyboard displayed by the terminal according to the inclination direction;
determining a corresponding target key when the mobile icon stops moving;
and triggering the function provided by the target key.
Optionally, the determining the corresponding target key when the mobile icon stops moving includes:
monitoring whether the mobile icon moves to a preset key area or not;
when the mobile icon moves to a preset key area, locking the mobile icon in the preset key area;
and acquiring the key corresponding to the preset key area as the target key.
Optionally, the determining the corresponding target key when the mobile icon stops moving includes:
monitoring whether the moving speed of the moving icon is smaller than a preset speed threshold value;
when the moving speed of the mobile icon is smaller than the preset speed threshold value, acquiring a preset key area where the mobile icon is located;
and acquiring the key corresponding to the preset key area as the target key.
Optionally, the triggering the function provided by the target key includes:
monitoring whether the mobile icon continues to move within a preset time interval;
and when the mobile icon does not move continuously within a preset time interval, triggering the function provided by the target key.
Optionally, the method further includes:
and resetting the position of the mobile icon.
Optionally, the resetting the position of the mobile icon includes:
and moving the mobile icon to a preset initial position.
Optionally, the resetting the position of the mobile icon includes:
and moving the mobile icon until the mobile icon does not correspond to the target key.
Optionally, the method further includes:
when the mobile icon stops moving in a candidate area, acquiring a target candidate word corresponding to the mobile icon, wherein the candidate area is used for displaying the candidate word;
and when the terminal is monitored to execute preset screen-on operation, screen-on operation is carried out on the target candidate words.
Optionally, the keys in the keyboard are distributed on the edge of the preset shape.
Optionally, the keys in the touch screen simulating keyboard are distributed on four edges of the display screen of the terminal.
In a second aspect, to solve the above problem, an embodiment of the present invention provides a keyboard operation device, including:
the monitoring module is used for monitoring the inclination direction of the terminal;
the mobile control module is used for controlling the mobile icons to move on the keyboard displayed by the terminal according to the inclination direction;
the target key determining module is used for determining a corresponding target key when the mobile icon stops moving;
and the function triggering module is used for triggering the function provided by the target key.
Optionally, the target key determining module includes:
the first monitoring unit is used for monitoring whether the mobile icon moves to a preset key area or not;
the first locking unit is used for locking the mobile icon in a preset key area when the mobile icon moves to the preset key area;
and the first obtaining unit is used for obtaining the key corresponding to the preset key area as the target key.
Optionally, the target key determining module includes:
the second monitoring unit is used for monitoring whether the moving speed of the moving icon is smaller than a preset speed threshold value or not;
a target area obtaining unit, configured to obtain a preset key area where the mobile icon is located when the moving speed of the mobile icon is smaller than the preset speed threshold;
and the second acquisition unit is used for acquiring the key corresponding to the preset key area as the target key.
Optionally, the function triggering module includes:
the third monitoring unit is used for monitoring whether the mobile icon continues to move within a preset time interval;
and the function triggering unit is used for triggering the function provided by the target key when the mobile icon does not move continuously within a preset time interval.
Optionally, the apparatus further comprises:
and the position resetting module is used for resetting the position of the mobile icon.
Optionally, the position resetting module includes:
the first resetting unit is used for moving the mobile icon to a preset initial position.
Optionally, the position resetting module includes:
and the second resetting unit is used for moving the mobile icon until the mobile icon does not correspond to the target key.
Optionally, the apparatus further comprises:
the target candidate word acquisition module is used for acquiring a target candidate word corresponding to the mobile icon when the mobile icon is monitored to stop moving in a candidate area, and the candidate area is used for displaying the candidate word;
and the screen-on module is used for performing screen-on operation on the target candidate word when monitoring that the terminal executes preset screen-on operation.
Optionally, the keys in the keyboard are distributed on the edge of the preset shape.
Optionally, the keys in the touch screen keyboard are distributed on four edges of the display screen of the terminal.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
monitoring the inclination direction of the terminal;
controlling a mobile icon to move on a keyboard displayed by the terminal according to the inclination direction;
determining a corresponding target key when the mobile icon stops moving;
and triggering the function provided by the target key.
Optionally, the determining the corresponding target key when the mobile icon stops moving includes:
monitoring whether the mobile icon moves to a preset key area or not;
when the mobile icon moves to a preset key area, locking the mobile icon in the preset key area;
and acquiring a key corresponding to the preset key area as the target key.
Optionally, the determining the corresponding target key when the mobile icon stops moving includes:
monitoring whether the moving speed of the moving icon is smaller than a preset speed threshold value;
when the moving speed of the mobile icon is smaller than the preset speed threshold value, acquiring a preset key area where the mobile icon is located;
and acquiring a key corresponding to the preset key area as the target key.
Optionally, the triggering the function provided by the target key includes:
monitoring whether the mobile icon continues to move within a preset time interval;
and when the mobile icon does not move continuously within a preset time interval, triggering the function provided by the target key.
Optionally, the instructions of the operations further include:
and resetting the position of the mobile icon.
Optionally, the resetting the position of the mobile icon includes:
and moving the mobile icon to a preset initial position.
Optionally, the resetting the position of the mobile icon includes:
and moving the mobile icon until the mobile icon does not correspond to the target key.
Optionally, the instructions of the operations further include:
when the mobile icon stops moving in a candidate area, acquiring a target candidate word corresponding to the mobile icon, wherein the candidate area is used for displaying the candidate word;
and when the terminal is monitored to execute preset screen-on operation, screen-on operation is carried out on the target candidate words.
Optionally, the keys in the keyboard are distributed on the edge of the preset shape.
Optionally, the keys in the touch screen keyboard are distributed on four edges of the display screen of the terminal.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer readable storage medium, where instructions, when executed by a processor of an electronic device, enable the electronic device to perform a method of keyboard operations, the method including:
monitoring the inclination direction of the terminal;
controlling a mobile icon to move on a keyboard displayed by the terminal according to the inclination direction;
determining a corresponding target key when the mobile icon stops moving;
and triggering the function provided by the target key.
Optionally, the determining that the corresponding target key stops moving when the mobile icon includes:
monitoring whether the mobile icon moves to a preset key area or not;
when the mobile icon moves to a preset key area, locking the mobile icon in the preset key area;
and acquiring a key corresponding to the preset key area as the target key.
Optionally, the determining the corresponding target key when the mobile icon stops moving includes:
monitoring whether the moving speed of the moving icon is smaller than a preset speed threshold value;
when the moving speed of the mobile icon is smaller than the preset speed threshold value, acquiring a preset key area where the mobile icon is located;
and acquiring the key corresponding to the preset key area as the target key.
Optionally, the triggering the function provided by the target key includes:
monitoring whether the mobile icon continues to move within a preset time interval;
and when the mobile icon does not move continuously within a preset time interval, triggering the function provided by the target key.
Optionally, the method further includes:
and resetting the position of the mobile icon.
Optionally, the resetting the position of the mobile icon includes:
and moving the mobile icon to a preset initial position.
Optionally, the resetting the position of the mobile icon includes:
and moving the mobile icon until the mobile icon does not correspond to the target key.
Optionally, the method further includes:
when it is monitored that the mobile icon stops moving in a candidate area, obtaining a target candidate word corresponding to the mobile icon, wherein the candidate area is used for displaying the candidate word;
and when the terminal is monitored to execute preset screen-on operation, screen-on operation is carried out on the target candidate words.
Optionally, the keys in the keyboard are distributed on the edge of the preset shape.
Optionally, the keys in the touch screen keyboard are distributed on four edges of the display screen of the terminal.
According to the technical scheme, the invention has the following beneficial effects:
in the embodiment of the invention, when a user uses the keyboard, the terminal can be controlled to incline towards all directions, the mobile icon is controlled to move on the keyboard displayed on the terminal according to the inclination direction of the terminal by monitoring the inclination direction of the terminal, and when the mobile icon is monitored to stop moving, the function provided by the target key corresponding to the mobile icon is triggered. Therefore, by using the scheme provided by the embodiment of the invention, the user can realize the triggering operation of the virtual key without clicking the touch screen, and the service life of the touch screen is prolonged.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a keyboard operation method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a keyboard displayed on the terminal according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating the position of the mobile icon on the keyboard after the terminal is tilted to the right in the embodiment of the present invention;
FIG. 4 is a schematic diagram of the embodiment of the present invention after the trigger button "6" is pressed;
FIG. 5 is a schematic diagram illustrating comparison between before and after the trigger button "send" in the embodiment of the present invention;
FIG. 6 is a schematic diagram of a preset key area of a keyboard according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a mobile icon moving to a key region preset by key "6" according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating repositioning of a moving icon according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating selection of a target candidate word after triggering a target key according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating a target candidate word after being displayed on a screen according to an embodiment of the present invention;
FIG. 11 is a schematic diagram illustrating the distribution of virtual keys when the predetermined shape is circular according to an embodiment of the present invention;
FIG. 12 is a schematic diagram illustrating the distribution of virtual keys when the predetermined shape is a rectangle according to an embodiment of the present invention
Fig. 13 is a schematic diagram illustrating keys in a keyboard distributed on four sides of a display screen of the terminal according to an embodiment of the present invention;
FIG. 14 is a flowchart illustrating a keyboard operation method according to an embodiment of the present invention;
FIG. 15 is a schematic structural diagram of a keyboard operation device according to an embodiment of the present invention;
fig. 16 is a schematic diagram of a hardware structure of a keyboard operation device according to an embodiment of the present invention.
Detailed Description
In order to provide a scheme for realizing the function of triggering keys in a keyboard without clicking a touch screen, the embodiment of the invention provides a method and a device for operating the keyboard, and the embodiment of the invention is described below by combining with the attached drawings of the specification.
The inventor of the present invention found in research that the frequency of using the keypad provided by the terminal by the user is high, and thus the frequency of clicking on the touch screen of the terminal is high. For example, the following steps are carried out: when a user chats with instant messaging software, the user needs to input chat content by using a keyboard provided by the terminal, and the user needs to click the touch screen once every time the user inputs a character, so that the click frequency of the touch screen is very high. In addition, the touch panel is easily stained when clicked. For example, the following steps are carried out: when a user clicks the touch screen with a finger, if stains such as water stains and oil stains are present on the finger of the user, the stains on the hand of the user can contact the touch screen and even stick to the touch screen, so that the touch screen is stained. High frequency of clicks and smudging due to clicks can affect the useful life of the touch screen.
In order to solve the above problems, in the embodiments of the present invention, a terminal is built in with various sensors, for example, a gravity sensor, an acceleration sensor, a gyroscope sensor (angular velocity sensor), a direction sensor, etc., the terminal can monitor the tilt direction of the terminal through the sensors, the terminal displays a keyboard, and a mobile icon is present on the keyboard, the terminal controls the mobile icon to move on the keyboard according to the tilt direction, and when the mobile icon stops moving, a target key corresponding to the mobile icon is obtained, and a function provided by the target key is triggered. Therefore, the function of the keys on the virtual touch keyboard can be triggered without clicking the touch screen. The frequency of clicking the touch screen is reduced, the pollution generated when the touch screen is clicked is reduced, and the service life of the touch screen of the terminal is prolonged.
Various non-limiting embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Exemplary method
Referring to fig. 1, a flowchart of a method for operating a keyboard according to an embodiment of the present invention is shown. In this embodiment, the method may include, for example, the steps of:
s101: the tilt direction of the terminal is monitored.
It should be noted that the terminal mentioned in this embodiment includes, but is not limited to, a smart phone, a tablet computer, and the like.
When the terminal is inclined towards a certain direction, an acceleration is generated, and the direction of the acceleration is consistent with the inclination direction. Therefore, the direction of the inclination of the terminal can be characterized by the direction of the acceleration of the terminal.
A variety of sensors, such as a gravity sensor, an acceleration sensor, and the like, are generally provided in the terminal. The direction of the terminal tilt can be monitored using these sensors. Specifically, in one possible implementation, the tilt direction of the terminal may be monitored by an acceleration sensor built in the terminal; in another possible embodiment, the tilt direction of the terminal may be monitored by an acceleration sensor and a gravity sensor built in the terminal. Of course, other types of sensors (e.g., direction sensors) may be used to monitor the tilt direction of the terminal, and will not be described herein.
S102: and controlling the mobile icon to move on a keyboard displayed on the terminal according to the inclination direction.
After the sensor of the terminal detects the inclination direction of the terminal, the sensor can control the mobile icon to move on the keyboard displayed on the terminal, and the moving direction of the mobile icon on the virtual touch screen keyboard is consistent with the inclination direction of the terminal. For example, if the terminal is tilted to the right, the moving direction of the moving icon on the virtual touch screen keyboard displayed on the terminal is also to the right.
It can be understood that there are various expressions of the virtual touch keyboard displayed on the terminal, for example, the virtual touch keyboard may be a full keyboard, a squared figure keyboard, a stroke keyboard, or the like. In the embodiment of the present invention, the nine-grid keyboard shown in fig. 2 is taken as an example for explanation, and keyboards in other expression forms may also be used, which are not specifically limited herein. The virtual touch screen keyboard shown in fig. 2 includes character keys for inputting characters; for example, an "ABC" key for inputting characters "a", "b", "c"; a "DEF" key for inputting characters "d", "e", "f"; the 'GHI' key is used for inputting characters 'g', 'h', 'i'. The virtual touch screen keyboard further comprises function keys for triggering operation functions; for example, the line feed key is used for line feed display of a cursor in the virtual touch screen keyboard, the send key is used for sending out the currently edited content, and the Chinese/English switching key is used for switching the input mode to the English mode when the current input mode is the Chinese mode, switching to the Chinese mode when the current input mode is the English mode, and the like.
On a virtual touch screen keyboard displayed on the terminal, a movable icon exists. As shown in fig. 2, a gray ball is disposed at the position of the key "1", and the gray ball is a moving icon. It should be noted that the moving icon shown in fig. 2 is a round ball, and in practical application, the moving icon may also be an icon shaped like an arrow, or may also be an icon with another shape, and the embodiment does not limit the specific shape of the moving icon. In addition, the initial position of the mobile icon shown in fig. 2 is located in the middle of the virtual touch screen keyboard, and in practical application, the mobile icon may be located at any position on the display screen, and the location of the mobile icon is not limited in this embodiment.
When a user needs to use the virtual touch screen keyboard, the terminal can be inclined towards a certain direction, at the moment, the terminal monitors the current inclined direction of the terminal by using a built-in sensor, so that the mobile icon is controlled to move on the virtual keyboard displayed on the terminal, and the moving direction is consistent with the inclined direction of the terminal. When the designated position is reached, a locking technology can be adopted, so that the mobile icon stops moving at the designated position; or when the mobile icon is about to reach the designated position, the control terminal inclines to the direction opposite to the moving direction of the mobile icon, so that the mobile icon obtains the acceleration in the direction opposite to the original moving direction, and after the mobile icon obtains the acceleration in the opposite direction, the moving speed is gradually reduced until the mobile icon stops moving at the designated position. The locking technique refers to a technique for instantaneously reducing the speed of the moving icon to a preset threshold value, where the preset threshold value is a numerical value close to 0 or equal to 0. The method comprises the steps that a preset key area is set, a locking technology is adopted in the preset key area, when a mobile icon moves to any one preset key area, the speed of the mobile icon can be instantly reduced to be a preset threshold value through the locking technology, so that the mobile icon stops in the preset key area, and the locking technology is irrelevant to the size and the direction of the moving speed of the mobile icon. For example, the mobile icon is located at the position shown in fig. 2, when a user wants to input a character corresponding to the key "6", the terminal may be controlled to tilt to the right side, and at this time, the terminal monitors that the tilting direction is right, and then the mobile icon is controlled to move to the right side, referring to fig. 3, a schematic diagram of the position of the mobile icon on the virtual touch screen keyboard after the terminal tilts to the right side is shown, and the mobile icon moves to the position of the key "6".
It should be noted that the moving icon has a certain speed when moving on the virtual keyboard, in one example, a first speed is preset, and the moving icon moves at the first speed all the time during the moving process. For example, if the preset first speed is 0.8cm/s, the moving icon always moves on the virtual touch screen keyboard at the speed of 0.8cm/s. In another example, considering that the habits of the users using the virtual keyboard are different, some users are used to move the mobile icon quickly, some users are used to move the mobile icon slightly slowly, and a plurality of speeds can be preset, so that the users can select the moving speed of the mobile icon independently. For example, the moving speeds of the three moving icons are preset as a second speed, a third speed and a fourth speed, wherein the preset second speed is 0.5cm/s, the preset third speed is 0.8cm/s, the preset fourth speed is 1.0cm/s, and the user can select one of the speeds suitable for the user to move the moving icon from the three speeds of 0.5cm/s, 0.8cm/s and 1.0 cm/s. In another example, the moving speed of the moving icon is positive to the acceleration of the terminal tiltingThe moving speed of the moving icon is higher than that of the moving icon, namely the acceleration of the terminal inclination is higher; the acceleration of terminal tilting is small, and the moving speed of the mobile icon is slow. For example, the following steps are carried out: acceleration of terminal tilt is 0.5cm/s 2 When the icon moves, the moving speed of the corresponding moving icon is 0.5cm/s; acceleration of terminal tilt is 0.8cm/s 2 When the icon is moved, the moving speed of the corresponding moving icon is 0.8cm/s.
S103: and determining a corresponding target key when the mobile icon stops moving.
When the designated position is reached, a locking technology can be adopted, so that the mobile icon stops moving at the designated position; or when the mobile icon is about to reach the designated position, the control terminal inclines to the direction opposite to the moving direction of the mobile icon, so that the mobile icon obtains the acceleration in the direction opposite to the original moving direction, and after the mobile icon obtains the acceleration in the opposite direction, the moving speed is gradually reduced until the mobile icon stops moving at the designated position. When the moving speed of the moving icon is 0 or is very small and is smaller than a preset speed threshold, the moving icon may be considered to stop moving. And when the mobile icon stops moving, the key corresponding to the area where the mobile icon is located is the target key corresponding to the mobile icon. The preset speed threshold is a very small value, and may be specifically set according to actual needs, and is not specifically limited herein. For example, referring to fig. 3, after the moving icon moves to the area where the key "6" is located, the moving speed becomes 0, it can be considered that the moving icon stops moving after moving to the area where the key "6" is located, and then the key "6" is the target key corresponding to the moving icon.
S104: and triggering the function provided by the target key.
After the target key corresponding to the movement icon when the movement icon stops moving is determined in S103, a function corresponding to the target key may be triggered.
It will be appreciated that the target key may be an input key or a function key.
When the target key is a character key, triggering the function corresponding to the target key is inputting the character provided by the character key, and displaying the corresponding candidate word in the candidate area of the keyboard. For example, the target key is key "6", see fig. 4, which shows a schematic view after key "6" is triggered, "o you o" appears in the candidate area 600 of the keyboard awaiting the vote, wherein the candidate area 600 is used to display the candidate.
When the target key is a function key, the function of triggering the target key is to trigger the operation function corresponding to the target key. For example, the target key is a "send" key, and referring to fig. 5, a schematic diagram illustrating comparison before and after the trigger key "send" is shown, after the trigger key "send", the content "how you are" on the upper screen area 700 is sent out, where the upper screen area 700 is used to place the candidate words that have been selected before.
By the keyboard operation method provided by the embodiment of the invention, when a user needs to use the keyboard, the terminal only needs to be controlled to incline towards each direction, the terminal can control the mobile icon to move on the keyboard according to the inclination direction of the terminal, the moving direction of the mobile icon is consistent with the inclination direction of the terminal, and when the mobile icon stops moving, the function provided by the target key corresponding to the mobile icon is triggered. The effect that the virtual key function of the keyboard can be triggered without clicking the touch screen by the user is achieved, so that the clicking of the touch screen by the user is reduced, and the service life of the touch screen is prolonged.
In an example, when it is determined that the mobile icon stops moving, the corresponding target key may be implemented in the following ways:
the first implementation mode comprises the following steps: monitoring whether the mobile icon moves to a preset key area or not; and when the mobile icon moves to a preset key area, locking the mobile icon in the preset key area, and acquiring a key corresponding to the preset key area as a target key.
The keyboard comprises a plurality of keys, each key occupies an area, and referring to fig. 6, the square area where the key "1" is located is the area occupied by the key "1". In order to stop the moving icon moving when the moving icon passes through the key that the user wants to use, a preset key region may be set for each key, and in general, the preset key region is smaller than the region occupied by the key, see fig. 6, the preset key region corresponding to the key "1" is a circular region in the block region of the key "1". And when the mobile icon moves to a preset key area corresponding to a key, locking the mobile icon in the preset key area corresponding to the key by adopting a locking technology, so that the mobile icon stops moving. At this time, the key corresponding to the preset key area is the target key. The locking technique refers to a technique for instantaneously reducing the speed of the moving icon to a preset threshold value, where the preset threshold value is a numerical value close to 0 or equal to 0. The method comprises the steps that a preset key area is set, a locking technology is adopted in the preset key area, when a mobile icon moves to any one preset key area, the speed of the mobile icon can be instantly reduced to be a preset threshold value through the locking technology, so that the mobile icon stops in the preset key area, and the locking technology is irrelevant to the size and the direction of the moving speed of the mobile icon.
For example, in fig. 6, the preset key region corresponding to the key "6" is a circular region in the block region where the key "6" is located. When the moving icon moves into the circular area of the key "6", the moving icon is locked in the circular area of the key "6", i.e. the moving icon moves at a rapidly decreasing speed, i.e. the moving icon stays within the circular area of the key "6". At this time, the key "6" is the target key.
It should be noted that the preset key area of one key is not limited to the circular area shown in fig. 6, but may be an area with other shapes, and is not limited specifically here. Each key in the keyboard has a preset key area corresponding to the key, which is not completely shown in fig. 6, and the part not shown is similar to the part shown by the key "1" and the like, and the part shown is referred to.
The second implementation mode comprises the following steps: monitoring whether the moving speed of the moving icon is smaller than a preset speed threshold value or not; when the moving speed of the mobile icon is smaller than the preset speed threshold value, acquiring a preset key area where the mobile icon is located; and acquiring a key corresponding to the preset key area as a target key.
When the moving icon moves to a preset key area where a key that a user wants to use is located, in order to stop moving the moving icon, the user needs to control the terminal to tilt in a direction opposite to the moving direction of the moving icon, so that the moving icon obtains an acceleration in a direction opposite to the original moving direction, and after the moving icon obtains the acceleration in the opposite direction, the moving speed is gradually reduced. When the moving speed of the moving icon is 0 or less than a preset speed threshold, the moving icon may be considered to have stopped moving. The preset speed threshold is a very small speed, and may be specifically set according to actual needs, and is not specifically limited herein. After the mobile icon is confirmed to stop moving, the preset key area where the mobile icon is located can be obtained, and then the key corresponding to the preset key area is obtained as the target key.
For example, referring to fig. 7, when the moving icon moves to the preset key area where the key "6" is located, the user controls the terminal to tilt to the left side, so that the moving icon obtains an acceleration in a direction opposite to the original moving direction, the speed of the moving icon is slowly reduced, and when the moving speed of the moving icon is reduced to 0 or less than the preset speed threshold, the moving icon is considered to have stopped moving. And when the moving icon stops moving after moving to a preset key area corresponding to the key "6", the key "6" can be acquired as a target key.
In one implementation scenario, when a moving icon stops moving, the key corresponding to the moving icon may not be the target key that the user wants to trigger.
For example: when the user controls the movement of the mobile icon by controlling the inclination of the terminal, misoperation occurs, and the key corresponding to the mobile icon is not the target key which the user wants to trigger. Referring to fig. 2, the user wants to move the moving icon to the position of the key "6", but the terminal is tilted to the left due to some reason, the moving icon stops at the position of the key "5", and the key "5" is not the target key that the user wants to trigger.
For another example, when the moving icon stops moving on a certain key in the way during the moving process of the moving icon to the target key that the user wants to trigger, the corresponding key when the moving icon stops moving is not the target key that the user wants to trigger. Referring to fig. 2, the user wants to move the moving icon to the position of the key "line feed", but during the moving of the moving icon, the moving icon stops moving at the position of the key "6" for some reason, and the key "6" is not the target key that the user wants to trigger.
For the above two cases, in one example, the function provided by triggering the target key includes:
monitoring whether the moving icon continues to move within a preset time interval; and when the mobile icon does not move continuously within the preset time interval, triggering the function provided by the target key.
It should be noted that the preset time interval may be considered as a time required for the user to correct the misoperation, or the time required for the user to find that the corresponding key is not the target key that the user wants to trigger when the mobile icon stays and to make an adjustment in time may be specifically set according to actual needs, and is not specifically limited herein. For example, the preset time interval may be 1S.
It should be noted here that, when the moving icon is monitored not to move continuously within the preset time interval, the following implementations exist:
the first implementation mode comprises the following steps: monitoring whether the moving speed of the mobile icon in a preset time interval is 0 or not, or monitoring whether the moving speed of the mobile icon in the preset time interval is smaller than a preset speed threshold or not. It is understood that when the moving speed of the moving icon is 0, it indicates that the moving icon has not moved, and when the moving speed of the moving icon is less than the preset speed threshold, it can be approximately considered that the moving icon has not moved. For example, the preset time interval is 1S, the preset speed threshold is 0.05cm/S, and when the moving speed of the moving icon in 1S is 0 or the moving speed of the moving icon in 1S is less than 0.05cm/S, the moving icon is considered not to move continuously in 1S.
The second implementation mode comprises the following steps: and monitoring whether the position of the mobile icon in a preset time interval is not changed or whether the position change of the mobile icon in the preset time interval is smaller than a preset distance threshold. Wherein the predetermined distance threshold is a small value. It is understood that when the position of the mobile icon is not changed, it indicates that the mobile icon does not move continuously; when the position change of the moving icon is smaller than the preset distance threshold, the moving icon can be approximately considered not to move continuously. For example, the preset time interval is 1S, the preset distance threshold is 0.05cm, and when the position of the moving icon in 1S does not change or the position of the moving icon in 1S changes by less than 0.05cm, the moving icon is considered not to move continuously in 1S.
It should be noted that, when the moving icon does not move continuously, it indicates that the key corresponding to the moving icon does not change within the preset time interval. That is, when the time that the mobile icon stays on one key exceeds the preset time interval, the current target key may be considered as the key that the user wants to use, and at this time, the function provided by the target key may be triggered. When the time that the mobile icon stays on the target key does not exceed the preset time interval, it may be considered that the mobile icon stays on the current target key may be generated due to a user's misoperation, or the key may be a key in a path in the moving process of the mobile icon, and at this time, the function provided by the target key is not triggered. The triggering accuracy can be further ensured by monitoring whether the moving icon continues to move within the preset time interval to determine whether to trigger the function provided by the target key. For example: referring to fig. 7, when the moving icon stays in the preset key area of the key "6" and the moving icon does not move further within 1S, the key "6" may be considered as the target key that the user wants to trigger, and the function provided by the key "6" is triggered. For another example: the moving icon stays in the preset key area where the key "6" is located, but the moving icon is moved in 1S and moves to the preset key area of the key "line feed", at this time, it can be considered that the key "6" is not the target key that the user wants to trigger, and at this time, the function provided by the key "6" cannot be triggered.
In one example, after the function provided by the target key is triggered at S104, the position of the moving icon may also be reset.
When a user uses the keyboard, the user often needs to trigger the functions of multiple virtual keys of the keyboard, that is, after the user completes one trigger operation on a target key, the user often needs to continue to trigger the next time. In order to facilitate the next triggering operation of the virtual key by the user, in this embodiment, after a virtual key is triggered, a manner of resetting the position of the moving icon may be adopted as a boundary for the next triggering operation of the virtual key. After the position of the mobile icon is reset, the next trigger operation can be carried out. For example, when a user wants to input a character string "wo" using a keyboard, the function of the virtual key capable of inputting the character "w" is triggered when the virtual key on the keyboard is triggered for the first time, and then the mobile icon is repositioned, and after the mobile icon is repositioned, the function of the virtual key capable of inputting the character "o" can be continuously triggered.
In specific implementation, for the position resetting of the mobile icon, the following two implementation modes can be adopted:
the first implementation manner comprises the following steps: and moving the mobile icon to a preset initial position.
The preset initial position refers to a fixed position which is preset, and the position can be any position on the keyboard. And after the function corresponding to the target key is triggered, the mobile icon is moved to the preset initial position no matter where the target key is positioned on the keyboard, so that the position of the mobile icon is reset.
For example, the following steps are carried out: the preset initial position is the position of the key "1" shown in fig. 2. After the function provided by the key "6" is triggered, the mobile icon is moved to the position of the key "1". After the function provided by the key "send" is triggered, the mobile icon is also moved to the position of the key "1".
The second implementation mode comprises the following steps: and when the preset reset operation is detected, resetting the position of the moving icon.
The moving of the mobile icon to the preset initial position may be implemented by a preset reset operation, for example, the preset operation may be an operation of shaking the mobile phone up and down, and the like, which is not specifically limited herein.
A third implementation, comprising: and moving the moving icon until the moving icon does not correspond to the target key.
It should be noted that the fact that the mobile icon does not correspond to the target key means that the location of the mobile icon is at any location outside the preset key region of the target key. And after the function corresponding to the target key is triggered, moving the mobile icon to a position outside a preset key area of the target key. For example, referring to FIG. 8, a schematic diagram of repositioning the moving icon is shown. After the function provided by the key "6" is triggered, the mobile icon is moved to a portion outside the preset key region corresponding to the key "6".
In specific implementation, the mobile icon is moved until the mobile icon does not correspond to the target key, and the following two implementation modes can be adopted:
the first implementation mode comprises the following steps: and the user controls the terminal to incline, and the terminal monitors the inclination direction of the terminal and controls the mobile icon to move to a position which is not corresponding to the target key according to the inclination direction of the terminal, so that the position of the mobile icon is reset. For example, after the user triggers the function provided by the key "6", the control terminal is tilted to the left side, so that the moving icon moves to the left, referring to fig. 8, to a portion outside the preset key region of the key "6".
The second implementation mode comprises the following steps: and starting timing when the function provided by the target key is triggered, and controlling the mobile icon to automatically move to a position which does not correspond to the target key by the terminal when the timing exceeds the preset reset time. The preset reset time is the shortest time interval from the end of the last virtual key triggering of the user to the beginning of the next virtual key triggering. For example, the preset reset time is 0.1S, and after the function provided by the key "6" is triggered by the user and 0.1S passes, the mobile icon automatically moves to a portion outside the preset key area of the key "6".
When a user uses a virtual key on a keyboard, after a character or a character string is input, a plurality of candidate words appear in a candidate area, the user needs to select a word needing to be input from the candidate words in the candidate area as a target candidate word, and the target candidate word is subjected to screen-on operation. Referring to fig. 4, after the key "6" is triggered, the candidate area is displayed "o" and "o", and waits for the word selection, and if the word the user wants to input is "you", the candidate word "you" is the target candidate word, and the target candidate word "you" is subjected to a screen-up operation.
In this embodiment, the selection of the candidate word and the on-screen operation may be implemented by controlling the tilt direction of the terminal.
As an example, when a candidate word appears in the candidate area, the user controls the mobile icon to move to the candidate area by tilting the control terminal in a certain direction. And after the mobile icon moves to the candidate area, the user continues to control the terminal to tilt, controls the mobile icon to move in the candidate area and polls the candidate words. When the terminal monitors that the mobile icon stops moving in the candidate area, the target candidate word corresponding to the mobile icon is obtained, and when the terminal monitors that preset screen-up operation is executed, screen-up operation is carried out on the target candidate word. The preset screen-up operation may be a preset operation performed by the user on the terminal, for example, the terminal may be swung upward, or other actions performed by the user on the terminal, which is not specifically limited in this embodiment.
For example, referring to fig. 9, after the function provided by the key "6" is triggered, after a candidate word "o you wo" appears in the candidate region, the user shakes the tilt terminal upward to move the mobile icon to the candidate region, controls the mobile icon to move by shaking the terminal left and right to poll each candidate word, and when a target candidate word "you" or "which the user wants to input is polled, controls the mobile icon to stay in the region where the target candidate word" you "or" does "is located, and swings the terminal upward; and the terminal monitors that the corresponding target candidate word is 'Do' when the mobile icon stops moving, and performs screen-on operation on the target candidate word 'Do' after monitoring that the terminal shakes upwards.
It should be noted that the position of the moving icon may also be reset after the target candidate word is subjected to the screen-up operation. As shown in fig. 10, a schematic diagram illustrating a position reset of the mobile icon after the target candidate word is displayed on the screen is shown.
It should be noted that the keys in the virtual screen keyboard in this embodiment may be the keys of the conventional keyboard as shown in fig. 2, or may be different from the keys of the conventional virtual screen keyboard.
As an example, the keys in the keyboard are distributed on the edge of the preset shape. When the keys of the virtual keyboard are distributed on the edge of the preset shape, the area formed by the edge of the preset shape can be divided into a plurality of sub-areas according to the perimeter of the edge of the preset shape and the number of the virtual keys, the number of the virtual keys is the same as that of the sub-areas, and each virtual key occupies one area. It should be noted that, when dividing the region formed by the edge of the preset shape, the dividing may be uniform or non-uniform, which is not specifically limited in this embodiment. The preset shape may be a circle, a rectangle, or other shapes. Referring to fig. 11, a diagram illustrating a distribution of virtual keys when the preset shape is a circle is shown. Referring to fig. 12, a distribution diagram of virtual keys when the preset shape is a rectangle is shown.
It should be noted that, after the preset shape is determined, the moving trajectory of the moving icon may be defined in a track of the preset shape, and with reference to fig. 11, when the user needs to control the virtual key to move from the position of the key "0" to the position of the key "1", the user may control the terminal to tilt upward, or may control the terminal to tilt upward to the right, so that the moving icon may move to the position of the key "1", that is, when the tilting direction of the terminal is within a certain range, the moving icon may be controlled to move to the key that the user wants to trigger. Compared with the traditional keyboard, the keyboard has the advantages that the keys are distributed on the edge of the preset shape, so that the moving track of the moving icon is controlled more simply and accurately, and the user experience is further improved.
As another example, the keys in the keypad are distributed on four sides of the display screen of the terminal. The specific distribution mode of the virtual keys distributed on the four edges of the display screen of the terminal is similar to the situation that the keys in the keyboard are distributed on the edges of the preset shape, and is not described herein again.
Referring to fig. 13, a schematic diagram illustrating keys in a keypad distributed on four sides of a display screen of a terminal is shown. It can be understood that the keyboard occupies a relatively large part of the display space on the display screen of the terminal, and when the keys are distributed on four edges of the display screen of the terminal, the visible part on the terminal is larger when the user uses the keyboard, and the user experience is better.
In an example, when a user uses a keyboard, misoperation can occur inevitably, and when the user operates mistakenly and the function provided by the current target key is already triggered, the embodiment of the application can cancel the previous operation in a manner of controlling the terminal to tilt. For example, when the user triggers the function provided by the key "6" due to an erroneous operation, the operation of triggering the function provided by the key "6" can be cancelled by, for example, shaking the terminal down. For another example, when the user performs the screen-up operation on the candidate word "you" due to a wrong operation, the screen-up operation on the candidate word "you" may be canceled by, for example, an operation of shaking the terminal downward.
Application scenario embodiments
A specific scenario is taken as an example to describe a method for operating a keyboard. In this particular scenario, the user is chatting with a friend using a WeChat installed on the handset. In the chat process, the user prepares to input the content "you", the keyboard popped up by the mobile phone used by the user is a squared keyboard, and the preset initial position of the mobile icon is located in the center of the keyboard, namely the position of the key "1" shown in fig. 2.
Referring to fig. 14, a flowchart of a method for operating a keyboard according to an embodiment of the present invention is shown. The method may comprise the steps of:
s1401: the user controls the mobile phone to tilt to the right.
S1402: and when the mobile phone monitors that the inclination direction of the mobile phone is rightward, controlling the mobile icon to move rightward.
S1403: the mobile icon is locked when moving to a preset key area of the key 'MNO'.
S1404: and when the mobile phone monitors that the mobile icon does not move continuously within a preset time interval, the function of the key-press MNO is triggered, and a candidate word 'o' appears in the candidate area.
S1405: and the mobile phone resets the position of the mobile icon.
S1406: the user moves the mobile icon to the candidate area by controlling the mobile phone to tilt upwards, polls each candidate word by shaking the mobile phone left and right, and controls the mobile icon to stop moving when the mobile icon moves to the candidate word 'you'.
S1407: and the user controls the mobile phone to shake upwards to perform the screen-on operation on the candidate word 'you'.
By the keyboard operation method provided by the embodiment of the invention, when a user needs to use the keyboard, the terminal only needs to be controlled to incline towards each direction, the terminal can control the mobile icon to move on the keyboard according to the inclination direction of the terminal, the moving direction of the mobile icon is consistent with the inclination direction of the terminal, and when the mobile icon stops moving, the function provided by the target key corresponding to the mobile icon is triggered. The effect that the virtual key function of the keyboard can be triggered without clicking the touch screen by the user is achieved, so that the clicking of the touch screen by the user is reduced, and the service life of the touch screen is prolonged.
Exemplary devices
Fig. 15 is a schematic structural diagram of a keyboard operation device according to an embodiment of the present invention, where the keyboard operation device includes:
a monitoring module 1501, configured to monitor a tilt direction of the terminal;
a movement control module 1502, configured to control a movement icon to move on a keyboard displayed on the terminal according to the tilt direction;
a target key determining module 1503, configured to determine a corresponding target key when the moving icon stops moving;
a function triggering module 1504, configured to trigger the function provided by the target key.
Optionally, the target key determining module includes:
the first monitoring unit is used for monitoring whether the mobile icon moves to a preset key area or not;
the first locking unit is used for locking the mobile icon in a preset key area when the mobile icon moves to the preset key area;
and the first acquisition unit is used for acquiring the key corresponding to the preset key area as the target key.
Optionally, the target key determining module includes:
the second monitoring unit is used for monitoring whether the moving speed of the moving icon is smaller than a preset speed threshold value;
a target area obtaining unit, configured to obtain a preset key area where the mobile icon is located when the moving speed of the mobile icon is smaller than the preset speed threshold;
and the second acquisition unit is used for acquiring the key corresponding to the preset key area as the target key.
Optionally, the function triggering module includes:
the third monitoring unit is used for monitoring whether the mobile icon continues to move within a preset time interval;
and the function triggering unit is used for triggering the function provided by the target key when the mobile icon does not move continuously within a preset time interval.
Optionally, the apparatus further comprises:
and the position resetting module is used for resetting the position of the mobile icon.
Optionally, the position resetting module includes:
and the first resetting unit is used for moving the mobile icon to a preset initial position.
Optionally, the position resetting module includes:
and the second resetting unit is used for moving the mobile icon until the mobile icon does not correspond to the target key.
Optionally, the apparatus further comprises:
the target candidate word acquisition module is used for acquiring a target candidate word corresponding to the mobile icon when the mobile icon is monitored to stop moving in a candidate area, and the candidate area is used for displaying the candidate word;
and the screen-loading module is used for carrying out screen-loading operation on the target candidate words when monitoring that the terminal executes preset screen-loading operation.
Optionally, the keys in the keyboard are distributed on the edge of the preset shape.
Optionally, the keys in the touch screen keyboard are distributed on four edges of the display screen of the terminal.
The apparatus shown in fig. 15 is an apparatus corresponding to the method shown in fig. 1, and the specific implementation manner is similar to the method shown in fig. 1, and reference is made to the description in the method shown in fig. 1, which is not repeated here.
By the aid of the keyboard operation device, when a user needs to use a keyboard, the user only needs to control the terminal to incline towards all directions, the terminal can control the mobile icon to move on the keyboard according to the inclination direction of the terminal, the moving direction of the mobile icon is consistent with the inclination direction of the terminal, and when the mobile icon stops moving, the function provided by the target key corresponding to the mobile icon is triggered. The effect that the virtual key function of the keyboard can be triggered without clicking the touch screen by the user is achieved, so that the clicking of the touch screen by the user is reduced, and the service life of the touch screen is prolonged.
Referring to fig. 16, apparatus 1600 may include one or more of the following components: processing component 1602, memory 1604, power component 1606, multimedia component 1608, audio component 1610, input/output (I/O) interface 1612, sensor component 1614, and communications component 1616.
The processing component 1602 generally controls overall operation of the device 1600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1602 may include one or more processors 1620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1602 can include one or more modules that facilitate interaction between the processing component 1602 and other components. For example, the processing component 1602 can include a multimedia module to facilitate interaction between the multimedia component 1608 and the processing component 1602.
The memory 1604 is configured to store various types of data to support operation at the device 1600. Examples of such data include instructions for any application or method operating on device 1600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1604 may be implemented by any type or combination of volatile or non-volatile storage 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.
A power supply component 1606 provides power to the various components of the device 1600. The power components 1606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 1600.
The multimedia component 1608 includes a screen that provides an output interface between the device 1600 and a 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 confirm the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1608 comprises a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera can receive external multimedia data when device 1600 is in an operational mode, such as a capture 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 1610 is configured to output and/or input an audio signal. For example, audio component 1610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1600 is in an operational mode, such as a call mode, recording mode, and voice recognition mode. The received audio signal may further be stored in the memory 1604 or transmitted via the communications component 1616. In some embodiments, audio component 1610 further includes a speaker for outputting audio signals.
The I/O interface 1612 provides an interface between the processing component 1602 and a peripheral interface module, which can be a keyboard, click wheel, button, or the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 1614 includes one or more sensors for providing status assessment of various aspects to device 1600. For example, sensor assembly 1614 can identify an open/closed state of device 1600, the relative positioning of components, such as a display and keypad of apparatus 1600, sensor assembly 1614 can also identify a change in position of apparatus 1600 or a component of apparatus 1600, the presence or absence of user contact with apparatus 1600, orientation or acceleration/deceleration of apparatus 1600, and a change in temperature of apparatus 1600. The sensor assembly 1614 may include a proximity sensor configured to confirm the presence of a nearby object in the absence of any physical contact. The sensor assembly 1614 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 1614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communications component 1616 is configured to facilitate communications between the apparatus 1600 and other devices in a wired or wireless manner. The device 1600 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 unit 1616 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1616 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 apparatus 1600 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 above-described methods.
Specifically, the present invention provides an electronic device, which may be embodied as apparatus 1600, comprising memory 1604, and one or more programs, wherein the one or more programs are stored in the memory 1604 and configured to be executed by one or more processors 1620, the one or more programs comprising instructions for:
monitoring the inclination direction of the terminal;
controlling a mobile icon to move on a keyboard displayed by the terminal according to the inclination direction;
determining a corresponding target key when the mobile icon stops moving;
and triggering the function provided by the target key.
Optionally, the determining the corresponding target key when the mobile icon stops moving includes:
monitoring whether the mobile icon moves to a preset key area or not;
when the mobile icon moves to a preset key area, locking the mobile icon in the preset key area;
and acquiring the key corresponding to the preset key area as the target key.
Optionally, the determining the corresponding target key when the mobile icon stops moving includes:
monitoring whether the moving speed of the moving icon is smaller than a preset speed threshold value;
when the moving speed of the mobile icon is smaller than the preset speed threshold value, acquiring a preset key area where the mobile icon is located;
and acquiring the key corresponding to the set key area as the target key.
Optionally, the triggering the function provided by the target key includes:
monitoring whether the mobile icon continues to move within a preset time interval;
and when the mobile icon does not move continuously within a preset time interval, triggering the function provided by the target key.
Optionally, the instructions of the operations further include:
and resetting the position of the mobile icon.
Optionally, the resetting the position of the mobile icon includes:
and moving the mobile icon to a preset initial position.
Optionally, the resetting the position of the mobile icon includes:
and moving the mobile icon until the mobile icon does not correspond to the target key.
Optionally, the instructions of the operations further include:
when it is monitored that the mobile icon stops moving in a candidate area, obtaining a target candidate word corresponding to the mobile icon, wherein the candidate area is used for displaying the candidate word;
and when the terminal is monitored to execute preset screen-on operation, performing screen-on operation on the target candidate word.
Optionally, the keys in the keyboard are distributed on the edge of the preset shape.
Optionally, the keys in the touch screen keyboard are distributed on four edges of the display screen of the terminal.
Embodiments of the invention also provide a non-transitory computer-readable storage medium comprising instructions, such as the memory 1604 comprising instructions, executable by the processor 1620 of the device 1600 to perform the above-described method. 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.
A non-transitory computer-readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a setting method of an application program, the method comprising:
monitoring the inclination direction of the terminal;
controlling a mobile icon to move on a keyboard displayed by the terminal according to the inclination direction;
determining a corresponding target key when the mobile icon stops moving;
and triggering the function provided by the target key.
Optionally, the determining the corresponding target key when the mobile icon stops moving includes:
monitoring whether the mobile icon moves to a preset key area or not;
when the mobile icon moves to a preset key area, locking the mobile icon in the preset key area;
and acquiring the key corresponding to the preset key area as the target key.
Optionally, the determining that the corresponding target key stops moving when the mobile icon includes:
monitoring whether the moving speed of the moving icon is smaller than a preset speed threshold value;
when the moving speed of the mobile icon is smaller than the preset speed threshold value, acquiring a preset key area where the mobile icon is located;
and acquiring the key corresponding to the preset key area as the target key.
Optionally, the triggering the function provided by the target key includes:
monitoring whether the mobile icon continues to move within a preset time interval;
and when the mobile icon does not move continuously within a preset time interval, triggering the function provided by the target key.
Optionally, the method further includes:
and resetting the position of the mobile icon.
Optionally, the resetting the position of the mobile icon includes:
and moving the mobile icon to a preset initial position.
Optionally, the resetting the position of the mobile icon includes:
and moving the mobile icon until the mobile icon does not correspond to the target key.
Optionally, the method further includes:
when the mobile icon stops moving in a candidate area, acquiring a target candidate word corresponding to the mobile icon, wherein the candidate area is used for displaying the candidate word;
and when the terminal is monitored to execute preset screen-on operation, screen-on operation is carried out on the target candidate words.
Optionally, the keys in the keyboard are distributed on the edge of the preset shape.
Optionally, the keys in the touch screen keyboard are distributed on four edges of the display screen of the terminal.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be construed as the protection scope of the present invention.

Claims (28)

1. A method of keyboard operation, the method comprising:
monitoring the inclination direction of the terminal;
controlling a mobile icon to move on a keyboard displayed by the terminal according to the inclination direction;
monitoring whether the mobile icon moves to a preset key area or not;
when the mobile icon moves to a preset key area, locking the mobile icon in the preset key area by adopting a locking technology, wherein the locking technology is a technology for instantly reducing the speed of the mobile icon to a preset threshold value;
acquiring a key corresponding to the preset key area;
monitoring whether the mobile icon continues to move within a preset time interval;
when the mobile icon does not continuously move within the preset time interval, determining that the key is a target key which a user wants to trigger, and triggering a function provided by the target key;
when a plurality of candidate words appear in a candidate area, monitoring whether the mobile icon stops moving on the candidate area, wherein the candidate area is used for displaying the plurality of candidate words;
when the mobile icon stops moving on the candidate area, acquiring a target candidate word corresponding to the mobile icon;
and when the terminal is monitored to execute preset screen-on operation, screen-on operation is carried out on the target candidate words.
2. The method of claim 1, further comprising:
monitoring whether the moving speed of the moving icon is smaller than a preset speed threshold value;
when the moving speed of the mobile icon is smaller than the preset speed threshold value, acquiring a preset key area where the mobile icon is located;
and acquiring a key corresponding to the preset key area as the target key.
3. The method of claim 1, further comprising:
and resetting the position of the mobile icon.
4. The method of claim 3, wherein the repositioning the mobile icon comprises:
and moving the mobile icon to a preset initial position.
5. The method of claim 3, wherein the repositioning the mobile icon comprises:
and moving the mobile icon until the mobile icon does not correspond to the target key.
6. The method according to any one of claims 1 to 5,
the keys in the keyboard are distributed on the edge of a preset shape.
7. The method of claim 6, wherein the keys in the keyboard are distributed on four sides of a display screen of the terminal.
8. A keyboard-operated device, the device comprising:
the monitoring module is used for monitoring the inclination direction of the terminal;
the mobile control module is used for controlling the mobile icons to move on the keyboard displayed by the terminal according to the inclination direction;
the first monitoring unit is used for monitoring whether the mobile icon moves to a preset key area or not;
the first locking unit is used for locking the mobile icon in a preset key area by adopting a locking technology when the mobile icon moves to the preset key area, wherein the locking technology is a technology for instantly reducing the speed of the mobile icon to a preset threshold value;
the first obtaining unit is used for obtaining a key corresponding to the preset key area;
the third monitoring unit is used for monitoring whether the mobile icon continues to move within a preset time interval;
the function triggering unit is used for determining that the key is a target key which is required to be triggered by a user and triggering a function provided by the target key when the mobile icon does not continuously move within a preset time interval;
the target candidate word acquisition module is used for monitoring whether the mobile icon stops moving on a candidate area or not when a plurality of candidate words appear in the candidate area, wherein the candidate area is used for displaying the plurality of candidate words; when the mobile icon stops moving on the candidate area, acquiring a target candidate word corresponding to the mobile icon;
and the screen-on module is used for performing screen-on operation on the target candidate word when monitoring that the terminal executes preset screen-on operation.
9. The apparatus of claim 8, further comprising:
the second monitoring unit is used for monitoring whether the moving speed of the moving icon is smaller than a preset speed threshold value;
a target area obtaining unit, configured to obtain a preset key area where the mobile icon is located when the moving speed of the mobile icon is smaller than the preset speed threshold;
and the second acquisition unit is used for acquiring the key corresponding to the preset key area as the target key.
10. The apparatus of claim 8, further comprising:
and the position resetting module is used for resetting the position of the mobile icon.
11. The apparatus of claim 10, wherein the position reset module comprises:
and the first resetting unit is used for moving the mobile icon to a preset initial position.
12. The apparatus of claim 10, wherein the position reset module comprises:
and the second resetting unit is used for moving the mobile icon until the mobile icon does not correspond to the target key.
13. The device according to any one of claims 8-12, wherein the keys of the keyboard are distributed at the edges of the predetermined shape.
14. The apparatus of claim 13, wherein the keys of the keypad are distributed on four sides of the display of the terminal.
15. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs including instructions for:
monitoring the inclination direction of the terminal;
controlling a mobile icon to move on a keyboard displayed by the terminal according to the inclination direction;
monitoring whether the mobile icon moves to a preset key area or not;
when the mobile icon moves to a preset key area, locking the mobile icon in the preset key area by adopting a locking technology, wherein the locking technology is a technology for instantly reducing the speed of the mobile icon to a preset threshold value;
acquiring a key corresponding to the preset key area;
monitoring whether the mobile icon continues to move within a preset time interval;
when the mobile icon does not continuously move within the preset time interval, determining that the key is a target key which a user wants to trigger, and triggering a function provided by the target key;
when a plurality of candidate words appear in a candidate area, monitoring whether the mobile icon stops moving on the candidate area, wherein the candidate area is used for displaying the plurality of candidate words;
when the mobile icon stops moving on the candidate area, acquiring a target candidate word corresponding to the mobile icon;
and when the terminal is monitored to execute preset screen-on operation, screen-on operation is carried out on the target candidate words.
16. The electronic device of claim 15, wherein the determining the corresponding target key when the moving icon stops moving comprises:
monitoring whether the moving speed of the moving icon is smaller than a preset speed threshold value;
when the moving speed of the mobile icon is smaller than the preset speed threshold value, acquiring a preset key area where the mobile icon is located;
and acquiring the key corresponding to the preset key area as the target key.
17. The electronic device of claim 15, wherein the instructions of the operations further comprise:
and resetting the position of the mobile icon.
18. The electronic device of claim 17, wherein the repositioning the mobile icon comprises:
and moving the mobile icon to a preset initial position.
19. The electronic device of claim 17, wherein the repositioning the mobile icon comprises:
and moving the mobile icon until the mobile icon does not correspond to the target key.
20. The electronic device according to any of claims 15-19, wherein the keys of the keyboard are distributed at the edges of the predetermined shape.
21. The electronic device of claim 20, wherein the keys of the keypad are distributed on four sides of the display of the terminal.
22. A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of an electronic device, enable the electronic device to perform a method of keyboard operations, the method comprising:
monitoring the inclination direction of the terminal;
controlling a mobile icon to move on a keyboard displayed by the terminal according to the inclination direction;
monitoring whether the mobile icon moves to a preset key area or not;
when the mobile icon moves to a preset key area, locking the mobile icon in the preset key area by adopting a locking technology, wherein the locking technology is a technology for instantly reducing the speed of the mobile icon to a preset threshold value;
acquiring a key corresponding to the preset key area;
monitoring whether the mobile icon continues to move within a preset time interval;
when the mobile icon does not continuously move within the preset time interval, determining that the key is a target key which a user wants to trigger, and triggering a function provided by the target key;
when a plurality of candidate words appear in a candidate area, monitoring whether the mobile icon stops moving on the candidate area, wherein the candidate area is used for displaying the plurality of candidate words;
when the mobile icon stops moving on the candidate area, acquiring a target candidate word corresponding to the mobile icon;
and when the terminal is monitored to execute preset screen-on operation, screen-on operation is carried out on the target candidate words.
23. The storage medium of claim 22, wherein the determining the corresponding target key when the mobile icon stops moving comprises:
monitoring whether the moving speed of the moving icon is smaller than a preset speed threshold value;
when the moving speed of the mobile icon is smaller than the preset speed threshold value, acquiring a preset key area where the mobile icon is located;
and acquiring a key corresponding to the preset key area as the target key.
24. The storage medium of claim 22, wherein the method further comprises:
and resetting the position of the mobile icon.
25. The storage medium of claim 24, wherein the repositioning the mobile icon comprises:
and moving the mobile icon to a preset initial position.
26. The storage medium of claim 24, wherein the repositioning the mobile icon comprises:
and moving the mobile icon until the mobile icon does not correspond to the target key.
27. The storage medium of any one of claims 22-26, wherein the keys of the keyboard are distributed at edges of the predetermined shape.
28. The storage medium of claim 27, wherein the keys of the keypad are distributed on four sides of a display of the terminal.
CN201711260737.7A 2017-12-04 2017-12-04 Keyboard operation method and device Active CN109871114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711260737.7A CN109871114B (en) 2017-12-04 2017-12-04 Keyboard operation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711260737.7A CN109871114B (en) 2017-12-04 2017-12-04 Keyboard operation method and device

Publications (2)

Publication Number Publication Date
CN109871114A CN109871114A (en) 2019-06-11
CN109871114B true CN109871114B (en) 2023-02-03

Family

ID=66915615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711260737.7A Active CN109871114B (en) 2017-12-04 2017-12-04 Keyboard operation method and device

Country Status (1)

Country Link
CN (1) CN109871114B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853135A (en) * 2010-06-20 2010-10-06 聂清永 Method for controlling touch screen input interfaces on handheld electronic equipment based on somatosensory device
CN103002098A (en) * 2012-11-30 2013-03-27 广东欧珀移动通信有限公司 Single-hand input method and smart cell phone with same
CN103150114A (en) * 2013-02-28 2013-06-12 浙江工商大学 Convenient and quick input method for touch screen
CN105653185A (en) * 2015-12-23 2016-06-08 深圳市金立通信设备有限公司 Keyboard control method and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050212753A1 (en) * 2004-03-23 2005-09-29 Marvit David L Motion controlled remote controller
KR20130120599A (en) * 2012-04-26 2013-11-05 엘지전자 주식회사 Mobile terminal and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853135A (en) * 2010-06-20 2010-10-06 聂清永 Method for controlling touch screen input interfaces on handheld electronic equipment based on somatosensory device
CN103002098A (en) * 2012-11-30 2013-03-27 广东欧珀移动通信有限公司 Single-hand input method and smart cell phone with same
CN103150114A (en) * 2013-02-28 2013-06-12 浙江工商大学 Convenient and quick input method for touch screen
CN105653185A (en) * 2015-12-23 2016-06-08 深圳市金立通信设备有限公司 Keyboard control method and mobile terminal

Also Published As

Publication number Publication date
CN109871114A (en) 2019-06-11

Similar Documents

Publication Publication Date Title
CN108701001B (en) Method for displaying graphical user interface and electronic equipment
CN105955607B (en) Content sharing method and device
EP3062196B1 (en) Method and apparatus for operating and controlling smart devices with hand gestures
CN110662095B (en) Screen projection processing method and device, terminal and storage medium
KR101722522B1 (en) Method and apparatus for switching display mode
US20210405952A1 (en) Screen projection method, screen projection device, and storage medium
CN107908351B (en) Application interface display method and device and storage medium
US20170322709A1 (en) Split-screen display method, apparatus and medium
CN107124508B (en) Position adjusting method and device of suspension control, terminal and readable storage medium
US11334225B2 (en) Application icon moving method and apparatus, terminal and storage medium
EP3244597A1 (en) Method and apparatus for controlling devices
WO2016206201A1 (en) Mobile terminal, and display control method and apparatus
KR20170012179A (en) Text input method and device
CN107229411B (en) Method and device for controlling split screen state
CN107694087B (en) Information processing method and terminal equipment
CN110262692B (en) Touch screen scanning method, device and medium
CN110119239B (en) Input method application display method and device
CN112463084A (en) Split screen display method and device, terminal equipment and computer readable storage medium
JP7252905B2 (en) Touch signal processing method, device and medium
CN107132983B (en) Split-screen window operation method and device
CN111522498A (en) Touch response method and device and storage medium
CN111381738B (en) Interface display method and device, electronic equipment and storage medium
CN109871114B (en) Keyboard operation method and device
CN110381213B (en) Screen display method and device, mobile terminal and storage medium
CN108037875B (en) Method, device and storage medium for switching input modes

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
GR01 Patent grant
GR01 Patent grant