Content of the invention
In order to solve problem of the prior art, embodiments provide a kind of based on content be input into exchange method and
Device, to avoid transmission content by mistake.
On the one hand, there is provided a kind of exchange method being input into based on content, methods described are included:
Show the input content of user in first order viewing area;
Transmission upon receipt of input content is instructed, by currently displayed for the input content of current display area viewing area
On the next stage viewing area in domain, wherein, current display area refers to the viewing area that cursor is located;
When the transmission for receiving input content is instructed, current display area has been afterbody viewing area, sends out to user
Send the input content in afterbody viewing area;
Wherein, the input content in current display area is editable.
Alternatively, methods described also includes:
When there is input content in one-level viewing area, determine the next stage viewing area of this grade of viewing area in can
Editing mode;
When there is no input content in one-level viewing area, determine that the next stage viewing area of this grade of viewing area is in
Can not editing mode.
Alternatively, the next stage viewing area in current display area shows that input content includes:
Determine that the next stage viewing area of current display area does not have input content, by the input of current display area
Appearance is emptied, and by the next stage viewing area of currently displayed for the input content of current display area viewing area.
Alternatively, methods described also includes:
In the case where the next stage viewing area of current display area has input content, when receiving input content
When sending instruction, point out to send failure.
Alternatively, at least there is two-stage viewing area, and viewing area not at the same level is on same display window.Wherein,
When there is two-stage viewing area:When first order viewing area and second level viewing area, first order viewing area is initial reception
And show that the viewing area of user input content, afterbody viewing area are second level viewing area.
Alternatively, after input content is sent to user, methods described also includes:Determine that first order viewing area is to work as
Front viewing area.
On the other hand, there is provided a kind of interactive device being input into based on content, described device are included:
Receiver module, for the input content of receive user;
Processing module, for the instruction received according to receiver module, control display module is accordingly shown;
Display module, for showing the input content of user in first order viewing area;
The receiver module, is additionally operable to the transmission instruction of receives input content;
The display module, is additionally operable to, once the receiver module receives the transmission instruction of input content, currently to show
Show that wherein, current display area refers to light on the next stage viewing area of the currently displayed viewing area of input content in region
The viewing area that mark is located;
The interactive device also includes sending module, instructs when institute for receiving the transmission of input content when receiver module
State processing module and determine that current display area has been afterbody viewing area, send in afterbody viewing area to user
Input content;
Wherein, the input content in current display area is editable.
Alternatively, the processing module is additionally operable to:
When there is input content in one-level viewing area, determine the next stage viewing area of this grade of viewing area in can
Editing mode;
When there is no input content in one-level viewing area, determine that the next stage viewing area of this grade of viewing area is in
Can not editing mode.
Alternatively, the processing module specifically for:Determine current display area next stage viewing area do not exist defeated
Enter content, the input content of current display area is emptied, and the display module is controlled by the input of current display area
Hold on the next stage viewing area of currently displayed viewing area;
The display module is additionally operable to:Show current display area on the next stage viewing area of current display area
Input content.
Alternatively, the display module is additionally operable to:
Receive in the case where processing module determines that the next stage viewing area of current display area has input content
When module receives the transmission instruction of input content, point out to send failure.
Alternatively, at least there is two-stage viewing area, and viewing area not at the same level is on same display window.
Alternatively, after the sending module sends input content to user, the processing module is additionally operable to:
Determine that first order viewing area is current display area.
The exchange method being input into based on content provided in an embodiment of the present invention and device, using multi-levels display region, once
Transmission instruction is received, the input content on previous stage viewing area can show on next stage viewing area, work as input content
When transmission instruction is received behind afterbody viewing area, the input content of afterbody viewing area can be sent to use
Family.In this way, input content before user is sent to needed to send confirmation through at least twice, therefore, it is possible to greatest extent
Avoid to user miss transmission content.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Fig. 1 is the flow chart of the exchange method being input into based on content provided in an embodiment of the present invention.With reference to Fig. 1, the present invention
The exchange method being input into based on content that embodiment is provided may include:
11st, show the input content of user in first order viewing area.
In the embodiment of the present invention, on the display interface of instant messaging (IM), there may be multi-levels display region, such as two-stage
Viewing area more than viewing area or two-stage.Wherein, first order viewing area is the display for showing user input content at first
Region, i.e. the content of user input can be shown on first order viewing area first.
First order viewing area can be the form of content input frame, or other self-defining forms, the present invention
The form of viewing area is not specifically limited.User can be shown by the interior content being perhaps input into by mouse of input through keyboard
On first order viewing area.
Input content in the embodiment of the present invention can be a variety of forms, for example word, picture, expression, audio frequency,
Video etc..User can enter edlin to input content during input content, so that input content is as word as an example, example
Such as change the word in input content, the word that deletes in input content or increase new word etc..
12nd, the transmission upon receipt of input content is instructed, will be currently displayed for the input content of current display area aobvious
Show on the next stage viewing area in region, wherein, current display area refers to the viewing area that cursor is located, current display area
In input content be editable.
Wherein, the transmission instruction can be triggered by " transmission " button is clicked on, naturally it is also possible to corresponding fast by " transmission "
Prompt key (for example, ENTER keys) is triggered, and the shortcut can be pre-set as required.
By taking three-level viewing area as an example, the initial input content of user shows on first order viewing area, it is possible to right
Input content on first order viewing area (current display area) carries out edit operation.When transmission instruction is received, first
Input content on level viewing area can show on the viewing area of the second level.At the same time, can be by first order viewing area
Input content empty.Certainly, the input content on first order viewing area can not also be emptied automatically, but by user according to
Need to empty manually.After input content is shown on the viewing area of the second level, user can continue in second level viewing area (this
When, second level viewing area is changed into current display area) increase new input content, or edit original input content.Treat
After the process of second level viewing area terminates, under the triggering for sending instruction, can be by the input content on the viewing area of the second level
Show that is, (now, third level viewing area is changed into current display area on third level viewing area on next stage viewing area
Domain).
Alternatively, by the next stage viewing area of currently displayed for the input content of current display area viewing area
Before, can first determine that the next stage viewing area of current display area whether there is input content.Determining current display area
When the next stage viewing area in domain does not have input content, then the input content of current display area is emptied, and currently will be shown
Show on the next stage viewing area of the currently displayed viewing area of input content in region.And determining current display area
In the case that next stage viewing area has input content, when the transmission for receiving input content is instructed, it is impossible to currently will show
Show on the next stage viewing area of the currently displayed viewing area of input content in region, can now point out to send failure.
Further, since there is edit operation, the input content on the viewing area of the second level can be with first order viewing area
On input content different.Meanwhile, the input content on third level viewing area can also with second level viewing area on defeated
Enter content different.Certainly, in the case where not operating to the input content on viewing areas at different levels, first order viewing area
Input content on domain, second level viewing area and third level viewing area can be identical.
It is pointed out that above simply describe by taking three-level viewing area as an example, the embodiment of the present invention can be applicable to two
Viewing area more than level or two-stage, the concrete series of viewing area can set as needed.Meanwhile, receiving transmission
After instruction, the input content in current display area can be emptied automatically, it is also possible to according to subsequently being emptied by user manually.
13rd, when the transmission for receiving input content is instructed, current display area has been afterbody viewing area, Xiang Yong
Family sends the input content in afterbody viewing area.
In embodiments of the present invention, just aobvious in the next stage viewing area of current display area whenever transmission instruction is received
Show the input content of current display area, until reaching afterbody viewing area.
In the case that input content reaches afterbody viewing area, if receiving transmission instruction again, can be to opposite end
User sends the input content in afterbody viewing area.
In embodiments of the present invention, after input content is sent to user, can be defined as working as by first order viewing area
Front viewing area.Now, cursor returns to first order viewing area, with the input for receiving again and showing user.
Although it is pointed out that same interface of the viewing area not at the same level indicated above in instant communication client
On, but viewing area not at the same level can also be on different display interfaces, for example, and one-level viewing area is a display circle
The form in face.
In embodiments of the present invention, when there is input content in one-level viewing area, it may be determined that this grade of viewing area
Cursor now can be moved on to the next stage viewing area in editable state by next stage viewing area, in increasing or delete
Hold.When there is no input content in one-level viewing area, determine the next stage viewing area of this grade of viewing area in locking
State, i.e., can not editing mode, now cannot increase in the next stage viewing area or delete content.
In addition, in embodiments of the present invention, the input content in viewing areas at different levels can also may be used from being manually entered
To come from other systems, including but not limited to intelligent Answer System.When input content is derived to be manually entered, customer service can root
Puing question to according to user carries out content input;When input content derives from other systems, by taking intelligent Answer System as an example, user proposes
A problem can answer text via the related suggestion of keyword recognition Auto-matching, when customer service assert that text is answered in this suggestion
When being fully able to answer user's query, this suggestion can be answered text as input content, shown in viewing area and sent
Give user.Certainly, customer service can also here suggestion answer text on the basis of enter edlin after, be then forwarded to user.
The exchange method being input into based on content provided in an embodiment of the present invention, using multi-levels display region, once receive send out
Instruction is sent, the input content on previous stage viewing area can show on next stage viewing area, when input content is in most
When transmission instruction is received behind rear stage viewing area, the input content of afterbody viewing area can be sent to user.With
This mode, input content before user is sent to needed to send confirmation through at least twice, therefore, it is possible to keep away to greatest extent
Exempt to miss transmission content to user.
Fig. 2 is the flow chart of the exchange method being input into based on content provided in an embodiment of the present invention.With reference to Fig. 2, with two-stage
As a example by viewing area, the exchange method being input into based on content provided in an embodiment of the present invention may include:
21st, the input of receive user, and show the input content of user in first order viewing area.
Wherein, when there is input content on first order viewing area, second level viewing area is in editable state, this
When the input content such as editor's word on the viewing area of the second level can be marked on by mobile light;When not existing on first order viewing area
During input content, second level viewing area is in can not editing mode.
22nd, upon receipt of the transmission instruction to input content on first order viewing area, determine second level viewing area
Whether there is input content.
23rd, determine that second level viewing area does not have input content, the input content of first order viewing area is emptied, and
The input content of first order viewing area is shown on the viewing area of the second level.
24th, in the case of there is input content on second level viewing area is determined, when receive input content send out
When sending instruction, point out to send failure.
Now, operation can be passed through to delete the input content on the viewing area of the second level, with aobvious in second level viewing area
Show the input content of first order viewing area.
Or, alternatively, can continue to edit the input content on the viewing area of the second level, and by the viewing area of the second level
Input content be sent to user.In embodiments of the present invention, in the case of there is input content on the viewing area of the second level, former
Some input contents can't be covered by the input content on first order viewing area, can subsequently be continuing with second level viewing area
Input content on domain, it is to avoid repeatedly input, improves communication efficiency of enterprise's customer service to user.
25th, when receiving to the transmission instruction of input content on the viewing area of the second level, the second level is sent to user and shown
Show the input content in region.
26th, first order viewing area is redefined for currently editable viewing area.That is, cursor is moved back into the first order
Viewing area.
After step 26, can continue to edit input content time on first order viewing area according to the input of peer user
Multiplexing family.
The exchange method being input into based on content provided in an embodiment of the present invention, can not only avoid sending by mistake, and downward
Before one-level viewing area sends input content, first determine that next stage viewing area whether there is input content, when next stage shows
Show that region does not show the input content in current display area in next stage viewing area when there is input content, and in next stage
Viewing area just shows the input content in current display area in next stage viewing area when there is no input content, thus,
Can ensure that the input content of the pre-editing on the next stage viewing area will not be capped disappearance, can continue with and edit
Input content, improves input efficiency.
Fig. 3-Figure 11 be apply the embodiment of the present invention based on content be input into exchange method when various display interfaces
Schematic diagram.In the embodiment of the present invention in instantaneous communication system, there may be the viewing area of multiple levels:" first order shows
Region ", " second level viewing area " ..., " N levels viewing area ".With two-stage viewing area and aobvious referring to Fig. 3-11
Show region for being described further to the embodiment of the present invention as a example by content input frame.
As shown in figure 3, when in first order content input frame (rudimentary viewing area) without content, second level content input frame
(senior viewing area) is in the lock state, it is impossible to is input into, edits any content, comprising character, picture, expression, voice, video
Deng.
As shown in figure 4, when there is any character in " first order content input frame ", " second level content input frame " is automatic
Unblock.When cursor is located at " second level content input frame ", any character, picture, expression etc. can be directly inputted.
As shown in Figure 5 and Figure 6, when cursor is located in " first order content input frame ", " confirmation " button, or input are clicked on
After " transmission shortcut " (arbitrarily can configure), full content and form in first order input frame will be automatically transferred " second
In level content input frame ", while cursor is also followed in " second level content input frame " automatically.
As shown in fig. 7, when cursor is located in " second level content input frame ", clicking on " transmission " button or input " sending fast
During prompt key ", full content and form in " second level content input frame " will be sent to user.Simultaneously cursor can return to " the
One-level content input frame ", " second level content input frame " are locked.
As shown in Figure 8 and Figure 9, when there is content in " first order content input frame ", manually cursor placement can be existed
In " second level content input frame ", and add new content, after clicking on " transmission " button or input " transmission shortcut ", content will
User is transmitted directly to, cursor returns " first order content input frame ".Do not interfere with when executing this operation and be present in " the first order
Content in content input frame ".
As shown in Figure 10 and Figure 11, when existing content in " second level content input frame ", manually cursor can be shifted
Return " first order content input frame " and click on " confirmation " button or input " transmission shortcut ", will be prompted to " sending failure ", i.e., " the
Content and form in one-level content input frame " cannot move to " second level content input frame ", also not interfere with " in the second level
Content and form in appearance input frame ", and cursor dwell is in " first order content input frame ".I.e. only highest input frame
In content, can just be sent directly to user.Content points percussion in rudimentary input frame can only be stepped up after sending.When above
In one-level input frame during existing content, will be unable to continue to rise.
Wherein, the text in content input frames at different levels can be derived from and is manually entered, it is also possible to come from other systems
The suggestion text of (including but not limited to intelligent Answer System).
Therefore, the interaction being input into based on content provided in an embodiment of the present invention can have the advantages that:
1) in most cases, before content is formally sent to user, adopting consecutive click chemical reaction is needed send button or to strike twice
Shortcut twice is hit, can avoid to a certain extent sending by mistake.
2) in customer service with user frequently dialog procedure, when customer service has been input into a lot of contents, but first must answer
During user's another question, it is not necessary to delete the content for having editted before.
Figure 12 is a kind of structured flowchart of interactive device being input into based on content provided in an embodiment of the present invention.Reference picture
12, the interactive device 1200 being input into based on content provided in an embodiment of the present invention is included:Receiver module 1201, processing module
1202nd, display module 1203 and sending module 1204.Wherein:
Receiver module 1201, for the input content of receive user;
Processing module 1202, for the instruction received according to receiver module, control display module is accordingly shown;
Display module 1203, for showing the input content of user in first order viewing area;
The receiver module 1201, is additionally operable to the transmission instruction of receives input content;
The display module 1203, is additionally operable to the transmission instruction that the once receiver module 1201 receives input content,
By on the next stage viewing area of currently displayed for the input content of current display area viewing area, wherein, current display area
Domain refers to the viewing area that cursor is located;
The interactive device 1200 also includes sending module 1204, for receiving input content when receiver module 1201
When sending instruction, the processing module determines that current display area has been afterbody viewing area, sends in input to user
Hold;
Wherein, the input content in current display area is editable.
The interactive device being input into based on content provided in an embodiment of the present invention, using multi-levels display region, once receive send out
Instruction is sent, the input content on previous stage viewing area can show on next stage viewing area, when input content is in most
When transmission instruction is received behind rear stage viewing area, the input content of afterbody viewing area can be sent to user.With
This mode, input content before user is sent to needed to send confirmation through at least twice, therefore, it is possible to keep away to greatest extent
Exempt to miss transmission content to user.
Alternatively, the processing module 1202 can be additionally used in:
When there is input content in one-level viewing area, determine the next stage viewing area of this grade of viewing area in can
Editing mode;
When there is no input content in one-level viewing area, determine that the next stage viewing area of this grade of viewing area is in
Can not editing mode.
Alternatively, in one embodiment, the processing module 1202 specifically for:Determine the next of current display area
There is no input content in level viewing area, the input content of current display area is emptied, and controls the display module 1203
By on the next stage viewing area of currently displayed for the input content of current display area viewing area;
The display module 1203 is additionally operable to:Show current display area on the next stage viewing area of current display area
The input content in domain.
Alternatively, the display module 1203 is additionally operable to:Determine that in processing module the next stage of current display area shows
When showing that region has receiver module in the case of input content and receives the transmission of input content and instruct, point out to send failure.
Alternatively, at least there is two-stage viewing area, and viewing area not at the same level is on same display window.
Alternatively, after the sending module sends input content to user, the processing module 1202 is additionally operable to:Really
First order viewing area is determined for current display area.
The interactive device being input into based on content provided in an embodiment of the present invention, can not only avoid sending by mistake, and downward
Before one-level viewing area sends input content, first determine that next stage viewing area whether there is input content, when next stage shows
Show that region does not show the input content in current display area in next stage viewing area when there is input content, and in next stage
Viewing area just shows the input content in current display area in next stage viewing area when there is no input content, thus,
Can ensure that the input content of the pre-editing on the next stage viewing area will not be capped disappearance, can continue with and edit
Input content, improves input efficiency.
It should be noted that:The interactive device based on content input that above-described embodiment is provided is only with above-mentioned each functional module
Division be illustrated, in practical application, can as desired will above-mentioned functions distribution complete by different functional modules
Into, will the internal structure of interactive device be divided into different functional modules, to complete all or part of work(described above
Energy.In addition, above-described embodiment interactive device based on content input for providing and the exchange method embodiment being input into based on content
Belong to same design, which implements process and refers to embodiment of the method, repeats no more here.
In addition, the embodiment of the present invention also provides a kind of terminal device, the terminal device includes:At least one processor,
At least one memory, communication interface and bus.Processor, memory and communication interface are connected by bus and are completed each other
Communication.Memory is used for storing executable program code, and the program code includes computer-managed instruction.Memory can be
High-speed RAM memory, it is also possible to for nonvolatile memory (non-volatile memory), for example, at least one disk are deposited
Reservoir.
Processor is run and the executable program code by reading the executable program code stored in memory
Corresponding program, for any one exchange method being input into based on content executed described in above example.
It should be noted that each embodiment in this specification is described by the way of going forward one by one, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, related part ginseng
See the part explanation of embodiment of the method.
It should be noted that herein, term " including ", "comprising" or its any other variant are intended to non-row
His property includes, so that a series of process, method, article or equipment including key elements not only includes those key elements, and
And also include other key elements being not expressly set out, or also include for this process, method, article or equipment institute inherently
Key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that including institute
Also there is other identical element in process, method, article or the equipment of stating key element.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware
To complete, it is also possible to which the hardware for being instructed correlation by program is completed, and described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and
Within principle, any modification, equivalent substitution and improvements that is made etc. should be included within the scope of the present invention.