The content of the invention
The application proposes a kind of content input method, and the method includes:
Monitor the touch event for input frame;
Whether the touch event that judgement is listened to is predeterminable event;The predeterminable event includes the first default thing
Part and the second predeterminable event;
When the touch event for listening to is first predeterminable event, by the input in the input frame
Content is emptied and keeps in the input content;When the touch event for listening to is second predeterminable event
When, will it is temporary described in input content be added in the input frame.
Optionally, it is described will it is temporary described in input content be added to the input frame and include:
Judge whether to have kept in multiple input contents;
When multiple input contents have been kept in, include the text of the plurality of input content to user's output
This selective listing, and the input content that user is selected in the text selecting list is added to described
In input frame;
When an input content has only been kept in, by this input content be added in the input frame.
Optionally, methods described also includes:
When will it is temporary described in input content is added in the input frame after, will it is temporary described in it is defeated
Enter content deletion.
Optionally, methods described also includes:
After input content is emptied, will export in the input frame in the input frame for pointing out to use
Input content in input frame described in family has kept in the prompting message for completing.
Optionally, first predeterminable event includes the first slip for optional position in the input frame
Event;Second predeterminable event includes the second slip event for optional position in the input frame;
Wherein, first slip event is different with the glide direction of second slip event.
The application also proposes a kind of content input unit, and the device includes:
Module is monitored, for monitoring the touch event for input frame;
Judge module, for judging whether the touch event for listening to is predeterminable event;The predeterminable event
Including the first predeterminable event and the second predeterminable event;
Add module, for the touch event for listening to be first predeterminable event when, will be described defeated
Enter the input content in frame to empty and keep in the input content;It is institute in the touch event for listening to
When stating the second predeterminable event, will it is temporary described in input content be added in the input frame.
Optionally, the add module specifically for:
Judge whether to have kept in multiple input contents;
When multiple input contents have been kept in, include the text of the plurality of input content to user's output
This selective listing, and the input content that user is selected in the text selecting list is added to described
In input frame;
When an input content has only been kept in, by this input content be added in the input frame.
Optionally, described device also includes:
Removing module, for, after input content is added in the input frame described in keeping in, inciting somebody to action
The temporary input content is deleted.
Optionally, described device also includes:
Output module, for by the input frame after input content is emptied, in the input frame
Export for pointing out the input content in input frame described in user to keep in the prompting message for completing.
Optionally, first predeterminable event includes the first slip for optional position in the input frame
Event;Second predeterminable event includes the second slip event for optional position in the input frame;
Wherein, first slip event is different with the glide direction of second slip event.
The application provides a kind of more easily content input mode, by monitoring the touch for input frame
Event, and judge whether the touch event for listening to is predeterminable event;When the touch event for listening to is the
During one predeterminable event, the input content in the input frame is emptied and the input content is kept in;
When the touch event for listening to is the second predeterminable event, will it is temporary described in input content be added to institute
State in input frame, user is realized by simple gesture operation, it is possible to the efficient text to being input into
Originally carry out temporary and to keeping in input content to reuse, such that it is able to lift the input of user
Experience.
Specific embodiment
In existing realization, user is during being chatted using instant messenger, if the use
Want to, when the text for completing has been input in input frame carrying out temporary, in traditional solution, leading at family
It is often to carry out replicating shearing manipulation to realize for being input into the text for completing based on user.
For example, when user needs the content of text to input frame to carry out temporary, can be double in input frame
Hit or long by input frame triggering editor, then select full the content of text in input frame, then to input frame
In content of text replicated or shearing manipulation is keeping in text content.When user needs
When reusing temporary text content, text content can be pasted by same operation
In input frame.It can be seen that, in traditional solution, to being input into when the text for completing carries out temporary
Operation is not succinct enough and spends the time longer.
In order to solve the above problems, the application provides a kind of more easily content input mode, by prison
The touch event for input frame is listened, and judges whether the touch event for listening to is predeterminable event;Work as prison
When the touch event heard is the first predeterminable event, the input content in the input frame is emptied and temporary
Deposit the input content;When the touch event for listening to is the second predeterminable event, described in temporary
Input content is added in the input frame, realizes user by simple gesture operation, it is possible to
Efficiently the text to being input into carries out temporary and temporary input content is reused, so as to
The input experience of user can be lifted.
The application is described below by specific embodiment and with reference to specific application scenarios.
Refer to Fig. 1, Fig. 1 is a kind of content input method that one embodiment of the application is provided, the method
Executive agent can be terminal, the terminal can be mounted with instant chat client (hereinafter referred to as visitor
Family end) smart mobile phone, panel computer, PC computers etc., methods described performs following steps:
Step 101, monitors the touch event for input frame;
Step 102, judges whether the touch event for listening to is predeterminable event;The predeterminable event includes
First predeterminable event and the second predeterminable event;
Step 103, when the touch event for listening to is first predeterminable event, by the input frame
In input content empty and keep in the input content;When the touch event for listening to is described the
During two predeterminable events, the temporary input content is added in the input frame.
In the present embodiment, user is during being chatted by above-mentioned client, when user needs
When input content in input frame carries out temporary, simple gesture operation can be carried out for input frame,
Efficiently to carry out input content temporary and to having kept in input content to reuse.
Wherein, above-mentioned input content can include text, expression or picture being input into etc..It is above-mentioned
Default touch operation can be included for the gesture operation of input frame.The default touch operation can be wrapped
Include the touch operation that semantic conflict is not resulted in the user's touch operation given tacit consent in above-mentioned client.
For example, in above-mentioned client, press for the single-click operation in input frame, double click operation or length
Operation generally all corresponds to a kind of system semantics of acquiescence;Such as, when user click input frame, it will usually
Trigger input frame enters input pattern, and input cursor is shown in input frame;When user's double-click or length are pressed
During input frame, it will usually which trigger input frame enters edit pattern, under edit pattern, user can be to defeated
Enter the input content in frame to be selected entirely or new content is pasted in input frame.
Therefore, client is being directed to the default touch operation of input frame according to user, to input content
When carrying out the temporary and input content to having kept in and reusing, the default touch for being adopted
User's touch operation that operation is given tacit consent in being different from client, so as to not result in semantic conflict.
In a kind of implementation for illustrating, above-mentioned default touch operation can be included for input frame
Slide.
Wherein, the first slide and second that the slide can be differed including glide direction slides
Operation, the input content during first slide can be used for triggering client to input frame are carried out temporarily
Deposit, the input content kept in can be again inputted into by second slide with user's triggering client
In input frame.For example, above-mentioned first slide can be slide to the left, and above-mentioned second slides behaviour
Work can be slip event to the right.
Below with the input content as text, above-mentioned first slide is slide to the left, and
Above-mentioned second slide for as a example by slide to the right, to user in chat process to input content
Carry out temporary and the process that temporary input content is reused is described in detail.
Fig. 2 is referred to, when user is during being chatted using above-mentioned client, if user thinks
Will to input frame in the text of input when carrying out temporary, can be slided in input frame to the left with finger
Dynamic operation, triggers client this has been input into text and keep in default temporarily providing room.
Wherein, the temporarily providing room can be different from user when duplication shearing manipulation is performed, for storing
The memory space of the content for replicating or shearing, so as to ensure when the above-mentioned text that has been input into is in separate storage sky
Between in storage after the completion of, user perform again duplication shearing manipulation when, this has been input into text and will not be capped
And disappear.
At the same time, user is during being chatted using above-mentioned client, and above-mentioned client can be with
Touch event in the real-time monitoring users in backstage are for input frame, and judge the touch event for listening to
Whether it is the first slip event corresponding with above-mentioned slide to the left.
When client listens to the first slip event corresponding with above-mentioned slide to the left, can trigger
Client keeps in the text of input in input frame in above-mentioned default temporarily providing room, and by input frame
In this be input into text removing,
Wherein, client has been input into this in input frame after text removes, can be with defeated in input frame
Go out one for point out user this be input into text and kept in the above-mentioned default temporarily providing room and completed
Prompting message.
Certainly, when realizing, can also store in above-mentioned temporarily providing room and multiple be input into text, Yong Hu
During being chatted using above-mentioned client, can be by carrying out repeatedly sliding to the left in input frame
Operation come trigger client by it is multiple be input into texts store in above-mentioned default temporarily providing room.
Fig. 3 is referred to, when user is during being chatted using above-mentioned client, if user thinks
When reusing to temporary input text, can be slided in input frame to the right behaviour with finger
Make, trigger the text of input that client will be stored in above-mentioned default temporarily providing room and be added to input
In frame.
At the same time, user is during being chatted using above-mentioned client, and above-mentioned client can be with
Touch event in the real-time monitoring users in backstage are for input frame, and judge the touch event for listening to
Whether it is the second slip event corresponding with above-mentioned slide to the right.
When client listens to the second slip event corresponding with above-mentioned slide to the right, can trigger
The text of input that client is will be stored in above-mentioned default temporarily providing room is added in input frame.
Wherein, as it was previously stated, can store in the default temporarily providing room it is multiple be input into text, therefore
Client is after above-mentioned second slip event is listened to, if kept in above-mentioned default temporarily providing room many
It is individual when being input into text, client can by store in the independent memory space it is multiple be input into text with
The form of text selecting list is exported to user, user can select in the list it is secondary be added to it is defeated
Enter the input text in frame.
After the completion of user selects, client can obtain the input text of user's selection, then should
It has been input into text to be added in input frame, to reuse the input text.When this has been input into text
Originally, after being added to input frame, this can also be input into text from above-mentioned default temporarily providing room for client
Delete.Certainly, if only store one in above-mentioned default temporarily providing room and be input into text, client
End this directly can be input into text and has been added in input frame, and the input text is being added to input
After frame, this is input into text and has been deleted from above-mentioned default temporarily providing room.
By above example, user during being chatted using client, by defeated
Simple slide to the left or to the right is performed in entering frame, it is possible to be efficiently completed very much in being input into
Keeping in for appearance and reusing for temporary input content, therefore the chat experience of user can be lifted.
In the present embodiment, user is carrying out to input content temporary and temporary content is being carried out
When reusing, except it is described above can by user for input frame default slide come
Beyond triggering, can also be triggered by other types of touch operation when realizing.
For example, it is still so that above-mentioned input content is as text as an example, in a kind of implementation for illustrating, above-mentioned
Default touch operation can also be the clicking operation for pre-set button in input frame.When realizing, can be with
In input frame preset " keep in " button, the button for trigger client in input frame
Input text is kept in.In this implementation, user can be by carrying out click behaviour to the button
Work is kept in come the text of input in triggering client to input frame.When client is listened on backstage
User in input frame during the click event corresponding with above-mentioned clicking operation of the button, can immediately by
The text of input in input frame keeps in above-mentioned default temporarily providing room, and will be this in input frame defeated
Enter text removing.
After the completion of temporary, client " can be kept in " button to this immediately and be carried out button state switching, will
The button is revised as " recovery " button.Now user can be clicked on by " recovering " button to this
Operation, triggers client and the temporary text of input for completing is added in input frame.When client exists
Backstage listens to user in input frame during the click event corresponding with above-mentioned clicking operation of the button,
Immediately the above-mentioned text that has been input into stored in above-mentioned default temporarily providing room can be added in input frame,
And by store in above-mentioned default temporarily providing room this be input into text suppression.
In another kind of implementation for illustrating, above-mentioned default touch operation is can also be in input frame
Length by operation.In this implementation, when client listens to user for input frame on backstage
When pressing event by the corresponding length of operation with above-mentioned length, an editing options can be input into immediately, the editor selects
Item is except including " full choosing " in existing realization, " full choosing ", " stickup " and " clipbook " etc.
Beyond sub- option, one " keeping in " and " recovery " sub- option can also be provided.
User can trigger client to input by carrying out clicking operation to " keeping in " the sub- option
The text of input in frame is kept in.When client listens to user for being somebody's turn to do " keeping in " son on backstage
During the click event corresponding with above-mentioned clicking operation of option, can immediately by the text of input in input frame
Originally keep in above-mentioned default temporarily providing room, and this in input frame has been input into into text removing.
Equivalent, for temporary input text, user can be by entering to " recovery " the sub- option
Row clicking operation, triggers client and the temporary input text for completing is added in input frame.Work as client
End listens to user on backstage and clicks thing for being somebody's turn to do the corresponding with above-mentioned clicking operation of " recovery " sub- option
During part, immediately the text of input stored in above-mentioned independent memory space can be added in input frame,
And by store in above-mentioned default temporarily providing room this be input into text suppression.
Trigger client to keep in input content for above by other types of touch operation
And the implementation reused by temporary input content, one is no longer carried out in the present embodiment
One enumerates.
In the embodiment above, by monitoring the touch event for input frame, and judge that what is listened to touches
Touch whether event is predeterminable event;When the touch event for listening to is the first predeterminable event, will be described defeated
Enter the input content in frame to empty and keep in the input content;When the touch event for listening to is the
During two predeterminable events, will it is temporary described in input content be added in the input frame, realize user
By simple gesture operation, it is possible to it is efficient the text that has been input into carried out it is temporary and to keeping in
Input content is reused, and the input such that it is able to lift user is experienced.
It is corresponding with said method embodiment, present invention also provides the embodiment of device.
Fig. 4 is referred to, the application proposes a kind of content input unit 40, is applied to terminal, and the terminal can
Being to be mounted with the smart mobile phone of instant chat software, panel computer, PC computers etc.;Wherein, refer to
Fig. 5, as the hardware structure carried involved by the terminal of the content input unit 40 in, generally include
CPU, internal memory, nonvolatile memory, network interface and internal bus etc.;As a example by implemented in software,
The content input unit 40 is generally understood that the computer program being carried in internal memory, by CPU
The logic device that the software and hardware formed after operation combines, described device 40 include:
Module 401 is monitored, for monitoring the touch event for input frame;
Judge module 402, for judging whether the touch event for listening to is predeterminable event;It is described default
Event includes the first predeterminable event and the second predeterminable event;
Add module 403, for when the touch event for listening to is first predeterminable event, by institute
State the input content in input frame to empty and keep in the input content;In the touch event for listening to
For second predeterminable event when, will it is temporary described in input content be added in the input frame.
In the present embodiment, the add module 402 specifically for:
Judge whether to have kept in multiple input contents;
When multiple input contents have been kept in, include the text of the plurality of input content to user's output
This selective listing, and the input content that user is selected in the text selecting list is added to described
In input frame;
When an input content has only been kept in, by this input content be added in the input frame.
In the present embodiment, described device 400 also includes:
Removing module 404, for will it is temporary described in after input content is added in the input frame,
Described in will be temporary, input content be deleted.
In the present embodiment, described device 400 also includes:
Output module 405, for by the input frame after input content is emptied, in the input
Export in frame for pointing out the input content in input frame described in user to keep in the prompting message for completing.
In the present embodiment, first predeterminable event includes for optional position in the input frame
One slip event;Second predeterminable event includes the second slip for optional position in the input frame
Event;Wherein, first slip event is different with the glide direction of second slip event.
Those skilled in the art will readily occur to this after considering specification and putting into practice invention disclosed herein
Other embodiments of application.The application is intended to any modification, purposes or the adaptability of the application
Change, these modifications, purposes or adaptations follow the general principle of the application and including this Shen
Please undocumented common knowledge or conventional techniques in the art.Description and embodiments only by
It is considered as exemplary, the true scope of the application and spirit are pointed out by claim below.
It should be appreciated that the application be not limited to be described above and be shown in the drawings it is accurate
Structure, and various modifications and changes can be being carried out without departing from the scope.Scope of the present application is only by institute
Attached claim is limiting.
The preferred embodiment of the application is the foregoing is only, it is not to limit the application, all at this
Within the spirit and principle of application, any modification, equivalent substitution and improvements done etc. should be included in
Within the scope of the application protection.