TWI746022B - Input system for controlling readonly property to avoid popping up virtual keyboard and input method thereof - Google Patents

Input system for controlling readonly property to avoid popping up virtual keyboard and input method thereof Download PDF

Info

Publication number
TWI746022B
TWI746022B TW109120939A TW109120939A TWI746022B TW I746022 B TWI746022 B TW I746022B TW 109120939 A TW109120939 A TW 109120939A TW 109120939 A TW109120939 A TW 109120939A TW I746022 B TWI746022 B TW I746022B
Authority
TW
Taiwan
Prior art keywords
input area
input
focus
read
module
Prior art date
Application number
TW109120939A
Other languages
Chinese (zh)
Other versions
TW202201211A (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 TW109120939A priority Critical patent/TWI746022B/en
Application granted granted Critical
Publication of TWI746022B publication Critical patent/TWI746022B/en
Publication of TW202201211A publication Critical patent/TW202201211A/en

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

An input system for controlling readonly property to avoid popping up a virtual keyboard and an input method thereof are provided. By setting up an input area to read only, setting up the input area readable and writable after a predetermined time for the input area gains focus, input a target data not gotten through a virtual keyboard into the input area, and setting up the input area to read only before the virtual keyboard displayed, the system and the method can control not to display virtual keyboard, and can achieve the effect of improving user experience without additional tools or plug-ins.

Description

控制讀寫屬性以避免彈出虛擬鍵盤之系統及方法System and method for controlling read and write attributes to avoid pop-up virtual keyboard

一種不顯示虛擬鍵盤之輸入系統及輸入方法,特別係指一種控制讀寫屬性以避免彈出虛擬鍵盤之系統及方法。An input system and input method that does not display a virtual keyboard, in particular, a system and method that controls read and write attributes to avoid pop-up virtual keyboards.

在目前的移動設備上,在遇到包含表單或需要使用者輸入的輸入介面時,執行於移動設備上的作業系統大多會彈出預先設定的虛擬鍵盤以提供使用者輸入。但實務上,表單或輸入介面中的部分欄位,並不一定需要由使用者操作虛擬鍵盤進行輸入,而是可以使用設置於移動設備上的其他硬體輸入,例如,當移動設備具有條碼掃描功能時,移動設備可以透過條碼掃描功能將條碼所表示的資料輸入表單或輸入介面的特定欄位中。On current mobile devices, when encountering an input interface that includes a form or requires user input, most operating systems running on the mobile device will pop up a preset virtual keyboard to provide user input. However, in practice, some fields in the form or input interface do not necessarily need to be entered by the user to operate the virtual keyboard. Instead, other hardware input provided on the mobile device can be used. For example, when the mobile device has a barcode scanner When functioning, the mobile device can input the data represented by the barcode into a specific field of the form or input interface through the barcode scanning function.

然而,即使使用者使用移動設備上非鍵盤的其他硬體進行資料輸入,移動設備上的作業系統還是會在移動設備的觸控螢幕上彈出虛擬鍵盤,導致表單或輸入介面被虛擬鍵盤覆蓋,使得實際上可顯示的範圍變小,進而造成使用者不便。However, even if the user uses other hardware other than the keyboard on the mobile device for data input, the operating system on the mobile device will still pop up a virtual keyboard on the touch screen of the mobile device, causing the form or input interface to be covered by the virtual keyboard. In fact, the displayable range becomes smaller, which causes inconvenience to the user.

為了解決不使用虛擬鍵盤卻顯示虛擬鍵盤導致可顯示範圍變小的問題,目前也有在虛擬鍵盤被顯示後即時或等待一段時間便主動關閉虛擬鍵盤的解決方案,雖然這樣的解決方案能夠解決上述的問題,但因為虛擬鍵盤仍然會被顯示,同樣會影響使用者體驗(User Experience, UX)。In order to solve the problem that the displayable range becomes smaller when the virtual keyboard is displayed without using the virtual keyboard, there are also solutions to actively close the virtual keyboard immediately or after waiting for a period of time after the virtual keyboard is displayed, although such a solution can solve the above-mentioned problems. Problem, but because the virtual keyboard will still be displayed, it will also affect the user experience (UX).

綜上所述,可知先前技術中長期以來一直存在虛擬鍵盤一定會在使用者於表單或輸入介面中進行輸入時彈出的問題,因此有必要提出改進的技術手段,來解決此一問題。In summary, it can be known that the virtual keyboard must pop up when the user enters in the form or input interface for a long time in the prior art. Therefore, it is necessary to propose improved technical means to solve this problem.

有鑒於先前技術存在虛擬鍵盤必定會在使用者於表單或輸入介面中進行輸入時彈出的問題,本發明遂揭露一種控制讀寫屬性以避免彈出虛擬鍵盤之系統及方法,其中:In view of the problem in the prior art that the virtual keyboard will inevitably pop up when the user enters in the form or input interface, the present invention discloses a system and method for controlling read and write attributes to avoid popping up the virtual keyboard, in which:

本發明所揭露之控制讀寫屬性以避免彈出虛擬鍵盤之系統,至少包含:顯示模組,用以顯示輸入介面,輸入介面包含輸入區域;焦點判斷模組,用以判斷輸入區域是否取得焦點,顯示模組更用以於輸入區域取得焦點時,顯示遮罩層;物件設定模組,用以設定輸入區域為唯讀,及用以於輸入區域取得焦點之預定時間後設定輸入區域取消唯讀;輸入模組,用以取得目標資料,物件設定模組更用以於輸入區域取消唯讀後將目標資料輸入至輸入區域中,其中,目標資料非透過鍵盤取得。The system for controlling read and write attributes to avoid pop-up virtual keyboards disclosed in the present invention at least includes: a display module for displaying an input interface, the input interface including an input area; a focus judgment module for judging whether the input area has a focus, The display module is also used to display the mask layer when the input area is focused; the object setting module is used to set the input area to be read-only, and to set the input area to cancel the read-only after a predetermined time when the input area is focused ; The input module is used to obtain the target data, and the object setting module is used to input the target data into the input area after canceling the read-only input in the input area. The target data is not obtained through the keyboard.

本發明所揭露之控制讀寫屬性以避免彈出虛擬鍵盤之方法,其步驟至少包括:顯示輸入介面,輸入介面包含輸入區域;設定輸入區域為唯讀;當輸入區域取得焦點時,顯示一遮罩層,及於預定時間後設定輸入區域取消唯讀,並將非透過鍵盤取得之目標資料輸入至輸入區域中。The method for controlling read and write attributes to avoid popping up a virtual keyboard disclosed in the present invention includes at least the steps of: displaying an input interface, which includes an input area; setting the input area to be read-only; and displaying a mask when the input area is focused Layer, and set the input area to cancel the read-only after a predetermined time, and enter the target data not obtained through the keyboard into the input area.

本發明所揭露之系統與方法如上,與先前技術之間的差異在於本發明透過將設定輸入區域為唯讀後,當輸入區域取得焦點時,於預定時間後設定輸入區域取消唯讀,並將非透過鍵盤取得之目標資料輸入至輸入區域中,及在虛擬鍵盤被顯示前將輸入區域設定為唯讀,藉以解決先前技術所存在的問題,並可以達成不使用額外工具或外掛提高使用者體驗的技術功效。The system and method disclosed in the present invention are as above. The difference between the system and the prior art is that the present invention sets the input area to be read-only, and when the input area gets the focus, set the input area to cancel the read-only after a predetermined time. The target data that is not obtained through the keyboard is input into the input area, and the input area is set to read-only before the virtual keyboard is displayed, so as to solve the problems of the previous technology and improve the user experience without using additional tools or plug-ins Technical efficacy.

以下將配合圖式及實施例來詳細說明本發明之特徵與實施方式,內容足以使任何熟習相關技藝者能夠輕易地充分理解本發明解決技術問題所應用的技術手段並據以實施,藉此實現本發明可達成的功效。In the following, the features and implementation of the present invention will be described in detail with the drawings and embodiments. The content is sufficient to enable any person familiar with the relevant art to easily and fully understand the technical means used by the present invention to solve the technical problems and implement them accordingly. The achievable effect of the present invention.

本發明可以在不修改現有行動裝置之作業系統的情況下,在輸入區域取得焦點(onFocus)時,控制行動裝置不彈出或不顯示虛擬鍵盤。其中,輸入區域可以是單行或多行的文字輸入框,但本發明並不以此為限。The present invention can control the mobile device not to pop up or display the virtual keyboard when the focus (onFocus) of the input area is obtained without modifying the operating system of the existing mobile device. The input area can be a single-line or multi-line text input box, but the present invention is not limited to this.

本發明所提之虛擬鍵盤為執行電腦程式而在行動裝置之觸控螢幕上被顯示的使用者介面,行動裝置的使用者可以透過點擊使用者介面上的特定圖示來輸入資料。The virtual keyboard provided by the present invention is a user interface displayed on the touch screen of a mobile device for executing computer programs. The user of the mobile device can input data by clicking a specific icon on the user interface.

以下先以「第1圖」本發明所提之控制讀寫屬性以避免彈出虛擬鍵盤之系統的系統架構圖來說明本發明的系統運作。如「第1圖」所示,本發明之系統應用在計算設備100中,含有焦點判斷模組110、顯示模組120、輸入模組130、物件設定模組150,及可以附加的事件監聽模組160。In the following, the system architecture diagram of the system for controlling the read/write attributes mentioned in the present invention to avoid popping up the virtual keyboard is used to illustrate the operation of the system of the present invention. As shown in "Figure 1", the system of the present invention is applied to a computing device 100, and includes a focus judgment module 110, a display module 120, an input module 130, an object setting module 150, and an event monitoring module that can be attached. Group 160.

焦點判斷模組110負責判斷顯示模組120所顯示的輸入區域是否取得焦點。焦點判斷模組110可以透過檢查輸入區域中與取得焦點相關之屬性的方式來判斷輸入區域是否取得焦點,例如,判斷屬性focus是否為真,若是則表示輸入區域取得焦點,若為否則表示輸入區域沒有取得焦點或失去焦點。但焦點判斷模組110判斷輸入區域是否取得焦點之方式並不以上述為限。The focus determination module 110 is responsible for determining whether the input area displayed by the display module 120 has the focus. The focus judgment module 110 can judge whether the input area has obtained focus by checking the attributes related to obtaining the focus in the input area, for example, judge whether the attribute focus is true, if it is, it means the input area has the focus, if it is otherwise, it means the input area No focus or loss of focus. However, the method for the focus determining module 110 to determine whether the input area has a focus is not limited to the above.

在部分的實施例中,焦點判斷模組110可以先判斷計算設備100是否為非鍵盤輸入模式,若是,焦點判斷模組110才可以進一步判斷輸入區域是否取得焦點,若否,也就是計算設備100為鍵盤輸入模式,則焦點判斷模組110可以結束執行。In some embodiments, the focus determining module 110 may first determine whether the computing device 100 is in a non-keyboard input mode. If so, the focus determining module 110 may further determine whether the input area has the focus, if not, the computing device 100 In the keyboard input mode, the focus judgment module 110 can end the execution.

顯示模組120負責顯示輸入介面,顯示模組120所顯示的輸入介面可以包含一個或多個輸入區域。The display module 120 is responsible for displaying the input interface, and the input interface displayed by the display module 120 may include one or more input areas.

顯示模組120也負責在焦點判斷模組110所顯示之輸入介面中的輸入區域取得焦點時,在輸入介面上顯示遮罩層。顯示模組120所顯示的遮罩層通常為可以遮蓋住輸入介面的透明分層(layer),對於計算設備100的使用者而言,仍然可以透過遮罩層觀看到輸入介面中的各個物件,也就是說,不論遮罩層是否被顯示模組120顯示,計算設備100的使用者所看到之計算設備100所顯示的畫面都是相同的。The display module 120 is also responsible for displaying a mask layer on the input interface when the input area of the input interface displayed by the focus determination module 110 is focused. The mask layer displayed by the display module 120 is usually a transparent layer that can cover the input interface. For the user of the computing device 100, various objects in the input interface can still be viewed through the mask layer. That is, regardless of whether the mask layer is displayed by the display module 120 or not, the screen displayed by the computing device 100 that the user of the computing device 100 sees is the same.

顯示模組120也可以在焦點判斷模組110判斷所顯示之輸介面中的輸入區域失去焦點時,取消顯示遮罩層,也就是不顯示遮蓋住輸入介面的遮罩層。The display module 120 can also cancel the display mask layer when the focus determination module 110 determines that the input area of the displayed input interface loses focus, that is, does not display the mask layer covering the input interface.

輸入模組130負責取得目標資料。輸入模組130所取得之目標資料為使用者欲輸入的資料,通常由任意數量的文字、字母、數字、符號任意排列而成,但本發明並不以此為限。The input module 130 is responsible for obtaining target data. The target data obtained by the input module 130 is the data that the user wants to input, which is usually formed by arbitrary arrangement of any number of characters, letters, numbers, and symbols, but the present invention is not limited to this.

需要特別說明的是,在本發明中,由於會阻止虛擬鍵盤被顯示,因此,輸入模組130並不會透過虛擬鍵盤取得目標資料。在部分的實施例中。輸入模組130可以透過設置於計算設備100上之條碼掃描或影像處理等裝置、模組、單元、或元件(圖中未示)以掃描條碼或辨識被擷取影像中之文字的方式取得目標資料,但本發明並不以此為限。It should be particularly noted that in the present invention, since the virtual keyboard is prevented from being displayed, the input module 130 does not obtain the target data through the virtual keyboard. In some examples. The input module 130 can obtain the target by scanning the barcode or recognizing the text in the captured image through a device, module, unit, or component (not shown in the figure) such as barcode scanning or image processing provided on the computing device 100 Data, but the present invention is not limited to this.

物件設定模組150負責將顯示模組120所顯示之輸入介面中的輸入區域設定為唯讀(readonly),使得無法將資料輸入到輸入區域中。在部分的實施例中,物件設定模組150可以在焦點判斷模組110判斷計算設備100在非鍵盤輸入模式時將輸入區域設定為唯讀,而若焦點判斷模組110判斷計算設備100在鍵盤輸入模式,則物件設定模組150可以不將輸入區域設定為唯讀。The object setting module 150 is responsible for setting the input area in the input interface displayed by the display module 120 to be readonly, so that data cannot be input into the input area. In some embodiments, the object setting module 150 may set the input area to be read-only when the focus determining module 110 determines that the computing device 100 is in the non-keyboard input mode, and if the focus determining module 110 determines that the computing device 100 is on the keyboard In the input mode, the object setting module 150 may not set the input area to be read-only.

物件設定模組150也負責在焦點判斷模組110判斷顯示模組120所顯示之輸入區域取得焦點的預定時間後將輸入區域設定為非唯讀,也就是取消輸入區域的唯讀狀態,使得輸入區域中的資料可以被讀取,且也可以輸入資料到輸入區域中。上述之預定時間小於虛擬鍵盤被彈出或被顯示的時間。The object setting module 150 is also responsible for setting the input area to be non-read only after the focus judgment module 110 judges that the input area displayed by the display module 120 gets the focus for a predetermined time, that is, cancels the read-only state of the input area, so that the input The data in the area can be read, and data can also be entered into the input area. The above-mentioned predetermined time is less than the time when the virtual keyboard is popped up or displayed.

物件設定模組150也負責在設定輸入區域取消唯讀後,將輸入模組130所取得的目標資料輸入至輸入區域中。The object setting module 150 is also responsible for inputting the target data obtained by the input module 130 into the input area after canceling the read-only setting of the input area.

物件設定模組150也可以在事件監聽模組160判斷顯示模組120所顯示之輸入區域無法持續取得焦點時,設定輸入區域失去焦點。物件設定模組150也可以在焦點判斷模組110判斷輸入區域失去焦點時,設定輸入區域為唯讀。The object setting module 150 may also set the input area to lose focus when the event monitoring module 160 determines that the input area displayed by the display module 120 cannot continuously obtain the focus. The object setting module 150 may also set the input area to be read-only when the focus judgment module 110 judges that the input area loses focus.

物件設定模組150可以透過設定輸入區域中與唯讀狀態相關之屬性的方式來設定輸入區域是否為唯讀,例如,物件設定模組150可以將輸入區域中的屬性readonly設定為真(true),藉以將輸入區域設定為唯讀的狀態;物件設定模組150也可以將輸入區域中的readonly屬性設定為假(false),藉以將輸入區域設定為非唯讀的狀態。但物件設定模組150將輸入區域設定為唯讀或非唯讀之方式並不以上述為限。The object setting module 150 can set whether the input area is read-only by setting attributes related to the read-only state in the input area. For example, the object setting module 150 can set the attribute readonly in the input area to true. , Thereby setting the input area to a read-only state; the object setting module 150 can also set the readonly attribute in the input area to false, thereby setting the input area to a non-read-only state. However, the manner in which the object setting module 150 sets the input area as read-only or non-read-only is not limited to the above.

相似的,物件設定模組150可以透過設定輸入區域中與取得焦點相關之屬性的方式來設定輸入區域是否取得焦點或失去焦點(即沒有取得焦點),例如,物件設定模組150可以將輸入區域中的屬性focus設定為真,藉以將輸入區域設定為取得焦點,也可以將輸入區域中的focus屬性設定為假,藉以將輸入區域設定為沒有取得焦點或失去焦點。但物件設定模組150將輸入區域設定為取得或失去焦點之方式並不以上述為限。Similarly, the object setting module 150 can set whether the input area is focused or loses focus (that is, the focus is not acquired) by setting the attributes related to the focus of the input area. For example, the object setting module 150 can set the input area The attribute focus in is set to true, so that the input area is set to get focus, and the focus attribute in the input area can also be set to false, so that the input area is set to not get focus or lose focus. However, the manner in which the object setting module 150 sets the input area to obtain or lose focus is not limited to the above.

事件監聽模組160可以在焦點判斷模組110判斷顯示模組120所顯示之輸入區域取得焦點後,也就是可以在顯示模組120顯示遮罩層後,開始監聽點擊事件。一般而言,點擊事件為使用者對計算設備100的觸控螢幕或觸控板等觸控輸入裝置進行點選或單擊等操作所產生。The event monitoring module 160 may start to monitor the click event after the focus determination module 110 determines that the input area displayed by the display module 120 has the focus, that is, after the display module 120 displays the mask layer. Generally speaking, a click event is generated by a user clicking or clicking on a touch input device such as a touch screen or a touch pad of the computing device 100.

事件監聽模組160也可以依據所監聽到之點擊事件的發生位置及當前取得焦點之輸入區域的位置判斷輸入區域是否持續取得焦點。舉例來說,事件監聽模組160可以在監聽到點擊事件後,取得被監聽到之點擊事件發生在被顯示模組120顯示於顯示畫面中之遮罩層上的座標,並可以取得當前取得焦點之輸入區域在顯示畫面中的位置,如左上角與右下角的座標,接著,事件監聽模組160可以判斷點擊事件的發生位置是否落在當前取得焦點之輸入區域的範圍內,若是,事件監聽模組160可以判斷當前取得焦點之輸入區域持續取得焦點,而若點擊事件的發生位置沒有落在當前取得焦點之輸入區域的範圍內,則事件監聽模組160可以判斷當前取得焦點之輸入區域失去焦點。The event monitoring module 160 can also determine whether the input area continues to obtain focus based on the occurrence position of the monitored click event and the position of the currently focused input area. For example, after monitoring the click event, the event monitoring module 160 can obtain the coordinates of the monitored click event occurring on the mask layer displayed on the display screen of the displayed module 120, and can obtain the current focus. The position of the input area in the display screen, such as the coordinates of the upper left corner and the lower right corner. Then, the event monitoring module 160 can determine whether the location of the click event falls within the range of the currently focused input area. If so, the event monitor The module 160 can determine that the currently focused input area continues to obtain the focus, and if the location of the click event does not fall within the range of the currently focused input area, the event monitoring module 160 can determine that the currently focused input area is lost focus.

接著以一個實施例來解說本發明的運作系統與方法,並請參照「第2A圖」本發明所提之控制讀寫屬性以避免彈出虛擬鍵盤之方法流程圖。在本實施例中,假設計算設備100包含觸控螢幕與掃瞄裝置。Next, an embodiment is used to explain the operating system and method of the present invention, and please refer to "Figure 2A" for the flow chart of the method for controlling the read and write attributes mentioned in the present invention to avoid popping up the virtual keyboard. In this embodiment, it is assumed that the computing device 100 includes a touch screen and a scanning device.

首先,顯示模組120可以顯示輸入介面(步驟201)。在本實施例中,假設顯示模組120可以顯示包含表單的輸入介面,表單中包含多個文字輸入框(輸入區域)。First, the display module 120 can display the input interface (step 201). In this embodiment, it is assumed that the display module 120 can display an input interface including a form, and the form includes a plurality of text input boxes (input areas).

在顯示模組120顯示輸入介面(步驟201)後,輸入模組130可以透過計算設備100的掃描裝置開始掃描文字或條碼以取得目標資料。After the display module 120 displays the input interface (step 201), the input module 130 can start scanning text or bar codes through the scanning device of the computing device 100 to obtain target data.

同樣在顯示模組120顯示輸入介面(步驟201)後,物件設定模組150可以將顯示模組120所顯示之輸入介面中的輸入區域設定為唯讀(步驟215)。在本實施例中,若計算設備100僅提供透過掃描裝置輸入,則物件設定模組150可以直接將輸入區域設定為唯讀;而若計算設備100同時提供掃描裝置輸入與虛擬鍵盤輸入,則焦點判斷模組110可以先判斷計算設備100是否為非鍵盤輸入模示,例如,依據設置於計算設備100上的硬體開關所產生的訊號判斷硬體開關是否被撥到表示掃描輸入的位置或是被按下而使得計算設備100進入非鍵盤輸入模式,物件設定模組150可以在焦點判斷模組110判斷計算設備100進入非鍵盤輸入模式時才將輸入區域設定為唯讀;但若焦點判斷模組110判斷計算設備100沒有進入非鍵盤輸入模式,則物件設定模組150可以不將輸入區域設定為唯讀。Similarly, after the display module 120 displays the input interface (step 201), the object setting module 150 can set the input area in the input interface displayed by the display module 120 to be read-only (step 215). In this embodiment, if the computing device 100 only provides input through the scanning device, the object setting module 150 can directly set the input area to be read-only; and if the computing device 100 provides both the scanning device input and the virtual keyboard input, the focus The judging module 110 can first judge whether the computing device 100 is a non-keyboard input mode, for example, according to the signal generated by the hardware switch set on the computing device 100, it can judge whether the hardware switch is turned to the position indicating the scanning input or When pressed to make the computing device 100 enter the non-keyboard input mode, the object setting module 150 can set the input area to be read only when the focus determination module 110 determines that the computing device 100 enters the non-keyboard input mode; but if the focus determination mode The group 110 determines that the computing device 100 does not enter the non-keyboard input mode, and the object setting module 150 may not set the input area to be read-only.

在物件設定模組150將顯示模組120所顯示的輸入區域設定為唯讀(步驟215)後,焦點判斷模組110可以判斷顯示模組120所顯示的輸入區域是否取得焦點(步驟220)。After the object setting module 150 sets the input area displayed by the display module 120 as read-only (step 215), the focus determination module 110 can determine whether the input area displayed by the display module 120 has the focus (step 220).

當焦點判斷模組110判斷顯示模組120所顯示的輸入區域取得焦點時,例如,使用者在計算設備100的觸控螢幕上點擊輸入區域,則顯示模組120可以在觸控螢幕上顯示覆蓋顯示模組120先前所顯示之輸入介面的遮罩層(步驟230)。在本實施例中,雖然輸入區域取得焦點,但由於輸入區域被設定為唯讀而無法輸入資料,因此,運行在計算設備100中的作業系統不會在計算設備100的觸控螢幕中顯示或彈出虛擬鍵盤。When the focus determination module 110 determines that the input area displayed by the display module 120 is in focus, for example, if the user clicks the input area on the touch screen of the computing device 100, the display module 120 may display an overlay on the touch screen. The mask layer of the input interface previously displayed by the display module 120 (step 230). In this embodiment, although the input area has the focus, data cannot be input because the input area is set to read-only. Therefore, the operating system running on the computing device 100 will not display or display on the touch screen of the computing device 100. The virtual keyboard pops up.

在顯示模組120顯示遮罩層(步驟230)的預定時間後,物件設定模組150可以設定取得焦點的輸入區域取消唯讀(步驟251)。在本實施例中,假設物件設定模組150可以在顯示模組120顯示遮罩層的100毫秒後,將取得焦點的輸入區域設定為取消唯讀。After the predetermined time for the display module 120 to display the mask layer (step 230), the object setting module 150 may set the input area that has the focus to cancel the read-only (step 251). In this embodiment, it is assumed that the object setting module 150 can set the focus-obtained input area to cancel read-only 100 milliseconds after the display module 120 displays the mask layer.

在物件設定模組150將取得焦點的輸入區域設定為取消唯讀(步驟251)後,物件設定模組150可以將輸入模組130所取得之目標資料輸入到取得焦點的輸入區域中(步驟255)。在本實施例中,假設運行於計算設備100中之作業系統會在輸入區域取消唯讀後的300毫秒後在計算設備100的觸控螢幕上彈出或顯示虛擬鍵盤,則物件設定模組150可以在運行於計算設備100中之作業系統彈出或顯示虛擬鍵盤前,也就是物件設定模組150設定取消唯讀後300毫秒內,將輸入模組130當前透過計算設備100之掃描裝置所取得的目標資料設定到取得焦點的輸入區域,藉以將目標資料輸入取得焦點的輸入區域中。After the object setting module 150 sets the focused input area to cancel read-only (step 251), the object setting module 150 can input the target data obtained by the input module 130 into the focused input area (step 255). ). In this embodiment, assuming that the operating system running on the computing device 100 will pop up or display a virtual keyboard on the touch screen of the computing device 100 after 300 milliseconds after the input area is canceled to read-only, the object setting module 150 can Before the operating system running on the computing device 100 pops up or displays the virtual keyboard, that is, within 300 milliseconds after the object setting module 150 is set to cancel the read-only setting, the target currently acquired by the module 130 through the scanning device of the computing device 100 is input The data is set to the input area where the focus is obtained, so that the target data is input into the input area where the focus is obtained.

在物件設定模組150將輸入模組130所取得之目標資料輸入到取得焦點的輸入區域中(步驟255)後,計算設備100中之作業系統彈出或顯示虛擬鍵盤前,在本實施例中也就是物件設定模組150設定取消唯讀後的300毫秒前,物件設定模組150可以再次將取得焦點的輸入區域設定為唯讀,藉以避免計算設備100中之作業系統彈出或顯示虛擬鍵盤。如此,透過本發明,便可以在不彈出或顯示虛擬鍵盤的情況下透過非鍵盤的輸入裝置完成目標資料的輸入。After the object setting module 150 inputs the target data obtained by the input module 130 into the input area where the focus is obtained (step 255), before the operating system in the computing device 100 pops up or displays the virtual keyboard, in this embodiment also That is, 300 milliseconds before the object setting module 150 is set to cancel the read-only setting, the object setting module 150 can again set the focused input area to be read-only, so as to prevent the operating system of the computing device 100 from popping up or displaying the virtual keyboard. In this way, through the present invention, the input of target data can be completed through an input device other than a keyboard without popping up or displaying a virtual keyboard.

同樣在物件設定模組150將輸入模組130所取得之目標資料輸入到取得焦點的輸入區域中(步驟255)後,本發明也可以如「第2B圖」之流程所示,焦點判斷模組110可以再次判斷取得焦點的輸入區域是否持續取得焦點(步驟220)。若焦點判斷模組110判斷取得焦點的輸入區域失去焦點,則顯示模組120可以取消顯示遮罩層(步驟270)。Similarly, after the object setting module 150 inputs the target data obtained by the input module 130 into the input area where the focus is obtained (step 255), the present invention can also be as shown in the flow of "Figure 2B", the focus determination module 110 can again determine whether the focused input area continues to be focused (step 220). If the focus determination module 110 determines that the input area that has the focus loses focus, the display module 120 may cancel the display mask layer (step 270).

而若焦點判斷模組110判斷取得焦點的輸入區域仍然取得焦點,則物件設定模組150可以再次將持續取得焦點的輸入區域設定為唯讀,避免計算設備100中之作業系統彈出或顯示虛擬鍵盤,之後,物件設定模組150可以於將輸入區域設定為唯讀之預定時間後再次設定取得焦點的輸入區域取消唯讀(步驟260),藉以再次將輸入模組130於前次物件設定模組將目標資料設定到取得焦點之輸入區域中後所取得之其他目標資料輸入到取得焦點的輸入區域中(步驟255)。If the focus determining module 110 determines that the focused input area is still focused, the object setting module 150 can again set the continuously focused input area to be read-only, so as to prevent the operating system of the computing device 100 from popping up or displaying a virtual keyboard , Afterwards, the object setting module 150 can set the input area with the focus to cancel the read-only (step 260) after setting the input area to be read-only for a predetermined time, so as to re-set the input module 130 to the previous object setting module The other target data obtained after setting the target data in the input area where the focus is obtained are input into the input area where the focus is obtained (step 255).

另外,若本發明還包含事件監聽模組160,則本實施例也可以如「第2C圖」之流程所示,在物件設定模組150將輸入模組130所取得之目標資料輸入到取得焦點的輸入區域中(步驟255)後,事件監聽模組160可以開始監聽點擊事件(步驟281)。在本實施例中,由於在顯示模組120所顯示的輸入介面上,還有顯示模組120所顯示的遮罩層,因此,使用者在計算設備100之觸控螢幕上的操作都會落在遮罩層上,事件監聽模組160可以監聽落在遮罩層上的點擊事件。In addition, if the present invention further includes the event monitoring module 160, the present embodiment can also input the target data obtained by the input module 130 in the object setting module 150 to obtain the focus as shown in the flow of "Figure 2C". After entering the input area (step 255), the event monitoring module 160 can start to monitor the click event (step 281). In this embodiment, since the input interface displayed by the display module 120 also has a mask layer displayed by the display module 120, the user's operations on the touch screen of the computing device 100 will fall on On the mask layer, the event monitoring module 160 can monitor click events falling on the mask layer.

在事件監聽模組160監聽到點擊事件時,可以依據點擊事件的發生位置與當前取得焦點之輸入區域的位置判斷當前取得焦點之輸入區域是否能夠持續取得焦點(步驟285)。若是,則物件設定模組150可以於將輸入區域設定為唯讀之預定時間後再次設定取得焦點的輸入區域取消唯讀(步驟260),藉以再次將輸入模組130於前次物件設定模組將目標資料設定到取得焦點之輸入區域中後所取得之其他目標資料輸入到取得焦點的輸入區域中(步驟255)。When the event monitoring module 160 monitors a click event, it can determine whether the currently focused input area can continuously obtain focus according to the location of the click event and the position of the currently focused input area (step 285). If yes, the object setting module 150 can set the input area that has the focus to cancel the read-only (step 260) after setting the input area to be read-only for a predetermined time, so that the input module 130 can be used in the previous object setting module again The other target data obtained after setting the target data in the input area where the focus is obtained are input into the input area where the focus is obtained (step 255).

而若事件監聽模組160判斷當前取得焦點之輸入區域無法持續取得焦點,則物件設定模組150可以將取得焦點之輸入區域設定為失去焦點(步驟291),顯示模組120可以取消顯示遮罩層,且物件設定模組150可以設定先前取得焦點的輸入區域為唯讀(步驟295)。If the event monitoring module 160 determines that the currently focused input area cannot be continuously focused, the object setting module 150 may set the focused input area to lose focus (step 291), and the display module 120 may cancel the display mask The object setting module 150 can set the previously focused input area to be read-only (step 295).

綜上所述,可知本發明與先前技術之間的差異在於具有將設定輸入區域為唯讀後,當輸入區域取得焦點時,於預定時間後設定輸入區域取消唯讀,並將非透過鍵盤取得之目標資料輸入至輸入區域中,及在虛擬鍵盤被顯示前將輸入區域設定為唯讀之技術手段,藉由此一技術手段可以解決先前技術所存在虛擬鍵盤一定會在使用者於表單或輸入介面中進行輸入時彈出的問題,進而達成不使用額外工具或外掛並提高使用者體驗的技術功效。In summary, it can be seen that the difference between the present invention and the prior art is that after setting the input area as read-only, when the input area gets the focus, the input area is set to cancel the read-only after a predetermined time, and the input area is not obtained through the keyboard. The target data is input into the input area, and the input area is set to read-only technical means before the virtual keyboard is displayed. This technical means can solve the problem that the virtual keyboard in the prior art must be displayed in the form or input by the user. The problem that pops up when inputting in the interface, so as to achieve the technical effect of not using additional tools or plug-ins and improving the user experience.

再者,本發明之控制讀寫屬性以避免彈出虛擬鍵盤之方法,可實現於硬體、軟體或硬體與軟體之組合中。Furthermore, the method of controlling the read and write attributes of the present invention to avoid pop-up virtual keyboards can be implemented in hardware, software, or a combination of hardware and software.

雖然本發明所揭露之實施方式如上,惟所述之內容並非用以直接限定本發明之專利保護範圍。任何本發明所屬技術領域中具有通常知識者,在不脫離本發明所揭露之精神和範圍的前提下,對本發明之實施的形式上及細節上作些許之更動潤飾,均屬於本發明之專利保護範圍。本發明之專利保護範圍,仍須以所附之申請專利範圍所界定者為準。Although the embodiments of the present invention are disclosed as above, the content described is not intended to directly limit the scope of patent protection of the present invention. Any person with ordinary knowledge in the technical field to which the present invention belongs, without departing from the spirit and scope of the present invention, makes slight modifications to the form and details of the implementation of the present invention, all belong to the patent protection of the present invention. Scope. The scope of patent protection of the present invention shall still be determined by the scope of the attached patent application.

100:計算設備 110:焦點判斷模組 120:顯示模組 130:輸入模組 150:物件設定模組 160:事件監聽模組 步驟201:顯示輸入介面 步驟215:設定顯示介面中之輸入區域為唯讀 步驟220:判斷輸入區域是否取得焦點 步驟230:顯示遮罩層 步驟251:於預定時間後設定輸入區域取消唯讀 步驟255:將非透過鍵盤取得之目標資料輸入至輸入區域中 步驟260:設定輸入區域為唯讀,並於預定時間後設定輸入區域取消唯讀 步驟270:取消顯示遮罩層 步驟281:監聽點擊事件 步驟285:依據點擊事件之發生位置判斷輸入區域是否持續取得焦點 步驟291:設定輸入區域失去焦點 步驟295:取消顯示遮罩層並設定輸入區域為唯讀100: computing equipment 110: Focus Judgment Module 120: display module 130: input module 150: Object setting module 160: event monitoring module Step 201: display the input interface Step 215: Set the input area in the display interface to read only Step 220: Determine whether the input area has the focus Step 230: display the mask layer Step 251: Set the input area to cancel the read-only after the predetermined time Step 255: Enter the target data that is not obtained through the keyboard into the input area Step 260: Set the input area to be read-only, and set the input area to cancel the read-only after a predetermined time Step 270: Cancel the display mask layer Step 281: listen for click events Step 285: Determine whether the input area continues to obtain focus according to the location of the click event Step 291: Set the input area to lose focus Step 295: Cancel the display of the mask layer and set the input area to be read-only

第1圖為本發明所提之控制讀寫屬性以避免彈出虛擬鍵盤之系統架構圖。 第2A圖為本發明所提之控制讀寫屬性以避免彈出虛擬鍵盤之方法流程圖。 第2B圖為本發明所提之控制讀寫屬性以避免彈出虛擬鍵盤之方法之附加方法流程圖。 第2C圖為本發明所提之監聽點擊事件之附加方法流程圖。 Figure 1 is a system architecture diagram of the present invention for controlling read and write attributes to avoid pop-up virtual keyboards. Figure 2A is a flow chart of the method for controlling read and write attributes to avoid popping up a virtual keyboard according to the present invention. FIG. 2B is a flowchart of an additional method of the method for controlling read and write attributes to avoid pop-up of the virtual keyboard according to the present invention. Figure 2C is a flowchart of the additional method for monitoring click events according to the present invention.

步驟201:顯示輸入介面 Step 201: display the input interface

步驟215:設定顯示介面中之輸入區域為唯讀 Step 215: Set the input area in the display interface to read only

步驟220:判斷輸入區域是否取得焦點 Step 220: Determine whether the input area has the focus

步驟230:顯示遮罩層 Step 230: display the mask layer

步驟251:於預定時間後設定輸入區域取消唯讀 Step 251: Set the input area to cancel the read-only after the predetermined time

步驟255:將非透過鍵盤取得之目標資料輸入至輸入區域中 Step 255: Enter the target data that is not obtained through the keyboard into the input area

Claims (10)

一種控制讀寫屬性以避免彈出虛擬鍵盤之方法,該方法至少包含下列步驟: 顯示一輸入介面,該輸入介面包含一輸入區域; 設定該輸入區域為唯讀;及 當該輸入區域取得焦點時,執行下列步驟: 顯示一遮罩層;及 於一預定時間後設定該輸入區域取消唯讀,並將非透過鍵盤取得之一目標資料輸入至該輸入區域中。 A method for controlling read and write attributes to avoid pop-up virtual keyboard, the method includes at least the following steps: An input interface is displayed, and the input interface includes an input area; Set the input area as read-only; and When the input area gets the focus, perform the following steps: Show a mask layer; and After a predetermined time, the input area is set to cancel the read-only, and a target data obtained through the keyboard is input into the input area. 如請求項1所述之控制讀寫屬性以避免彈出虛擬鍵盤之方法,其中該方法於將非透過鍵盤取得之該目標資料輸入至該輸入區域中之步驟後,更包含判斷該輸入區域持續取得焦點時,再次設定該輸入區域為唯讀,並於該預定時間後設定該輸入區域取消唯讀,及再次將非透過鍵盤取得之另一目標資料輸入至該輸入區域中之步驟。The method for controlling read and write attributes as described in claim 1 to avoid pop-up of a virtual keyboard, wherein the method further includes determining that the input area is continuously obtained after the step of inputting the target data that is not obtained through the keyboard into the input area When focusing, set the input area as read-only again, set the input area to cancel the read-only after the predetermined time, and input another target data not obtained through the keyboard into the input area again. 如請求項1所述之控制讀寫屬性以避免彈出虛擬鍵盤之方法,其中該方法於將非透過鍵盤取得之該目標資料輸入至該輸入區域中之步驟後,更包含監聽一點擊事件,並依據該點擊事件於該遮罩層上之發生位置及該輸入區域之位置判斷該輸入區域是否持續取得焦點。The method for controlling read and write attributes to avoid popping up a virtual keyboard as described in claim 1, wherein the method further includes monitoring a click event after the step of inputting the target data that is not obtained through the keyboard into the input area, and According to the occurrence position of the click event on the mask layer and the position of the input area, it is determined whether the input area continuously obtains the focus. 如請求項3所述之控制讀寫屬性以避免彈出虛擬鍵盤之方法,其中該方法於判斷該輸入區域無法持續取得焦點之步驟後,更包含設定該輸入區域失去焦點,及取消顯示該遮罩層並設定該輸入區域為唯讀之步驟。The method for controlling read and write attributes as described in claim 3 to avoid pop-up virtual keyboards, wherein the method further includes setting the input area to lose focus after the step of determining that the input area cannot continuously obtain focus, and canceling the display of the mask Layer and set the input area as a read-only step. 如請求項1所述之控制讀寫屬性以避免彈出虛擬鍵盤之方法,其中該方法於設定該輸入區域為唯讀之步驟前,更包含判斷是否為非鍵盤輸入模式之步驟。The method for controlling read and write attributes to avoid pop-up of a virtual keyboard as described in claim 1, wherein the method further includes the step of determining whether it is a non-keyboard input mode before the step of setting the input area as read-only. 一種控制讀寫屬性以避免彈出虛擬鍵盤之系統,該系統至少包含: 一顯示模組,用以顯示一輸入介面,該輸入介面包含一輸入區域; 一焦點判斷模組,用以判斷該輸入區域是否取得焦點,該顯示模組更用以於該輸入區域取得焦點時,顯示一遮罩層; 一物件設定模組,用以設定該輸入區域為唯讀,及用以於該輸入區域取得焦點之一預定時間後設定該輸入區域取消唯讀;及 一輸入模組,用以取得一目標資料,該物件設定模組更用以於該輸入區域取消唯讀後將該目標資料輸入至該輸入區域中,其中,該目標資料非透過鍵盤取得。 A system for controlling read and write attributes to avoid pop-up virtual keyboards, the system includes at least: A display module for displaying an input interface, the input interface including an input area; A focus judgment module for judging whether the input area has a focus, and the display module is further used for displaying a mask layer when the input area has a focus; An object setting module for setting the input area as read-only, and for setting the input area to cancel the read-only after a predetermined period of time after the input area obtains the focus; and An input module is used to obtain a target data, and the object setting module is further used to input the target data into the input area after canceling read-only in the input area, wherein the target data is not obtained through a keyboard. 如請求項6所述之控制讀寫屬性以避免彈出虛擬鍵盤之系統,其中該系統更包含一事件監聽模組,用以於該顯示模組顯示該遮罩層後,監聽一點擊事件,並依據該點擊事件於該遮罩層上之發生位置及該輸入區域之位置判斷該輸入區域是否持續取得焦點,該物件設定模組更用以於該輸入區域無法持續取得焦點時,設定該輸入區域失去焦點。The system for controlling read and write attributes to avoid pop-up virtual keyboards as described in claim 6, wherein the system further includes an event monitoring module for monitoring a click event after the display module displays the mask layer, and According to the position of the click event on the mask layer and the position of the input area, it is judged whether the input area keeps getting the focus. The object setting module is used to set the input area when the input area cannot keep getting the focus. lose focus. 如請求項7所述之控制讀寫屬性以避免彈出虛擬鍵盤之系統,其中該顯示模組更用於該焦點判斷模組判斷該輸入區域失去焦點時,取消顯示該遮罩層,該物件設定模組更用以於該焦點判斷模組判斷該輸入區域失去焦點時,設定該輸入區域為唯讀。The system for controlling read and write attributes as described in claim 7 to avoid pop-up virtual keyboards, wherein the display module is further used for canceling the display of the mask layer when the focus determination module determines that the input area loses focus, and the object is set The module is further used to set the input area to be read-only when the focus judgment module judges that the input area loses focus. 如請求項6所述之控制讀寫屬性以避免彈出虛擬鍵盤之系統,其中該輸入模組是透過掃描取得該目標資料。The system for controlling read and write attributes as described in claim 6 to avoid pop-up of a virtual keyboard, wherein the input module obtains the target data through scanning. 如請求項6所述之控制讀寫屬性以避免彈出虛擬鍵盤之系統,其中該焦點判斷模組更用以於判斷該輸入區域是否取得焦點前,先判斷是否為非鍵盤輸入模式。The system for controlling read and write attributes to avoid pop-up of virtual keyboard as described in claim 6, wherein the focus determining module is further used to determine whether the input area is in a non-keyboard input mode before determining whether the input area has the focus.
TW109120939A 2020-06-19 2020-06-19 Input system for controlling readonly property to avoid popping up virtual keyboard and input method thereof TWI746022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109120939A TWI746022B (en) 2020-06-19 2020-06-19 Input system for controlling readonly property to avoid popping up virtual keyboard and input method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109120939A TWI746022B (en) 2020-06-19 2020-06-19 Input system for controlling readonly property to avoid popping up virtual keyboard and input method thereof

Publications (2)

Publication Number Publication Date
TWI746022B true TWI746022B (en) 2021-11-11
TW202201211A TW202201211A (en) 2022-01-01

Family

ID=79907431

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109120939A TWI746022B (en) 2020-06-19 2020-06-19 Input system for controlling readonly property to avoid popping up virtual keyboard and input method thereof

Country Status (1)

Country Link
TW (1) TWI746022B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681763A (en) * 2011-01-05 2012-09-19 三星电子株式会社 Method and apparatus for providing user interface in portable terminal
US20130283195A1 (en) * 2011-12-08 2013-10-24 Aras Bilgen Methods and apparatus for dynamically adapting a virtual keyboard

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102681763A (en) * 2011-01-05 2012-09-19 三星电子株式会社 Method and apparatus for providing user interface in portable terminal
US20130283195A1 (en) * 2011-12-08 2013-10-24 Aras Bilgen Methods and apparatus for dynamically adapting a virtual keyboard
CN103959206A (en) * 2011-12-08 2014-07-30 英特尔公司 Methods and apparatus for dynamically adapting a virtual keyboard

Also Published As

Publication number Publication date
TW202201211A (en) 2022-01-01

Similar Documents

Publication Publication Date Title
US10437409B2 (en) Managing a floating window
US9678659B2 (en) Text entry for a touch screen
US9607093B2 (en) Method and system for operating multiple web pages with anti-spoofing protection
CN104375758B (en) Method and apparatus for icon-based application control
US8504937B2 (en) Computer interface having a single window mode of operation
US7564448B2 (en) Touch screen system and control method therefor capable of setting active regions
EP1052566A1 (en) Graphical user interface
JP2009509235A (en) Arrangement of virtual input device on touch screen type user interface
JP2012190468A (en) Operation of computer using touch screen type interface
US20060277491A1 (en) Information processing apparatus and display control method
JP2010009534A (en) Electronic device and display method
JPH08227350A (en) Method for arrangement of cursor and data-processing system
US20030223182A1 (en) Information processing apparatus and window size control method used in the same unit
RU2600544C2 (en) Navigation user interface in support of page-focused, touch- or gesture-based browsing experience
CN114779977A (en) Interface display method and device, electronic equipment and storage medium
TWI746022B (en) Input system for controlling readonly property to avoid popping up virtual keyboard and input method thereof
US6664990B1 (en) Computer display pointer with alternate hot spots
CN114296857A (en) Interface adjusting method and device, electronic equipment and readable medium
JP4424592B2 (en) Toolbar display switching method
CN113805718A (en) System and method for controlling read-write attribute to avoid popping up virtual keyboard
CN112162689B (en) Input method and device and electronic equipment
CN114115639A (en) Interface control method and device, electronic equipment and storage medium
CN112256378A (en) Display method, display device, electronic equipment and readable storage medium
JP2024505980A (en) Preventing user interaction hijacking attacks by preventing interactions with hidden components
US10250945B2 (en) Replaying system and replaying method