TWI694340B - Content input method and device - Google Patents

Content input method and device Download PDF

Info

Publication number
TWI694340B
TWI694340B TW106101956A TW106101956A TWI694340B TW I694340 B TWI694340 B TW I694340B TW 106101956 A TW106101956 A TW 106101956A TW 106101956 A TW106101956 A TW 106101956A TW I694340 B TWI694340 B TW I694340B
Authority
TW
Taiwan
Prior art keywords
input
event
content
input box
preset
Prior art date
Application number
TW106101956A
Other languages
Chinese (zh)
Other versions
TW201828099A (en
Inventor
張磊
Original Assignee
香港商阿里巴巴集團服務有限公司
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 香港商阿里巴巴集團服務有限公司 filed Critical 香港商阿里巴巴集團服務有限公司
Priority to TW106101956A priority Critical patent/TWI694340B/en
Publication of TW201828099A publication Critical patent/TW201828099A/en
Application granted granted Critical
Publication of TWI694340B publication Critical patent/TWI694340B/en

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

本發明提供一種內容輸入方法及裝置,其中的方法包括:監測針對輸入框的觸摸事件;判斷監測到的觸摸事件是否為預設事件;所述預設事件包括第一預設事件和第二預設事件;當監測到的觸摸事件為所述第一預設事件時,將所述輸入框中的已輸入內容清空並暫存所述已輸入內容;當監測到的觸摸事件為所述第二預設事件時,將暫存的所述已輸入內容添加到所述輸入框中。本發明可以實現使用者透過簡單的手勢操作,就可以高效的對已輸入的文本進行暫存以及對暫存的輸入內容進行再次使用,從而可以提升使用者的輸入體驗。 The present invention provides a content input method and device. The method includes: monitoring a touch event for an input box; determining whether the monitored touch event is a preset event; the preset event includes a first preset event and a second preset event Set an event; when the monitored touch event is the first preset event, clear the input content in the input box and temporarily store the input content; when the detected touch event is the second When the event is preset, the temporarily stored input content is added to the input box. The invention can realize that the user can efficiently store the input text and reuse the temporarily stored input content through simple gesture operation, thereby improving the user's input experience.

Description

內容輸入方法及裝置 Content input method and device

本發明是關於通訊領域,尤其是關於一種內容輸入方法及裝置。 The invention relates to the field of communication, in particular to a content input method and device.

使用者在使用即時聊天工具進行聊天的過程中,經常會遇到這樣一種使用場景:使用者在針對對方的聊天內容進行回復時,當在輸入框輸入了回復內容後,如果該使用者又想先回復對方的其他聊天內容,使用者通常都存在對已輸入完成的回復內容進行暫存的需求。因此在這種應用場景中,如何為使用者提供更加便捷的文本暫存服務,對於提升使用者的聊天體驗具有很重要的意義。 When users use the instant chat tool to chat, they often encounter such a usage scenario: when the user responds to the chat content of the other party, after entering the reply content in the input box, if the user wants to To reply to the other chat content of the other party first, the user usually needs to temporarily store the reply content that has been input. Therefore, in this application scenario, how to provide users with a more convenient text temporary storage service is of great significance for improving the user's chat experience.

本發明提出一種內容輸入方法,該方法包括:監測針對輸入框的觸摸事件;判斷監測到的觸摸事件是否為預設事件;所述預設事件包括第一預設事件和第二預設事件;當監測到的觸摸事件為所述第一預設事件時,將所述 輸入框中的已輸入內容清空並暫存所述已輸入內容;當監測到的觸摸事件為所述第二預設事件時,將暫存的所述已輸入內容添加到所述輸入框中。 The present invention provides a content input method, which includes: monitoring a touch event for an input box; determining whether the monitored touch event is a preset event; the preset event includes a first preset event and a second preset event; When the monitored touch event is the first preset event, the The input content in the input box is cleared and temporarily stored; when the monitored touch event is the second preset event, the temporarily stored input content is added to the input box.

可選的,所述將暫存的所述已輸入內容添加到所述輸入框中包括:判斷是否暫存了多個已輸入內容;當暫存了多個已輸入內容時,向使用者輸出包括所述多個已輸入內容的文本選擇清單,並將使用者在所述文本選擇清單中選擇的已輸入內容添加到所述輸入框中;當僅暫存了一個已輸入內容時,將該已輸入內容添加到所述輸入框中。 Optionally, the adding the temporarily stored input content to the input box includes: determining whether a plurality of input content is temporarily stored; when the plurality of input content is temporarily stored, outputting to the user The text selection list including the plurality of input contents is added, and the input content selected by the user in the text selection list is added to the input box; when only one input content is temporarily stored, the The input content is added to the input box.

可選的,所述方法還包括:當將暫存的所述已輸入內容添加到所述輸入框中後,將暫存的所述已輸入內容刪除。 Optionally, the method further includes deleting the temporarily stored input content after adding the temporarily stored input content to the input box.

可選的,所述方法還包括:將所述輸入框中的已輸入內容清空後,在所述輸入框中輸出用於提示使用者所述輸入框中的已輸入內容已暫存完成的提示消息。 Optionally, the method further includes: after clearing the input content in the input box, outputting a prompt in the input box for prompting the user that the input content in the input box has been temporarily saved news.

可選的,所述第一預設事件包括針對所述輸入框中任意位置的第一滑動事件;所述第二預設事件包括針對所述輸入框中任意位置的第二滑動事件;其中,所述第一滑動事件和所述第二滑動事件的滑動方向不同。 Optionally, the first preset event includes a first sliding event for any position in the input box; the second preset event includes a second sliding event for any position in the input box; wherein, The sliding direction of the first sliding event and the second sliding event are different.

本發明還提出一種內容輸入系統,該裝置包括:監測模組,用於監測針對輸入框的觸摸事件; 判斷模組,用於判斷監測到的觸摸事件是否為預設事件;所述預設事件包括第一預設事件和第二預設事件;添加模組,用於在監測到的觸摸事件為所述第一預設事件時,將所述輸入框中的已輸入內容清空並暫存所述已輸入內容;在監測到的觸摸事件為所述第二預設事件時,將暫存的所述已輸入內容添加到所述輸入框中。 The present invention also proposes a content input system. The device includes: a monitoring module for monitoring a touch event directed to an input box; The judgment module is used for judging whether the monitored touch event is a preset event; the preset event includes a first preset event and a second preset event; an added module is used for detecting the touch event as When the first preset event is mentioned, clear the input content in the input box and temporarily store the input content; when the touch event detected is the second preset event, the temporarily stored The input content is added to the input box.

可選的,所述添加模組具體用於:判斷是否暫存了多個已輸入內容;當暫存了多個已輸入內容時,向使用者輸出包括所述多個已輸入內容的文本選擇清單,並將使用者在所述文本選擇清單中選擇的已輸入內容添加到所述輸入框中;當僅暫存了一個已輸入內容時,將該已輸入內容添加到所述輸入框中。 Optionally, the adding module is specifically used to: determine whether a plurality of input content is temporarily stored; when a plurality of input content is temporarily stored, output a text selection including the plurality of input content to a user List, and add the input content selected by the user in the text selection list to the input box; when only one input content is temporarily stored, add the input content to the input box.

可選的,所述裝置還包括:刪除模組,用於在將暫存的所述已輸入內容添加到所述輸入框中後,將暫存的所述已輸入內容刪除。 Optionally, the device further includes: a deletion module, configured to delete the temporarily stored input content after adding the temporarily stored input content to the input box.

可選的,所述裝置還包括:輸出模組,用於將所述輸入框中的已輸入內容清空後,在所述輸入框中輸出用於提示使用者所述輸入框中的已輸入內容已暫存完成的提示消息。 Optionally, the device further includes: an output module for clearing the input content in the input box and outputting the input content in the input box for prompting the user in the input box Prompt message that has been temporarily saved.

可選的,所述第一預設事件包括針對所述輸入框中任意位置的第一滑動事件;所述第二預設事件包括針對所述輸入框中任意位置的第二滑動事件;其中,所述第一滑動事件和所述第二滑動事件的滑動方向不同。 Optionally, the first preset event includes a first sliding event for any position in the input box; the second preset event includes a second sliding event for any position in the input box; wherein, The sliding direction of the first sliding event and the second sliding event are different.

本發明提供一種更加便捷的內容輸入方式,透過監測針對輸入框的觸摸事件,並判斷監測到的觸摸事件是否為預設事件;當監測到的觸摸事件為第一預設事件時,將所述輸入框中的已輸入內容清空並暫存所述已輸入內容;當監測到的觸摸事件為第二預設事件時,將暫存的所述已輸入內容添加到所述輸入框中,實現了使用者透過簡單的手勢操作,就可以高效的對已輸入的文本進行暫存以及對暫存的輸入內容進行再次使用,從而可以提升使用者的輸入體驗。 The present invention provides a more convenient content input method, by monitoring the touch event for the input box and determining whether the monitored touch event is a preset event; when the monitored touch event is the first preset event, the The input content in the input box is cleared and the input content is temporarily stored; when the detected touch event is the second preset event, the temporarily stored input content is added to the input box to achieve Through simple gesture operation, the user can efficiently store the input text and reuse the temporary input content, thereby improving the user's input experience.

101:步驟 101: Step

102:步驟 102: Step

103:步驟 103: Step

40:內容輸入系統 40: Content input system

401:監聽模組 401: Monitor module

402:判斷模組 402: Judgment module

403:添加模組 403: Add module

404:刪除模組 404: Delete module

405:輸出模組 405: output module

圖1是本發明一實施例提供的一種內容輸入方法的流程圖;圖2是本發明一實施例提供的一種對輸入框中的已輸入文本進行暫存的交互示意圖;圖3是本發明一實施例提供的一種將已暫存的已輸入文件添加到輸入框中的交互示意圖;圖4是本發明一實施例提供的一種內容輸入系統的邏輯方塊圖;圖5是本發明一實施例提供的承載所述內容輸入系統的終端的硬體結構圖。 FIG. 1 is a flowchart of a content input method provided by an embodiment of the present invention; FIG. 2 is an interactive schematic diagram of temporarily storing entered text in an input box provided by an embodiment of the present invention; FIG. 3 is an embodiment of the present invention An embodiment provides an interactive schematic diagram of adding a temporarily stored input file to an input box; FIG. 4 is a logic block diagram of a content input system provided by an embodiment of the present invention; FIG. 5 is provided by an embodiment of the present invention Hardware structure diagram of the terminal carrying the content input system.

在現有實現中,使用者在使用即時聊天工具進行聊天的過程中,如果該使用者想要對輸入框中已輸入完成的文本進行暫存時,在傳統的解決方案中,通常是基於使用者針對已輸入完成的文本進行複製剪切操作來實現的。 In the existing implementation, if the user wants to temporarily store the text that has been input in the input box during the chat process using the instant chat tool, in traditional solutions, it is usually based on the user The copy and cut operation is performed on the text that has been entered to achieve it.

例如,當使用者需要對輸入框的文本內容進行暫存時,可以在輸入框中按兩下或者長按輸入框觸發編輯,然後全選輸入框中的文本內容,然後對輸入框中的文本內容進行複製或者剪切操作來對該文本內容進行暫存。當使用者需要再次使用暫存的該文本內容時,可以透過同樣的操作,將該文本內容粘貼到輸入框中。可見,在傳統的解決方案中,對已輸入完成的文本進行暫存時的操作不夠簡潔而且花費時間較長。 For example, when the user needs to temporarily store the text content of the input box, he can double-click in the input box or long-press the input box to trigger editing, and then select all the text content in the input box, and then the text in the input box Copy or cut the content to temporarily store the text content. When the user needs to use the temporarily stored text content again, he can paste the text content into the input box through the same operation. It can be seen that in the traditional solution, the operation of temporarily storing the text that has been input is not simple enough and takes a long time.

為了解決上述問題,本發明提供一種更加便捷的內容輸入方式,透過監測針對輸入框的觸摸事件,並判斷監測到的觸摸事件是否為預設事件;當監測到的觸摸事件為第一預設事件時,將所述輸入框中的已輸入內容清空並暫存所述已輸入內容;當監測到的觸摸事件為第二預設事件時,將暫存的所述已輸入內容添加到所述輸入框中,實現了使用者透過簡單的手勢操作,就可以高效的對已輸入的文本進行暫存以及對暫存的輸入內容進行再次使用,從而可以提升使用者的輸入體驗。 In order to solve the above problems, the present invention provides a more convenient content input method, by monitoring the touch event for the input box and determining whether the detected touch event is a preset event; when the detected touch event is the first preset event , Clear the input content in the input box and temporarily store the input content; when the detected touch event is the second preset event, add the temporarily stored input content to the input In the frame, the user can efficiently store the input text and reuse the temporary input content through simple gesture operation, thereby improving the user's input experience.

下面透過具體實施例並結合具體的應用場景對本發明進行描述。 The present invention will be described below through specific embodiments and combined with specific application scenarios.

請參考圖1,圖1是本發明一實施例提供的一種內容輸入方法,該方法的執行主體可以為終端,該終端可以是 安裝了即時聊天使用者端(以下簡稱使用者端)的智慧手機、平板電腦、PC電腦等,所述方法執行以下步驟:步驟101,監測針對輸入框的觸摸事件;步驟102,判斷監測到的觸摸事件是否為預設事件;所述預設事件包括第一預設事件和第二預設事件;步驟103,當監測到的觸摸事件為所述第一預設事件時,將所述輸入框中的已輸入內容清空並暫存所述已輸入內容;當監測到的觸摸事件為所述第二預設事件時,暫存的所述已輸入內容添加到所述輸入框中。 Please refer to FIG. 1. FIG. 1 is a content input method provided by an embodiment of the present invention. The method may be executed by a terminal, and the terminal may be a smart phone installed with a live chat user terminal (hereinafter referred to as user terminal). , Tablet computers, PC computers, etc., the method performs the following steps: step 101, monitoring touch events for input boxes; step 102, determining whether the monitored touch events are preset events; the preset events include a first Set an event and a second preset event; Step 103, when the monitored touch event is the first preset event, clear the input content in the input box and temporarily store the input content; when monitoring When the received touch event is the second preset event, the temporarily stored input content is added to the input box.

在本實施例中,使用者在透過上述使用者端進行聊天的過程中,當使用者需要對輸入框中的已輸入內容進行暫存時,可以針對輸入框進行簡單的手勢操作,來高效的對已輸入內容進行暫存以及對已經暫存的輸入內容進行再次使用。 In this embodiment, the user can perform a simple gesture operation on the input box when the user needs to temporarily store the input content in the input box in the process of chatting through the user terminal, to efficiently Temporarily store the input content and reuse the input content that has been temporarily stored.

其中,上述已輸入內容可以包括已輸入的文本、表情或者圖片等。上述針對輸入框的手勢操作可以包括預設的觸摸操作。該預設的觸摸操作可以包括與上述使用者端中預設的使用者觸摸操作不會造成語義衝突的觸摸操作。 Wherein, the input content may include input text, expressions or pictures. The above gesture operation for the input box may include a preset touch operation. The preset touch operation may include a touch operation that does not cause semantic conflict with the preset user touch operation in the user terminal.

例如,在上述使用者端中,針對輸入框中的按一下操作、按兩下操作或者長按操作通常都對應一種預設的系統語義;比如,當使用者按一下輸入框時,通常會觸發輸入框進入輸入模式,在輸入框中顯示輸入游標;當使用者按兩下或者長按輸入框時,通常會觸發輸入框進入編輯模式,在編輯模式下,使用者可以對輸入框中的已輸入內容 進行全選、或者向輸入框中粘貼新的內容。 For example, in the above user terminal, the click operation, double-click operation or long-press operation for the input box usually corresponds to a preset system semantics; for example, when the user clicks the input box, it usually triggers The input box enters the input mode, and the input cursor is displayed in the input box; when the user double-clicks or long-presses the input box, the input box is usually triggered to enter the editing mode. In the editing mode, the user can Enter the content to select all, or paste the new content into the input box.

因此,使用者端在根據使用者針對輸入框的預設的觸摸操作,對已輸入內容進行暫存以及對已經暫存的輸入內容進行再次使用時,所採用的預設的觸摸操作可以區別於使用者端中預設的使用者觸摸操作,從而不會造成語義衝突。 Therefore, when the user side temporarily stores the input content and reuses the temporarily stored input content according to the user's preset touch operation for the input frame, the preset touch operation adopted can be distinguished from The preset user touch operation in the user terminal will not cause semantic conflict.

在示出的一種實現方式中,上述預設的觸摸操作可以包括針對輸入框的滑動操作。 In one implementation shown, the above-mentioned preset touch operation may include a sliding operation for the input box.

其中,該滑動操作可以包括滑動方向不相同的第一滑動操作和第二滑動操作,該第一滑動操作可以用於觸發使用者端對輸入框中的已輸入內容進行暫存,該第二滑動操作可以使用者觸發使用者端將已經暫存的輸入內容再次輸入到輸入框中。例如,上述第一滑動操作可以是向左滑動操作,上述第二滑動操作可以是向右滑動事件。 The sliding operation may include a first sliding operation and a second sliding operation with different sliding directions. The first sliding operation may be used to trigger the user to temporarily store the input content in the input box, and the second sliding operation The operation can trigger the user terminal to input the temporarily stored input content into the input box again. For example, the above-mentioned first sliding operation may be a leftward sliding operation, and the above-mentioned second sliding operation may be a rightward sliding event.

以下以所述輸入內容為文本,上述第一滑動操作為向左滑動操作,以及上述第二滑動操作為向右滑動操作為例,對使用者在聊天過程中對已輸入內容進行暫存以及對暫存的輸入內容再次使用的過程進行詳細描述。 The following uses the input content as text, the first sliding operation is a sliding operation to the left, and the second sliding operation is a sliding operation to the right as an example, for the user to temporarily store the input content during the chat process and to The process of reusing the temporarily stored input content is described in detail.

請參見圖2,當使用者在使用上述使用者端進行聊天的過程中,如果使用者想要對輸入框中的已輸入文本進行暫存時,可以用手指在輸入框中進行向左滑動操作,來觸發使用者端將該已輸入文本暫存到預設的暫存空間中。 Please refer to FIG. 2, when the user is using the above user terminal to chat, if the user wants to temporarily store the input text in the input box, he can use his finger to swipe left in the input box , To trigger the user terminal to temporarily store the input text in a preset temporary storage space.

其中,該暫存空間可以是區別於使用者在執行複製剪切操作時,用於儲存複製或剪切的內容的儲存空間,從而 保證當上述已輸入文本在該獨立儲存空間中儲存完成後,使用者再次執行複製剪切操作時,該已輸入文本不會被覆蓋而消失。 Wherein, the temporary storage space may be different from the storage space used for storing the copied or cut content when the user performs the copy and cut operation, so as to ensure that when the above entered text is stored in the independent storage space, When the user performs the copy and cut operation again, the entered text will not be overwritten and disappear.

與此同時,使用者在使用上述使用者端進行聊天的過程中,上述使用者端可以在後臺即時的監測使用者針對輸入框中的觸摸事件,並判斷監測到的觸摸事件是否為與上述向左滑動操作對應的第一滑動事件。 At the same time, when the user uses the user terminal to chat, the user terminal can monitor the user's touch event in the input box in the background in real time, and determine whether the monitored touch event is the same as the above direction. The first sliding event corresponding to the left sliding operation.

當使用者端監測到與上述向左滑動操作對應的第一滑動事件時,可以觸發使用者端將輸入框中的已輸入文本暫存到上述預設的暫存空間中,並將輸入框中的該已輸入文本清除,其中,使用者端將輸入框中的該已輸入文本清除後,還可以在輸入框中輸出一個用於提示使用者該已輸入文本已經在上述預設的暫存空間中暫存完成的提示消息。 When the user terminal detects the first sliding event corresponding to the leftward sliding operation, it can trigger the user terminal to temporarily store the input text in the input box into the preset temporary storage space, and store the input box The entered text is cleared, and after the user side clears the entered text in the input box, a user can also output an input box to prompt the user that the entered text is already in the preset temporary storage space Prompt message for temporary storage completion.

當然,在實現時,上述暫存空間中也可以儲存多個已輸入文本,使用者在使用上述使用者端進行聊天的過程中,可以透過在輸入框中進行多次向左滑動操作來觸發使用者端將多個已輸入文本儲存到上述預設的暫存空間中。 Of course, in the implementation, the above temporary storage space can also store a plurality of input texts, and the user can trigger the use by swiping left in the input box multiple times during the chat process using the above user terminal The client stores a plurality of input texts in the preset temporary storage space.

請參見圖3,當使用者在使用上述使用者端進行聊天的過程中,如果使用者想要對已暫存的輸入文本再次使用時,可以用手指在輸入框中進行向右滑動操作,來觸發使用者端將儲存在上述預設的暫存空間中的已輸入文本添加到輸入框中。 Please refer to FIG. 3, when the user is using the above user terminal to chat, if the user wants to use the temporarily stored input text again, they can use their fingers to swipe right in the input box to The user terminal is triggered to add the input text stored in the preset temporary storage space to the input box.

與此同時,使用者在使用上述使用者端進行聊天的過 程中,上述使用者端可以在後臺即時的監測使用者針對輸入框中的觸摸事件,並判斷監測到的觸摸事件是否為與上述向右滑動操作對應的第二滑動事件。 At the same time, when the user uses the user terminal to chat, the user terminal can monitor the user's touch event in the input box in the background in real time, and determine whether the monitored touch event is the same as the above direction. The second sliding event corresponding to the right sliding operation.

當使用者端監測到與上述向右滑動操作對應的第二滑動事件時,可以觸發使用者端將儲存在上述預設的暫存空間中的已輸入文本添加到輸入框中。 When the user terminal monitors the second sliding event corresponding to the right sliding operation, the user terminal may be triggered to add the input text stored in the preset temporary storage space to the input box.

其中,如前所述,該預設的暫存空間中可以儲存多個已輸入文本,因此使用者端在監測到上述第二滑動事件後,如果上述預設的暫存空間中暫存了多個已輸入文本時,使用者端可以將該獨立儲存空間中儲存的多個已輸入文本以文本選擇清單的形式向使用者輸出,使用者可以在該列表中選擇本次要添加到輸入框中的已輸入文本。 As mentioned above, the preset temporary storage space can store a plurality of input texts. Therefore, after detecting the second sliding event, if the user temporarily stores more than one temporary storage space in the preset temporary storage space, When a text has been input, the user can output multiple input texts stored in the independent storage space to the user in the form of a text selection list, and the user can select this time to add to the input box in the list Entered text.

當使用者選擇完成後,使用者端可以獲取使用者選擇的已輸入文本,然後將該已輸入文本添加到輸入框中,以對該輸入文本進行再次使用。當該已輸入文本添加到輸入框後,使用者端還可以將該已輸入文本從上述預設的暫存空間中刪除。當然,如果上述預設的暫存空間中僅儲存了一個已輸入文本時,使用者端可以直接將該已輸入文本添加到輸入框中,並在將該輸入文本添加到輸入框後,將該已輸入文本從上述預設的暫存空間中刪除。 After the user selects, the user terminal can obtain the input text selected by the user, and then add the input text to the input box to reuse the input text. After the entered text is added to the input box, the user side can also delete the entered text from the preset temporary storage space. Of course, if only one entered text is stored in the preset temporary storage space, the user can directly add the entered text to the input box, and after adding the input text to the input box, the The entered text is deleted from the preset temporary storage space.

透過以上實施例可知,使用者在使用使用者端進行聊天的過程中,透過在輸入框中執行簡單的向左或向右滑動操作,就可以非常高效的完成對已輸入內容的暫存以及已暫存的輸入內容的再次使用,因此可以提升使用者的聊天 體驗。 It can be seen from the above embodiments that during the chat process using the user terminal, the user can perform a simple swipe left or right in the input box to complete the temporary storage of the input content and the The temporarily stored input content is reused, so the user's chat experience can be improved.

在本實施例中,使用者在對已輸入內容進行暫存以及對已暫存的內容進行再次使用時,除了以上描述的可以透過使用者針對輸入框的預設的滑動操作來觸發以外,在實現時也可以透過其它類型的觸摸操作來進行觸發。 In this embodiment, when the user temporarily stores the input content and reuses the stored content, in addition to the above-mentioned, it can be triggered by the user's default sliding operation for the input frame. It can also be triggered by other types of touch operations during implementation.

例如,仍以上述輸入內容為文本為例,在示出的一種實現方式中,上述預設觸摸操作還可以是針對輸入框中預設按鈕的點擊操作。在實現時,可以在輸入框中預設一個“暫存”按鈕,該按鈕用於觸發使用者端對輸入框中的已輸入文本進行暫存。在這種實現方式中,使用者可以透過對該按鈕進行點擊操作來觸發使用者端對輸入框中的已輸入文本進行暫存。當使用者端在後臺監測到使用者針對輸入框中該按鈕的與上述點擊操作對應的按一下事件時,可以立即將輸入框中的已輸入文本暫存到上述預設的暫存空間,並將輸入框中的該已輸入文本清除。 For example, still taking the input content as text as an example, in one implementation manner shown, the preset touch operation may also be a click operation for a preset button in the input box. During implementation, a "temporary save" button may be preset in the input box, and the button is used to trigger the user to temporarily store the input text in the input box. In this implementation, the user can trigger the user to temporarily store the input text in the input box by clicking the button. When the user terminal detects a click event corresponding to the above-mentioned click operation for the button in the input box in the background, the input text in the input box can be temporarily stored in the preset temporary storage space, and Clear the entered text in the input box.

當暫存完成後,使用者端可以立即對該“暫存”按鈕進行按鈕態切換,將該按鈕修改為“恢復”按鈕。此時使用者可以透過對該“恢復”按鈕進行點擊操作,來觸發使用者端將暫存完成的已輸入文本添加到輸入框中。當使用者端在後臺監測到使用者針對輸入框中該按鈕的與上述點擊操作對應的按一下事件時,可以立即將上述預設的暫存空間中儲存的上述已輸入文本添加到輸入框中,並將上述預設的暫存空間中儲存的該已輸入文本刪除。 After the temporary storage is completed, the user terminal can immediately switch the button state of the "temporary storage" button and modify the button to a "restore" button. At this time, the user can click the “restore” button to trigger the user terminal to add the temporarily stored input text to the input box. When the user terminal detects the user's click event corresponding to the above-mentioned click operation for the button in the input box in the background, the entered text stored in the preset temporary storage space can be immediately added to the input box And delete the entered text stored in the preset temporary storage space.

在示出的另一種實現方式中,上述預設觸摸操作還可以是針對輸入框中的長按操作。在這種實現方式中,當使用者端在後臺監測到使用者針對輸入框的與上述長按操作對應的長按事件時,可以立即輸入一個編輯選項,該編輯選項除了可以包括現有實現中的“全選”、“全選”、“粘貼”以及“剪貼板”等子選項以外,還可以提供一個“暫存”以及“恢復”子選項。 In another illustrated implementation manner, the above-mentioned preset touch operation may also be directed to a long-press operation in the input box. In this implementation, when the user terminal detects a long-press event corresponding to the above-mentioned long-press operation for the input box in the background, the user can immediately enter an edit option, which can include the existing implementation in addition to In addition to the "Select All", "Select All", "Paste" and "Clipboard" sub-options, you can also provide a "temporary save" and "restore" sub-options.

使用者可以透過對該“暫存”子選項進行點擊操作,來觸發使用者端對輸入框中的已輸入文本進行暫存。當使用者端在後臺監測到使用者針對該“暫存”子選項的與上述點擊操作對應的按一下事件時,可以立即將輸入框中的已輸入文本暫存到上述預設的暫存空間,並將輸入框中的該已輸入文本清除。 The user can trigger the user to temporarily store the input text in the input box by clicking the "temporary storage" sub-option. When the user terminal detects a click event corresponding to the above-mentioned click operation for the "temporary storage" sub-option in the background, the input text in the input box can be temporarily stored in the preset temporary storage space , And clear the entered text in the input box.

等同的,對於已暫存的輸入文本,使用者可以透過對該“恢復”子選項進行點擊操作,來觸發使用者端將暫存完成的輸入文本添加到輸入框中。當使用者端在後臺監測到使用者針對該“恢復”子選項的與上述點擊操作對應的按一下事件時,可以立即將上述獨立儲存空間中儲存的已輸入文本添加到輸入框中,並將上述預設的暫存空間中儲存的該已輸入文本刪除。 Equivalently, for the input text that has been temporarily stored, the user can trigger the user terminal to add the temporarily completed input text to the input box by clicking the "restore" sub-option. When the user terminal detects the user's click event corresponding to the above-mentioned click operation for the "restore" sub-option in the background, it can immediately add the entered text stored in the above-mentioned independent storage space to the input box, and add The input text stored in the preset temporary storage space is deleted.

對於上述透過其它類型的觸摸操作來觸發使用者端對已輸入內容進行暫存以及將已暫存的輸入內容進行再次使用的實現方式,本實施例中不再進行一一列舉。 For the above-mentioned implementation manners of triggering the user terminal to temporarily store the input content and reusing the temporarily stored input content through other types of touch operations, this embodiment will not list them one by one.

在以上實施例中,透過監測針對輸入框的觸摸事件,並判斷監測到的觸摸事件是否為預設事件;當監測到的觸 摸事件為第一預設事件時,將所述輸入框中的已輸入內容清空並暫存所述已輸入內容;當監測到的觸摸事件為第二預設事件時,將暫存的所述已輸入內容添加到所述輸入框中,實現了使用者透過簡單的手勢操作,就可以高效的對已輸入的文本進行暫存以及對暫存的輸入內容進行再次使用,從而可以提升使用者的輸入體驗。 In the above embodiment, by monitoring the touch event for the input box and determining whether the monitored touch event is a preset event; when the detected touch When the touch event is the first preset event, clear the input content in the input box and temporarily store the input content; when the detected touch event is the second preset event, the temporarily stored event The input content is added to the input box, so that the user can efficiently store the input text and reuse the temporary input content through simple gesture operation, thereby improving the user's Enter the experience.

與上述方法實施例相對應,本發明還提供了裝置的實施例。 Corresponding to the above method embodiment, the present invention also provides an embodiment of the device.

請參見圖4,本發明提出一種內容輸入系統40,應用於終端,該終端可以是安裝了即時聊天軟體的智慧手機、平板電腦、PC電腦等;其中,請參見圖5,作為承載所述內容輸入系統40的終端所涉及的硬體架構中,通常包括CPU、記憶體、非易失性記憶體、網路介面以及內部匯流排等;以軟體實現為例,所述內容輸入系統40通常可以理解為載入在記憶體中的電腦程式,透過CPU運行之後形成的軟硬體相結合的邏輯裝置,所述裝置40包括:監測模組401,用於監測針對輸入框的觸摸事件;判斷模組402,用於判斷監測到的觸摸事件是否為預設事件;所述預設事件包括第一預設事件和第二預設事件;添加模組403,用於在監測到的觸摸事件為所述第一預設事件時,將所述輸入框中的已輸入內容清空並暫存所述已輸入內容;在監測到的觸摸事件為所述第二預設事件時,將暫存的所述已輸入內容添加到所述輸入框中。 Referring to FIG. 4, the present invention proposes a content input system 40, which is applied to a terminal. The terminal may be a smart phone, a tablet computer, a PC computer, etc., in which an instant chat software is installed. The hardware architecture involved in the terminal of the input system 40 usually includes a CPU, memory, non-volatile memory, network interface, and internal bus, etc. Taking software implementation as an example, the content input system 40 can usually It is understood as a computer program loaded in the memory, a logic device that combines software and hardware formed after the CPU runs. The device 40 includes: a monitoring module 401 for monitoring touch events for input boxes; Group 402, used to determine whether the monitored touch event is a preset event; the preset event includes a first preset event and a second preset event; add a module 403, which is used when the monitored touch event is When the first preset event is mentioned, clear the input content in the input box and temporarily store the input content; when the touch event detected is the second preset event, the temporarily stored The input content is added to the input box.

在本實施例中,所述添加模組402具體用於:判斷是否暫存了多個已輸入內容;當暫存了多個已輸入內容時,向使用者輸出包括所述多個已輸入內容的文本選擇清單,並將使用者在所述文本選擇清單中選擇的已輸入內容添加到所述輸入框中;當僅暫存了一個已輸入內容時,將該已輸入內容添加到所述輸入框中。 In this embodiment, the adding module 402 is specifically configured to: determine whether a plurality of input content is temporarily stored; when a plurality of input content is temporarily stored, output to the user including the plurality of input content Text selection list and add the input content selected by the user in the text selection list to the input box; when only one input content is temporarily stored, the input content is added to the input Box.

在本實施例中,所述裝置400還包括:刪除模組404,用於在將暫存的所述已輸入內容添加到所述輸入框中後,將暫存的所述已輸入內容刪除。 In this embodiment, the device 400 further includes: a deletion module 404, configured to delete the temporarily stored input content after adding the temporarily stored input content to the input box.

在本實施例中,所述裝置400還包括:輸出模組405,用於將所述輸入框中的已輸入內容清空後,在所述輸入框中輸出用於提示使用者所述輸入框中的已輸入內容已暫存完成的提示消息。 In this embodiment, the device 400 further includes: an output module 405, used to clear the input content in the input box, and then output the input box to prompt the user in the input box The prompt message for the input content of has been temporarily saved.

在本實施例中,所述第一預設事件包括針對所述輸入框中任意位置的第一滑動事件;所述第二預設事件包括針對所述輸入框中任意位置的第二滑動事件;其中,所述第一滑動事件和所述第二滑動事件的滑動方向不同。 In this embodiment, the first preset event includes a first sliding event for any position in the input box; the second preset event includes a second sliding event for any position in the input box; Wherein, the sliding direction of the first sliding event and the second sliding event are different.

所屬技術領域中具有通常知識者在考慮說明書及實踐這裡公開的發明後,將容易想到本發明的其它實施方案。本發明旨在涵蓋本發明的任何變型、用途或者適應性變化,這些變型、用途或者適應性變化遵循本發明的一般性原理並包括本發明未公開的所屬技術領域中的公知常識或慣用技術手段。說明書和實施例僅被視為示例性的,本發 明的真正範圍和精神由下面的申請專利範圍指出。 Those having ordinary knowledge in the technical field will easily think of other embodiments of the present invention after considering the description and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptive changes of the present invention, which follow the general principles of the present invention and include common general knowledge or common technical means in the technical field to which the present invention is not disclosed. . The description and examples are considered to be exemplary only, The true scope and spirit of the Ming are indicated by the following patent application scope.

應當理解的是,本發明並不局限於上面已經描述並在圖式中示出的精確結構,並且可以在不脫離其範圍進行各種修改和改變。本發明的範圍僅由所附的申請專利範圍來限制。 It should be understood that the present invention is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the present invention is limited only by the scope of the attached patent application.

以上所述僅為本發明的較佳實施例而已,並不用以限制本發明,凡在本發明的精神和原則之內,所做的任何修改、等同替換、改進等,均應包含在本發明保護的範圍之內。 The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the present invention Within the scope of protection.

Claims (8)

一種內容輸入方法,由一電子裝置執行,該方法包括:監測針對輸入框的觸摸事件;判斷監測到的觸摸事件是否為預設事件;所述預設事件包括第一預設事件和第二預設事件;當監測到的觸摸事件為所述第一預設事件時,將所述輸入框中的已輸入內容清空並暫存所述已輸入內容;當監測到的觸摸事件為所述第二預設事件時,將暫存的所述已輸入內容添加到所述輸入框中,其中,所述第一預設事件包括針對所述輸入框中任意位置的第一滑動事件;所述第二預設事件包括針對所述輸入框中任意位置的第二滑動事件;其中,所述第一滑動事件和所述第二滑動事件的滑動方向不同。 A content input method performed by an electronic device, the method includes: monitoring a touch event for an input box; determining whether the monitored touch event is a preset event; the preset event includes a first preset event and a second preset event Set an event; when the monitored touch event is the first preset event, clear the input content in the input box and temporarily store the input content; when the detected touch event is the second When presetting the event, add the temporarily stored input content to the input box, wherein the first preset event includes a first sliding event for any position in the input box; the second The preset event includes a second sliding event for any position in the input box; wherein, the sliding direction of the first sliding event and the second sliding event are different. 根據申請專利範圍第1項所述的方法,其中,所述將暫存的所述已輸入內容添加到所述輸入框中包括:判斷是否暫存了多個已輸入內容;當暫存了多個已輸入內容時,向使用者輸出包括所述多個已輸入內容的文本選擇清單,並將使用者在所述文本選擇清單中選擇的已輸入內容添加到所述輸入框中;當僅暫存了一個已輸入內容時,將該已輸入內容添加到所述輸入框中。 The method according to item 1 of the patent application scope, wherein the adding of the temporarily stored input content to the input box includes: determining whether a plurality of input content has been temporarily stored; Input content, output a text selection list including the plurality of input content to the user, and add the input content selected by the user in the text selection list to the input box; When an input content is saved, the input content is added to the input box. 根據申請專利範圍第1項所述的方法,其中,所述方法還包括: 當將暫存的所述已輸入內容添加到所述輸入框中後,將暫存的所述已輸入內容刪除。 The method according to item 1 of the patent application scope, wherein the method further comprises: After the temporarily stored input content is added to the input box, the temporarily stored input content is deleted. 根據申請專利範圍第1項所述的方法,其中,所述方法還包括:將所述輸入框中的已輸入內容清空後,在所述輸入框中輸出用於提示使用者所述輸入框中的已輸入內容已暫存完成的提示消息。 The method according to item 1 of the patent application scope, wherein the method further comprises: after clearing the input content in the input box, outputting in the input box for prompting the user of the input box The prompt message for the input content of has been temporarily saved. 一種內容輸入系統,該裝置包括:監測模組,用於監測針對輸入框的觸摸事件;判斷模組,用於判斷監測到的觸摸事件是否為預設事件;所述預設事件包括第一預設事件和第二預設事件;添加模組,用於在監測到的觸摸事件為所述第一預設事件時,將所述輸入框中的已輸入內容清空並暫存所述已輸入內容;在監測到的觸摸事件為所述第二預設事件時,將暫存的所述已輸入內容添加到所述輸入框中,其中,所述第一預設事件包括針對所述輸入框中任意位置的第一滑動事件;所述第二預設事件包括針對所述輸入框中任意位置的第二滑動事件;其中,所述第一滑動事件和所述第二滑動事件的滑動方向不同。 A content input system, the device includes: a monitoring module for monitoring a touch event directed to an input box; a judgment module for judging whether the monitored touch event is a preset event; the preset event includes a first preset Set an event and a second preset event; add a module to clear the entered content in the input box and temporarily store the entered content when the detected touch event is the first preset event ; When the monitored touch event is the second preset event, add the temporarily stored input content to the input box, wherein the first preset event includes the input box A first sliding event at any position; the second preset event includes a second sliding event for any position in the input box; wherein, the sliding direction of the first sliding event and the second sliding event are different. 根據申請專利範圍第5項所述的系統,其中,所述添加模組具體用於:判斷是否暫存了多個已輸入內容;當暫存了多個已輸入內容時,向使用者輸出包括所述多個已輸入內容的文本選擇清單,並將使用者在所述文本 選擇清單中選擇的已輸入內容添加到所述輸入框中;當僅暫存了一個已輸入內容時,將該已輸入內容添加到所述輸入框中。 The system according to item 5 of the patent application scope, wherein the adding module is specifically used for: judging whether a plurality of input contents are temporarily stored; when a plurality of input contents are temporarily stored, outputting to the user includes A text selection list of the plurality of input contents, and place the user in the text The input content selected in the selection list is added to the input box; when only one input content is temporarily stored, the input content is added to the input box. 根據申請專利範圍第5項所述的系統,其中,所述裝置還包括:刪除模組,用於在將暫存的所述已輸入內容添加到所述輸入框中後,將暫存的所述已輸入內容刪除。 The system according to item 5 of the patent application scope, wherein the device further includes: a deletion module for adding the temporarily stored content to the input box, and then storing the temporarily stored data The entered content is deleted. 根據申請專利範圍第5項所述的系統,其中,所述裝置還包括:輸出模組,用於將所述輸入框中的已輸入內容清空後,在所述輸入框中輸出用於提示使用者所述輸入框中的已輸入內容已暫存完成的提示消息。 The system according to item 5 of the patent application scope, wherein the device further comprises: an output module for clearing the input content in the input box and outputting in the input box for prompting to use The prompt message that the input content in the input box has been temporarily stored is completed.
TW106101956A 2017-01-19 2017-01-19 Content input method and device TWI694340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106101956A TWI694340B (en) 2017-01-19 2017-01-19 Content input method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106101956A TWI694340B (en) 2017-01-19 2017-01-19 Content input method and device

Publications (2)

Publication Number Publication Date
TW201828099A TW201828099A (en) 2018-08-01
TWI694340B true TWI694340B (en) 2020-05-21

Family

ID=63960261

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106101956A TWI694340B (en) 2017-01-19 2017-01-19 Content input method and device

Country Status (1)

Country Link
TW (1) TWI694340B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104134043A (en) * 2013-07-22 2014-11-05 腾讯科技(深圳)有限公司 Method and device for hiding contents, method and device for unhiding contents, and terminals
CN104142784A (en) * 2014-06-20 2014-11-12 腾讯科技(深圳)有限公司 Temporary storage method and device for input content
CN104571585A (en) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 Cursor operation method and device for input method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104134043A (en) * 2013-07-22 2014-11-05 腾讯科技(深圳)有限公司 Method and device for hiding contents, method and device for unhiding contents, and terminals
CN104142784A (en) * 2014-06-20 2014-11-12 腾讯科技(深圳)有限公司 Temporary storage method and device for input content
CN104571585A (en) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 Cursor operation method and device for input method

Also Published As

Publication number Publication date
TW201828099A (en) 2018-08-01

Similar Documents

Publication Publication Date Title
KR102323333B1 (en) Application data processing method and apparatus, and storage medium
JP7263442B2 (en) System and method for real-time remote control of mobile applications
KR102237912B1 (en) Methods and devices to implement service functions
CN109564531B (en) Clipboard repository interaction
KR102033198B1 (en) Optimization schemes for controlling user interfaces through gesture or touch
US10129264B2 (en) Method and apparatus for implementing document sharing between user groups
US9021507B2 (en) Dynamic use of data across multiple programs
CN108469972B (en) Method and device for supporting display of multiple windows in WEB page
US10372512B2 (en) Method and apparatus for automatic processing of service requests on an electronic device
CN110019058B (en) Sharing method and device for file operation
WO2023179549A1 (en) Document block sharing method, apparatus and system, and storage medium
CN105279431A (en) Method, device, and system for recording operation information in mobile device
US9021389B1 (en) Systems and methods for end-user initiated data-loss-prevention content analysis
CN113965614A (en) Session creation method and device and electronic equipment
WO2016127577A1 (en) Event processing method and apparatus
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
JP2006277771A (en) Terminal device and operation history recording method for computer network
TWI694340B (en) Content input method and device
WO2017133229A1 (en) Mobile terminal image display method and device
CN107193562A (en) A kind of image processing method and device
CN104571812B (en) Information processing method and electronic equipment
WO2017050162A1 (en) Content input method and device
US9489215B2 (en) Managing an expression-based DFA construction process
CN113377265B (en) Annotating method and device, mobile terminal and storage medium