CN108089725B - Control method of input method and mobile terminal - Google Patents

Control method of input method and mobile terminal Download PDF

Info

Publication number
CN108089725B
CN108089725B CN201810078432.2A CN201810078432A CN108089725B CN 108089725 B CN108089725 B CN 108089725B CN 201810078432 A CN201810078432 A CN 201810078432A CN 108089725 B CN108089725 B CN 108089725B
Authority
CN
China
Prior art keywords
preset
input
sliding
determining
mobile terminal
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
CN201810078432.2A
Other languages
Chinese (zh)
Other versions
CN108089725A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810078432.2A priority Critical patent/CN108089725B/en
Publication of CN108089725A publication Critical patent/CN108089725A/en
Application granted granted Critical
Publication of CN108089725B publication Critical patent/CN108089725B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

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)
  • Telephone Function (AREA)

Abstract

The invention provides a control method of an input method and a mobile terminal, relating to the technical field of mobile communication, wherein the method comprises the following steps: when receiving content input by a user through an input operation interface of an input method, acquiring touch operation on a preset control module of the mobile terminal; determining a control instruction corresponding to the touch operation according to a preset corresponding relation, wherein the control instruction comprises a preset operation and the execution times of the preset operation, and the preset operation is used for controlling characters input in each preset time unit; responding to the control instruction. The invention solves the problem that the common setting of the functions of cancellation and recovery is unreasonable in the existing input method of the mobile terminal.

Description

Control method of input method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of mobile communication, in particular to a control method of an input method and a mobile terminal.
Background
With the development of mobile communication technology, mobile terminals such as smart phones have become an indispensable part of people's lives gradually, and great convenience is provided for people's lives. The input method is used as an important medium for information transmission between the mobile terminal and the user, and the use experience of the user is influenced by the interactive process and the interactive mode. At present, in the input methods of the mobile terminal, the functions of "cancel" and "restore" are usually set unreasonably, for example, some input methods only set the cancel function, and do not perform the cancel and then restore; or some input methods are configured with recovery functions, the configured recovery functions are only single-stage operations, and only can recover the deleted contents at the upper stage, but cannot realize multi-stage continuous recovery input operations and interactive operation with cancel input operations; the above drawbacks bring great inconvenience to the user in the process of using the input method, for example, when the user is in the use process and entangles whether the content of a plurality of characters in the current input method edit box needs to be sent, if the user deletes the message, all the characters cannot be completely recovered, re-editing is needed, and the operation is cumbersome.
Disclosure of Invention
The invention provides a control method of an input method and a mobile terminal, and aims to solve the problem that the common setting of the functions of cancellation and recovery is unreasonable in the existing input method of the mobile terminal.
In order to solve the technical problem, the invention is realized as follows: a method of controlling an input method, the method comprising:
when receiving content input by a user through an input operation interface of an input method, acquiring touch operation on a preset control module of the mobile terminal;
determining a control instruction corresponding to the touch operation according to a preset corresponding relation, wherein the control instruction comprises a preset operation and the execution times of the preset operation, and the preset operation is used for controlling characters input in each preset time unit;
responding to the control instruction.
In a first aspect, an embodiment of the present invention further provides a mobile terminal, including:
the acquisition module is used for acquiring touch operation on a preset control module of the mobile terminal when receiving input content of a user through an input operation interface of an input method;
the determining module is used for determining a control instruction corresponding to the touch operation according to a preset corresponding relation, wherein the control instruction comprises preset operation and execution times of the preset operation, and the preset operation is used for controlling characters input in each preset time unit;
and the response module is used for responding to the control instruction.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including: the input method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the steps in the control method of the input method are realized when the processor executes the computer program.
In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the control method of the input method.
In the embodiment of the invention, when receiving the input content of the user through the input operation interface of the input method, the control instruction corresponding to the touch operation is determined according to the preset corresponding relation, the control instruction is responded, the preset operation is performed on the input content, the recovery function and the cancel function of the input method are realized, the multi-stage recovery operation and the interaction of the recovery operation and the cancel operation are realized, and the unreasonable problem that the cancel and the recovery functions are usually set in the existing input method of the mobile terminal is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention 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 that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating a method for controlling an input method according to an embodiment of the present invention;
FIG. 2 is a diagram of a mobile terminal of a specific example of the present invention;
FIG. 3 is a flow chart illustrating a method of controlling an input method according to an embodiment of the present invention;
FIG. 4 illustrates one of the block diagrams of a mobile terminal provided by the embodiments of the present invention;
fig. 5 is a second block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 shows a third block diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a control method of an input method, including:
step 101, when receiving content input by a user through an input operation interface of an input method, acquiring touch operation on a preset control module of the mobile terminal.
The method comprises the steps that a user inputs content through an input operation interface of an input method, namely the user performs input operation through the input method, and when the input content of the input operation of the user is detected, touch operation on the position where a preset control module of the mobile terminal is located is obtained.
Specifically, as a first example, see a preset control module Q1 shown in fig. 2, the preset control module is used to detect a trigger action of a preset operation.
Preferably, the preset control module is a fingerprint module. Because present fingerprint unblock is comparatively general, consequently through can combining this trend, detect touch-control operation through the fingerprint module.
Step 102, determining a control instruction corresponding to the touch operation according to a preset corresponding relationship, wherein the control instruction comprises a preset operation and the execution times of the preset operation, and the preset operation is used for controlling characters input in each preset time unit.
Preferably, in an embodiment of the present invention, the preset operation includes a cancel input operation and/or a restore input operation.
When the touch operation is detected, a control instruction corresponding to the touch operation is generated according to a preset corresponding relation, the control instruction is used for operating characters operated (including input operation or deletion/cancellation operation) in each preset time unit, and the control instruction comprises preset operation and execution times of the preset operation, wherein the execution times can be multiple times, so that the multi-stage preset operation is realized.
That is, the control instruction includes, in addition to the preset operation, the number of times of execution of an operation corresponding to the preset operation, and the preset operation includes at least one cancel input operation and/or at least one restore input operation. The single input operation and the single recovery input operation are used for controlling characters input in each preset time unit. For example, when the preset operation is a cancel input operation, and the execution frequency of the cancel input operation is 1, canceling the character input by the last preset time unit before the current time; if the execution times is 2, the characters input by the previous two preset time units before the current time are cancelled.
It should be noted that, when the preset operation is a cancel input operation, the character operated in each preset time unit refers to the character input in each preset time unit; and when the preset operation is the input recovery operation, the character operated in each preset time unit refers to the character cancelled or deleted in each preset time unit.
And the input recovery operation is used for recovering the characters which are input in a revocation mode in the last preset time unit.
And 103, responding to the control instruction.
In this step, a control instruction and a target content in the input content corresponding to the control instruction are determined, and a preset operation is executed on the target content in response to the control instruction.
The control instruction can include a recovery function, and when a user needs to recover the revoked content, the recovery function can be realized by touching a touch operation of the recovery function; and the execution times of the preset operation in the control instruction can be multiple times, for example, the user needs to recover the input content cancelled by cancelling the input operation for several consecutive times.
In the embodiment of the invention, when receiving the input content of the user through the input operation interface of the input method, the control instruction corresponding to the touch operation is determined according to the preset corresponding relation, the control instruction is responded, the preset operation is performed on the input content, the recovery function and the cancel function of the input method are realized, the multi-stage recovery operation and the interaction of the recovery operation and the cancel operation are realized, and the unreasonable problem that the cancel and the recovery functions are usually set in the existing input method of the mobile terminal is solved.
Preferably, in an embodiment of the present invention, when the touch operation is a sliding operation, step 101 includes:
acquiring a sliding direction and a sliding distance of sliding operation on a preset control module of the mobile terminal; or
And acquiring the sliding direction and the sliding times of the sliding operation on a preset control module of the mobile terminal.
In this step, the touch operation is a sliding operation, and different sliding directions may be set to correspond to different types of preset operations, the type of the preset operation may be a cancel input operation or a resume input operation, and the sliding distance or the sliding frequency is used to determine the execution frequency of the preset operation.
Further, in an embodiment of the present invention, step 102 includes:
determining a preset operation corresponding to the sliding direction of the sliding operation according to a preset first corresponding relation, an
And determining the execution times of the preset operation corresponding to the sliding distance of the sliding operation according to the preset second corresponding relation.
In the step, firstly, according to a preset first corresponding relation sliding distance, the input operation is cancelled or recovered by determining the corresponding sliding operation; for example, a leftward swipe corresponds to an undo, while a rightward swipe corresponds to a reinstate.
And determining the execution times of the preset operation corresponding to the sliding distance according to the preset second corresponding relation.
For example, if the length of the touch-enabled area of the preset control module is L, the touch-enabled area is divided into N equal parts, and the length d of each equal part is L/N, then the user performs a cancel or restore input operation every time the user moves an equal part d left/right, so that a multi-level operation can be realized by one-time sliding, and in the execution process, the user can know the execution progress of the current operation through the visual interface.
Further, the step of determining a preset operation corresponding to the sliding direction of the sliding operation according to a preset first corresponding relationship includes:
when the sliding direction of the sliding operation is a first direction along a touch area on the preset control module, determining that the preset operation corresponding to the sliding direction of the sliding operation is a cancel input operation according to a preset first corresponding relation; and/or
And when the sliding direction of the sliding operation is a second direction along the touch area on the preset control module, determining a preset operation corresponding to the sliding direction of the sliding operation as a recovery input operation according to a preset first corresponding relation.
In this step, when the sliding direction is a first direction along the touch area on the preset control module, determining that the preset operation corresponding to the sliding direction is a cancel input operation; the first direction may be any direction of the touch area, or may be any direction range, for example, a straight line is specified, and the direction range can be determined when an angle deviating from the straight line is within a preset range.
Sliding operation along a second direction of the touch area on the preset control module, wherein the corresponding preset operation is input recovery operation, and the second direction is a direction different from the first direction; similarly, the second direction may be any direction range, for example, a straight line (different from the straight line corresponding to the first direction) is specified, and the direction range can be determined when the angle deviating from the straight line is within a preset range.
Further, the step of determining, according to a preset second correspondence, the number of times of execution of a preset operation corresponding to the sliding distance of the sliding operation includes:
and when the sliding distance of the sliding operation is a first distance in the first direction or the second direction, determining the execution times of the preset operation corresponding to the sliding distance according to a preset second corresponding relation.
The second corresponding relationship is the corresponding relationship between the sliding distance and the sliding times, and a distance corresponding to the execution times can be preset;
for example, if the length of the touch-enabled area of the preset control module is L, the touch-enabled area is divided into N equal parts, and the length d of each equal part is L/N, then the user performs a cancel or restore input operation every time the user moves an equal part d left/right, so that a multi-level operation can be realized by one-time sliding, and in the execution process, the user can know the execution progress of the current operation through the visual interface.
Optionally, in an embodiment of the present invention, step 103 includes:
when the execution times is N, executing the preset operation on the characters operated in N continuous preset time units before the current time; wherein N is a positive integer.
When the execution times is N, executing the preset operation on the characters operated in N continuous preset time units before the current time;
it should be noted that, when the preset operation is an input canceling operation, the characters operated in N consecutive preset time units refer to the characters input in N consecutive preset time units, and this step cancels the characters input in N consecutive preset time units; and when the preset operation is the input recovery operation, the characters operated in the N continuous preset time units refer to the characters cancelled or deleted in the N continuous preset time units, and the step is to recover the characters cancelled or deleted in the N continuous preset time units.
Optionally, in a specific embodiment of the present invention, the method further includes:
and caching the content input into the edit box of the input method by the user in each preset time unit.
In this step, in order to implement a multi-level undo operation or a multi-level redo operation, during the process of inputting by a user using an input method, the mobile terminal caches the content input into the edit box of the input method in each preset time unit in real time, so as to facilitate multi-level response to the preset operation according to the preset time units during the multi-level operation.
Optionally, in a specific embodiment of the present invention, the method further includes:
displaying a history input list at a preset position of a display screen of the mobile terminal;
and displaying the historical input contents of preset items in the historical input list according to the sequence of inputting the historical input contents into the edit box of the input method.
The edit box refers to a display interface used for displaying input characters on the input method interface, and a user carries out editing operations such as input, deletion and the like in the edit box.
When the input operation of a user is detected, displaying a history input list at a preset position of a display screen of the mobile terminal; the preset position is a position outside the input method interface, referring to fig. 2, the area of the history input list is shown as Q2;
and displaying the historical input contents of the preset items in the historical input list according to the time sequence input into the edit box of the input method, so that a user can conveniently and quickly select the historical input contents.
It should be noted that, in the embodiment of the present invention, even if the content input by the user into the edit box of the input method is deleted in the subsequent operation, the content is still displayed in the history input list as the history input content, so that the user can restore the deleted content.
Correspondingly, step 103 further includes:
and displaying the historical input content corresponding to the preset operation in a preset display mode in the historical input list.
Alternatively, the preset display mode may be a highlighted display, a bolded display, or the like.
When the preset operation is executed, the history input content corresponding to the preset operation is highlighted in the history input list, for example, when the input recovery operation is executed, the input content corresponding to the input recovery operation is highlighted in the history input list.
Optionally, in an embodiment of the present invention, after the step of displaying the history input content of the preset entry, the method further includes:
and when detecting that the history input content of the history input list is selected by the user, inputting the selected history input content into an edit box of the input method.
In this step, in order to achieve the technical effect of fast input, a selection key may be set in the history input content of the history input list, and when a user selects a corresponding content, the selected history input content is directly input into the edit box of the input method.
In the embodiment of the invention, when receiving the content input by the user through the input operation interface of the input method, the control instruction corresponding to the touch operation is determined according to the preset corresponding relation, and the preset operation is performed on the input content in response to the control instruction, so that the recovery function and the cancel function of the input method are realized, the multi-stage input recovery operation and the interaction of the input recovery operation and the input cancel operation are realized, and the problem that the common unreasonable setting of the input cancel and the input restore functions in the existing input method of the mobile terminal is solved. The embodiment is also provided with a history input list, so that the content input into the edit box of the input method by the user in each preset time unit can be cached in real time, and the user can know the execution process of the preset operation; the user can also select the history input content of the history input list to realize quick input.
As a specific example, referring to fig. 2 and 3, in the mobile terminal shown in fig. 2, the fingerprint module is a preset control module, and corresponds to an input canceling operation when the direction indicated by the arrow T1 is leftward, and corresponds to an input resuming operation when the direction indicated by the arrow T2 is rightward.
The control method of the input method shown in fig. 3 mainly includes the following steps:
step 301: the user edits the content in the input method edit box Q3.
The user edits the message in the input method edit box Q3, and the fingerprint module can respond to the left-right movement event of the user, and particularly can call a corresponding library function to realize the function.
If the length of the touchable area of the fingerprint module is L, the touchable area is divided into N equal parts, the length d of each equal part is L/N, and each equal part is moved by the finger of a user left/right, one-time canceling/restoring operation is executed, and multi-stage operation is realized by moving for many times.
Step 302: the content edited by the user is cached.
The input method system is provided with a history input cache region for caching the messages edited by the user. Specifically, the top of the buffer area can be pointed by setting an index p during programming, and the buffer area can be a data structure such as a stack, a linked list and the like. The input method system listens for changes to the content in edit box Q3. If the content of the edit box Q3 changes, i.e. the user has a new input, the new content input in each time unit is cached in the history input cache, and the index p points to the message content.
The input method caches the message edited by the user, and sets an index p to point to the content input in the current edit box (the user performs 'undo' operation, executes p + + action, and takes out the corresponding content from the cache region; and the 'resume' operation executes p-action).
Step 303: the user slides from side to side on the fingerprint module, triggers and predetermines the operation.
The user touches the fingerprint module and moves left and right, the system captures the event and distributes the event, and a history input list Q2 is popped up;
and in the process of touching the fingerprint module by the finger of the user, popping up a view of a user history input list Q2, and loading and displaying data in the history input buffer area. As the index p changes, the content pointed to by p will automatically change color to show the difference. At this time, the user may select the click list to select the history content. Alternatively, the history input list Q2 view may be implemented by a combination of cardview and listview in the android system, and add click events.
Step 304: and determining the preset operation corresponding to the sliding direction.
Determining whether the operation is a trigger preset operation according to the sliding direction:
if the sliding direction is leftward, the operation corresponds to an undo operation; if the sliding direction is rightward, the operation corresponds to a recovery operation.
Triggering cancellation once when the finger of the user moves a distance d to the left, canceling the content input in the last time unit each time, executing an adding operation (p + +) on the cache region index p, taking out the corresponding message from the cache region, and writing the message into an edit box; and if the user moves right, the operation is recovered, and the operation of subtracting one from p (p-) is performed every time the deleted content in the last time unit is recovered.
Step 305: and determining the times of executing the withdrawal and the recovery according to the times of the sliding operation.
Step 306: the preset operation is performed the above-described number of times for the contents in the input method edit box Q3.
In the process, the user can click on the contents in the history input list Q2 to select and locate the corresponding contents.
Step 307: and updating the input method edit box.
In the above example of the present invention, when the user edits content in the input method edit box Q3, a cancel or restore operation is triggered by acquiring a sliding operation on a fingerprint module of the mobile terminal, a control instruction is generated, and the cancel or restore operation is performed on the input content according to the control instruction, so that the input method restore function is implemented, and multi-level input operation restore and interactive operation of input operation restore and cancel can be implemented. The embodiment is also provided with a history input list, so that the content input into the edit box of the input method by the user in each preset time unit can be cached in real time, and the user can know the execution process of the preset operation; the user can also select the history input content of the history input list to realize quick input.
Referring to fig. 4, an embodiment of the present invention further provides a mobile terminal 400, including:
the obtaining module 401 is configured to obtain a touch operation on a preset control module of the mobile terminal 400 when receiving an input content input by a user through an input operation interface of an input method.
The user inputs content through an input operation interface of the input method, that is, the user performs input operation through the input method, and when the input content of the input operation of the user is detected, the touch operation at the position where the preset control module of the mobile terminal 400 is located is obtained.
A determining module 402, configured to determine, according to a preset corresponding relationship, a control instruction corresponding to the touch operation, where the control instruction includes a preset operation and the execution times of the preset operation, and the preset operation is used to control a character input in each preset time unit.
Preferably, in an embodiment of the present invention, the preset operation includes a cancel input operation and/or a restore input operation.
When touch operation is detected, generating a control instruction corresponding to the touch operation according to a preset corresponding relation, wherein the control instruction is used for operating characters input in each preset time unit, and the control instruction comprises preset operation and execution times of the preset operation, wherein the execution times can be multiple times, so that multi-level preset operation is realized.
That is, the control instruction includes, in addition to the preset operation, the number of times of execution of an operation corresponding to the preset operation, and the preset operation includes at least one cancel input operation and/or at least one restore input operation. The single input operation and the single recovery input operation are used for controlling characters input in each preset time unit. For example, when the preset operation is a cancel input operation, and the execution frequency of the cancel input operation is 1, canceling the character input by the last preset time unit before the current time; if the execution times is 2, the characters input by the previous two preset time units before the current time are cancelled.
A response module 403, configured to respond to the control instruction.
And determining a control instruction and target content in the input content corresponding to the control instruction, and responding to the control instruction to execute preset operation on the target content.
The control instruction can include a recovery function, and when a user needs to recover the revoked content, the recovery function can be realized by touching a touch operation of the recovery function; and the execution times of the preset operation in the control instruction can be multiple times, for example, the user needs to recover the input content cancelled by cancelling the input operation for several consecutive times.
Optionally, in an embodiment of the present invention, the preset operation includes a cancel input operation and/or a resume input operation.
Optionally, when the touch operation is a sliding operation,
referring to fig. 5, the obtaining module 401 includes:
a first obtaining sub-module 4011, configured to obtain a sliding direction and a sliding distance of a sliding operation on a preset control module of the mobile terminal 400; or
The second obtaining sub-module 4012 is configured to obtain a sliding direction and a sliding frequency of a sliding operation on a preset control module of the mobile terminal 400.
Optionally, referring to fig. 5, the determining module 402 includes:
a first determining sub-module 4021, configured to determine a preset operation corresponding to the sliding direction of the sliding operation according to a preset first corresponding relationship, and
the second determining sub-module 4022 is configured to determine, according to a preset second corresponding relationship, the number of times of executing a preset operation corresponding to the sliding distance of the sliding operation.
Optionally, in a specific embodiment of the present invention, the first determining sub-module 4021 includes:
the cancelling unit is used for determining that the preset operation corresponding to the sliding direction of the sliding operation is a cancelling input operation according to a preset first corresponding relation when the sliding direction of the sliding operation is a first direction along a touch area on the preset control module; and/or
And the restoring unit is used for determining the preset operation corresponding to the sliding direction of the sliding operation as the input restoring operation according to a preset first corresponding relation when the sliding direction of the sliding operation is a second direction along the touch area on the preset control module.
Optionally, in an embodiment of the present invention, the second determining sub-module 4022 is configured to:
and when the sliding distance of the sliding operation is a first distance in the first direction or the second direction, determining the execution times of the preset operation corresponding to the sliding distance according to a preset second corresponding relation.
Optionally, referring to fig. 5, the response module 403 includes:
the execution sub-module 4031 is configured to, when the execution number is N, execute the preset operation on the characters operated in N consecutive preset time units before the current time, respectively; wherein N is a positive integer.
Optionally, referring to fig. 5, the mobile terminal 400 further includes:
a list display module 404, configured to display a history input list at a preset position of a display screen of the mobile terminal 400;
and displaying the historical input contents of preset items in the historical input list according to the sequence of inputting the historical input contents into the edit box of the input method.
Optionally, referring to fig. 5, the response module 403 includes:
and the display sub-module 4032 is configured to display history input content corresponding to the preset operation in the history input list in a preset display mode.
Optionally, referring to fig. 5, the mobile terminal 400 further includes:
an input module 405, configured to, after the list display module displays the history input content of the preset entry,
and when detecting that the history input content of the history input list is selected by the user, inputting the selected history input content into an edit box of the input method.
In the embodiment of the present invention, when receiving an input content from a user through an input operation interface of an input method, determining a control instruction corresponding to the touch operation according to a preset corresponding relationship, responding to the control instruction, and performing the preset operation on the input content, thereby implementing a recovery function and a cancel function of the input method, and implementing a multi-level recovery operation and interactive operation of the recovery operation and the cancel operation, thereby solving the problem that the cancel and the restore functions are usually set unreasonably in the input method of the existing mobile terminal 400.
Figure 6 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The radio frequency unit 601 is used for receiving input content input by a user through an input operation interface of an input method;
the processor 610 is configured to obtain a touch operation on a preset control module of the mobile terminal;
determining a control instruction corresponding to the touch operation according to a preset corresponding relation, wherein the control instruction comprises a preset operation and the execution times of the preset operation, and the preset operation is used for controlling characters input in each preset time unit;
responding to the control instruction.
In the embodiment of the invention, when receiving the input content of the user through the input operation interface of the input method, the control instruction corresponding to the touch operation is determined according to the preset corresponding relation, the control instruction is responded, the preset operation is performed on the input content, the recovery function and the cancel function of the input method are realized, the multi-stage recovery operation and the interaction of the recovery operation and the cancel operation are realized, and the unreasonable problem that the cancel and the recovery functions are usually set in the existing input method of the mobile terminal is solved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the mobile terminal 600 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 608 is an interface through which an external device is connected to the mobile terminal 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 600 or may be used to transmit data between the mobile terminal 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby integrally monitoring the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The mobile terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program, when executed by the processor 610, implements each process of the control method embodiment of the input method, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the control method embodiment of the input method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (5)

1. A control method of an input method, comprising:
when receiving content input by a user through an input operation interface of an input method, acquiring touch operation on a preset control module of the mobile terminal; the preset control module is a fingerprint module;
determining a control instruction corresponding to the touch operation according to a preset corresponding relation, wherein the control instruction comprises a preset operation and the execution times of the preset operation, and the preset operation is used for controlling characters input in each preset time unit;
responding to the control instruction;
the preset operation comprises an input canceling operation and/or an input restoring operation;
when the touch operation is a slide operation,
the step of obtaining the touch operation on the preset control module of the mobile terminal comprises the following steps:
acquiring a sliding direction and a sliding distance of sliding operation on a preset control module of the mobile terminal; alternatively, the first and second electrodes may be,
acquiring the sliding direction and the sliding times of the sliding operation on a preset control module of the mobile terminal;
the step of determining a control instruction corresponding to the touch operation according to a preset corresponding relationship includes:
determining a preset operation corresponding to the sliding direction of the sliding operation according to a preset first corresponding relation, an
Determining the execution times of the preset operation corresponding to the sliding distance of the sliding operation according to a preset second corresponding relation;
the step of determining the number of times of execution of the preset operation corresponding to the sliding distance of the sliding operation according to the preset second corresponding relationship includes:
when the sliding distance of the sliding operation is a first distance in a first direction or a second direction, determining the execution times of the preset operation corresponding to the sliding distance according to a preset second corresponding relation;
the step of responding to the control instruction comprises:
when the execution times is N, executing the preset operation on the characters operated in N continuous preset time units before the current time; wherein N is a positive integer;
displaying a history input list at a preset position of a display screen of the mobile terminal;
displaying the historical input contents of preset items in the historical input list according to the sequence input into the edit box of the input method;
after the step of displaying the historical input content of the preset item, the method further comprises the following steps:
and when detecting that the history input content of the history input list is selected by the user, inputting the selected history input content into an edit box of the input method.
2. The method according to claim 1, wherein the step of determining the preset operation corresponding to the sliding direction of the sliding operation according to the preset first corresponding relationship comprises:
when the sliding direction of the sliding operation is a first direction along a touch area on the preset control module, determining that the preset operation corresponding to the sliding direction of the sliding operation is a cancel input operation according to a preset first corresponding relation; and/or
And when the sliding direction of the sliding operation is a second direction along the touch area on the preset control module, determining a preset operation corresponding to the sliding direction of the sliding operation as a recovery input operation according to a preset first corresponding relation.
3. A mobile terminal, comprising:
the acquisition module is used for acquiring touch operation on a preset control module of the mobile terminal when receiving input content of a user through an input operation interface of an input method; the preset control module is a fingerprint module;
the determining module is used for determining a control instruction corresponding to the touch operation according to a preset corresponding relation, wherein the control instruction comprises preset operation and execution times of the preset operation, and the preset operation is used for controlling characters input in each preset time unit;
the response module is used for responding to the control instruction;
the preset operation comprises an input canceling operation and/or an input restoring operation;
when the touch operation is a slide operation,
the acquisition module includes:
the first obtaining submodule is used for obtaining the sliding direction and the sliding distance of the sliding operation on a preset control module of the mobile terminal; alternatively, the first and second electrodes may be,
the second acquisition submodule is used for acquiring the sliding direction and the sliding times of the sliding operation on the preset control module of the mobile terminal;
the determining module comprises:
a first determining submodule for determining a preset operation corresponding to the sliding direction of the sliding operation according to a preset first corresponding relationship, an
The second determining submodule is used for determining the execution times of the preset operation corresponding to the sliding distance of the sliding operation according to a preset second corresponding relation;
the second determination submodule is configured to:
when the sliding distance of the sliding operation is a first distance in a first direction or a second direction, determining the execution times of the preset operation corresponding to the sliding distance according to a preset second corresponding relation;
the response module includes:
the execution submodule is used for executing the preset operation on the characters operated in the continuous N preset time units before the current moment when the execution times is N; wherein N is a positive integer;
the list display module is used for displaying a history input list at a preset position of a display screen of the mobile terminal;
displaying the historical input contents of preset items in the historical input list according to the sequence input into the edit box of the input method;
an input module for displaying the history input content of the preset item after the list display module displays the history input content of the preset item,
and when detecting that the history input content of the history input list is selected by the user, inputting the selected history input content into an edit box of the input method.
4. The mobile terminal of claim 3, wherein the first determining submodule comprises:
the cancelling unit is used for determining that the preset operation corresponding to the sliding direction of the sliding operation is a cancelling input operation according to a preset first corresponding relation when the sliding direction of the sliding operation is a first direction along a touch area on the preset control module; and/or
And the restoring unit is used for determining the preset operation corresponding to the sliding direction of the sliding operation as the input restoring operation according to a preset first corresponding relation when the sliding direction of the sliding operation is a second direction along the touch area on the preset control module.
5. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps in the method of controlling an input method according to any one of claims 1 to 2.
CN201810078432.2A 2018-01-26 2018-01-26 Control method of input method and mobile terminal Active CN108089725B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810078432.2A CN108089725B (en) 2018-01-26 2018-01-26 Control method of input method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810078432.2A CN108089725B (en) 2018-01-26 2018-01-26 Control method of input method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108089725A CN108089725A (en) 2018-05-29
CN108089725B true CN108089725B (en) 2020-10-02

Family

ID=62182777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810078432.2A Active CN108089725B (en) 2018-01-26 2018-01-26 Control method of input method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108089725B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949194B (en) * 2020-08-11 2022-08-19 深圳传音控股股份有限公司 Character input method, terminal device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616994A (en) * 2013-12-09 2014-03-05 珠海金山办公软件有限公司 Method and device for controlling electronic device
CN105677207A (en) * 2014-11-17 2016-06-15 浪潮乐金数字移动通信有限公司 Intelligent mobile phone input information editing method and device
CN106775375A (en) * 2016-11-21 2017-05-31 努比亚技术有限公司 A kind of end message editing and processing devices and methods therefor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346066A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
CN105955810A (en) * 2016-04-26 2016-09-21 广东欧珀移动通信有限公司 Method and device for regulating application program functions through fingerprint module, and mobile terminal
CN106843695A (en) * 2017-02-14 2017-06-13 维沃移动通信有限公司 The control method and mobile terminal of a kind of mobile terminal
CN106980452A (en) * 2017-02-15 2017-07-25 捷开通讯(深圳)有限公司 A kind of operating method based on fingerprint recognition, device and terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616994A (en) * 2013-12-09 2014-03-05 珠海金山办公软件有限公司 Method and device for controlling electronic device
CN105677207A (en) * 2014-11-17 2016-06-15 浪潮乐金数字移动通信有限公司 Intelligent mobile phone input information editing method and device
CN106775375A (en) * 2016-11-21 2017-05-31 努比亚技术有限公司 A kind of end message editing and processing devices and methods therefor

Also Published As

Publication number Publication date
CN108089725A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN108491133B (en) Application program control method and terminal
US20210044556A1 (en) Message management method and terminal
CN108737904B (en) Video data processing method and mobile terminal
CN110830363B (en) Information sharing method and electronic equipment
CN110196667B (en) Notification message processing method and terminal
CN110851040B (en) Information processing method and electronic equipment
CN108762705B (en) Information display method, mobile terminal and computer readable storage medium
CN107728923B (en) Operation processing method and mobile terminal
CN110888707A (en) Message sending method and electronic equipment
CN109407948B (en) Interface display method and mobile terminal
CN107992342B (en) Application configuration changing method and mobile terminal
CN109408171B (en) Display control method and terminal
CN110442279B (en) Message sending method and mobile terminal
CN108958593B (en) Method for determining communication object and mobile terminal
CN108446156B (en) Application program control method and terminal
CN109407949B (en) Display control method and terminal
CN108920069B (en) Touch operation method and device, mobile terminal and storage medium
CN108062194B (en) Display method and device and mobile terminal
CN108124059B (en) Recording method and mobile terminal
CN108600498B (en) Information prompting method and device
CN111143011B (en) Display method and electronic equipment
CN111367483A (en) Interaction control method and electronic equipment
CN109189514B (en) Terminal device control method and terminal device
CN108388459B (en) Message display processing method and mobile terminal
CN111475066B (en) Background switching method of application program and electronic equipment

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