[go: up one dir, main page]

TWI745961B - Electronic apparatus and key function switching method thereof - Google Patents

Electronic apparatus and key function switching method thereof Download PDF

Info

Publication number
TWI745961B
TWI745961B TW109115514A TW109115514A TWI745961B TW I745961 B TWI745961 B TW I745961B TW 109115514 A TW109115514 A TW 109115514A TW 109115514 A TW109115514 A TW 109115514A TW I745961 B TWI745961 B TW I745961B
Authority
TW
Taiwan
Prior art keywords
button
key
keyboard
typing state
pressed
Prior art date
Application number
TW109115514A
Other languages
Chinese (zh)
Other versions
TW202143002A (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 TW109115514A priority Critical patent/TWI745961B/en
Application granted granted Critical
Publication of TWI745961B publication Critical patent/TWI745961B/en
Publication of TW202143002A publication Critical patent/TW202143002A/en

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

An electronic apparatus and a key function switching method thereof are provided. The key function switching method is adapted to the electronic apparatus including a keyboard. Whether a first key of the keyboard is pressed is detected. In response to the first key is pressed, whether a user behavior satisfies a typing status is determined. If the user behavior satisfies the typing status, a key function of a second key is performed in response to the first key is pressed.

Description

電子裝置與其按鍵功能切換方法Electronic device and its key function switching method

本發明是有關於一種電子裝置,且特別是有關於一種電子裝置與其按鍵功能切換方法。The present invention relates to an electronic device, and more particularly to an electronic device and a method for switching key functions of the electronic device.

隨著科技的進步,以及各類電子裝置的開發與其所配備的各種功能的進步,人們生活上與電子裝置越來越密不可分。鍵盤是最常見的消費性電子產品的輸入工具。雖然不同定位的產品可搭配不同的輸入方式(如手指觸控、觸控筆、語音輸入等),然而,當需要快速且大量地輸入文字時,鍵盤仍為首選。With the advancement of science and technology, as well as the development of various electronic devices and the advancement of the various functions they are equipped with, people's lives are becoming more and more inseparable from electronic devices. The keyboard is the most common input tool for consumer electronic products. Although products with different positioning can be matched with different input methods (such as finger touch, stylus, voice input, etc.), the keyboard is still the first choice when you need to input text quickly and in large quantities.

此外,由於現今筆電設計力求極簡輕薄,加上窄邊框的設計趨勢,筆電內部空間越來越有限。因此,以往獨立設置的電源鍵開始整合至鍵盤上以節省機體空間,但此設計會造成使用者害怕誤觸鍵盤上的電源鍵而驅動電腦系統執行預期外的操作。目前而言,雖然有防誤觸電源鍵的機制,像是使用者必須長按電源鍵才會引發電源鍵對應的功能。然而,存在一種情況,當使用者者企圖按壓相鄰於電源鍵的另一個按鍵但手指實際上卻誤按電源鍵時,雖然不會意外致能電源鍵對應的功能,會造成使用者的打字動作中斷,進而影響操作流暢性。In addition, due to the current laptop design striving to be minimalist, light and thin, coupled with the design trend of narrow bezels, the internal space of the laptop is becoming more and more limited. Therefore, in the past, independent power keys have been integrated into the keyboard to save body space. However, this design may cause users to be afraid of accidentally touching the power keys on the keyboard and drive the computer system to perform unexpected operations. At present, although there is a mechanism to prevent accidental touching of the power button, for example, the user must long press the power button to trigger the function corresponding to the power button. However, there is a situation that when the user attempts to press another button adjacent to the power button but the finger actually presses the power button by mistake, although the function corresponding to the power button will not be accidentally activated, it will cause the user to type The action is interrupted, which affects the fluency of the operation.

有鑑於此,本發明提出一種電子裝置與其按鍵功能切換方法,其可依據使用者的打字狀態切換鍵盤按鍵對應的按鍵功能,大幅提昇操作便利性。In view of this, the present invention provides an electronic device and its key function switching method, which can switch the key function corresponding to the keyboard key according to the user's typing state, which greatly improves the convenience of operation.

本發明實施例提供一種按鍵功能切換方法,適用於包括鍵盤的電子裝置,並包括下列步驟。偵測鍵盤上的第一按鍵是否被按壓。反應於第一按鍵被按壓,判斷使用者行為是否符合打字狀態。若使用者行為符合打字狀態,反應第一按鍵被按壓而執行對應於第二按鍵的按鍵功能。The embodiment of the present invention provides a key function switching method, which is suitable for an electronic device including a keyboard, and includes the following steps. Detect whether the first button on the keyboard is pressed. In response to the pressing of the first button, it is determined whether the user's behavior conforms to the typing state. If the user's behavior conforms to the typing state, the button function corresponding to the second button is executed in response to the pressing of the first button.

本發明實施例提供一種電子裝置,其包括鍵盤、儲存裝置,以及處理器。鍵盤包括第一按鍵與第二按鍵,儲存裝置記錄有多個指令。處理器耦接鍵盤與儲存裝置,執行所述指令以:偵測鍵盤上的第一按鍵是否被按壓;反應於第一按鍵被按壓,判斷使用者行為是否符合打字狀態;以及若使用者行為符合打字狀態,反應第一按鍵被按壓而執行對應於第二按鍵的按鍵功能。An embodiment of the present invention provides an electronic device, which includes a keyboard, a storage device, and a processor. The keyboard includes a first button and a second button, and the storage device records a plurality of commands. The processor is coupled to the keyboard and the storage device, and executes the instructions to: detect whether the first button on the keyboard is pressed; react to the pressing of the first button, determine whether the user's behavior conforms to the typing state; and if the user's behavior conforms to the typing state In the typing state, the key function corresponding to the second key is executed in response to the pressing of the first key.

基於上述,於本發明的實施例中,當鍵盤上的第一按鍵被按壓時,將判斷使用者行為是否符合打字狀態。若判定使用者行為符合打字狀態,反應第一按鍵被按壓而執行對應於第二按鍵的按鍵功能。藉此,本發明可判斷使用者行為是否為打字狀態,從而令第一按鍵切換為對應至相鄰第二按鍵的另一按鍵功能,從而提升使用者操作鍵盤的操作流暢度。Based on the above, in the embodiment of the present invention, when the first button on the keyboard is pressed, it will be determined whether the user's behavior conforms to the typing state. If it is determined that the user's behavior conforms to the typing state, the first button is pressed to execute the button function corresponding to the second button. In this way, the present invention can determine whether the user's behavior is in the typing state, so that the first key is switched to another key function corresponding to the adjacent second key, thereby improving the operation fluency of the user's keyboard operation.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail in conjunction with the accompanying drawings.

本發明的部份實施例接下來將會配合附圖來詳細描述,以下的描述所引用的元件符號,當不同附圖出現相同的元件符號將視為相同或相似的元件。這些實施例只是本發明的一部份,並未揭示所有本發明的可實施方式。更確切的說,這些實施例只是本發明的專利申請範圍中的裝置與方法的範例。Part of the embodiments of the present invention will be described in detail in conjunction with the accompanying drawings. The reference symbols in the following description will be regarded as the same or similar elements when the same symbol appears in different drawings. These embodiments are only a part of the present invention, and do not disclose all the possible implementation modes of the present invention. To be more precise, these embodiments are only examples of the devices and methods within the scope of the patent application of the present invention.

應理解,當元件被稱作「連接」或「耦接」至另一元件時,其可直接連接或耦接至另一元件或者可存在介入元件。與此對比,當元件被稱作「直接連接」或「直接耦接」至另一元件時,不存在任何介入元件。It should be understood that when an element is referred to as being “connected” or “coupled” to another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being "directly connected" or "directly coupled" to another element, there is no intervening element.

圖1是依照本發明一實施例的電子裝置的功能方塊圖。請參照圖1,電子裝置10包括鍵盤110、控制器120、晶片組130、儲存裝置140,以及處理器150。電子裝置10可以是筆記型電腦、桌上型電腦、遊戲機或其他具可攜性的電子裝置,在此並不對電子裝置10的種類加以限制。FIG. 1 is a functional block diagram of an electronic device according to an embodiment of the invention. Please refer to FIG. 1, the electronic device 10 includes a keyboard 110, a controller 120, a chipset 130, a storage device 140, and a processor 150. The electronic device 10 can be a notebook computer, a desktop computer, a game console or other portable electronic devices, and the type of the electronic device 10 is not limited here.

使用者可透過鍵盤110操作、控制或輸入資訊至電子裝置10。鍵盤110包括多個實體按鍵,電子裝置10的使用者可透過按壓鍵盤110上的按鍵來執行輸入操作。鍵盤110可以是機械式鍵盤或薄膜式鍵盤,本發明對此不限制。此外,本發明對於鍵盤110上這些按鍵的按鍵排列方式也不限制。The user can operate, control or input information to the electronic device 10 through the keyboard 110. The keyboard 110 includes a plurality of physical keys, and the user of the electronic device 10 can perform input operations by pressing the keys on the keyboard 110. The keyboard 110 may be a mechanical keyboard or a membrane keyboard, which is not limited in the present invention. In addition, the present invention does not limit the arrangement of the keys on the keyboard 110.

控制器120可以是嵌入式控制器(Embedded controller)、鍵盤控制器(KBC)或是其他與鍵盤有關聯之控制器。鍵盤110利用控制器120與電腦系統溝通,控制器120可控制鍵盤110持續進行鍵盤掃描(keyboard scan)。於一實施例中,當使用者按壓鍵盤110中的任一按鍵,控制器120可查詢鍵矩陣表格而獲取掃描碼。接著,控制器120再提供掃描碼給處理器150,進而控制電子裝置10的運作。The controller 120 may be an embedded controller, a keyboard controller (KBC), or other controllers associated with a keyboard. The keyboard 110 uses the controller 120 to communicate with the computer system, and the controller 120 can control the keyboard 110 to continuously perform a keyboard scan. In one embodiment, when the user presses any key on the keyboard 110, the controller 120 can query the key matrix table to obtain the scan code. Then, the controller 120 provides the scan code to the processor 150 to control the operation of the electronic device 10.

晶片組130耦接至控制器120、儲存裝置140以及處理器150。晶片組130主要負責電子裝置10中各種硬體元件的溝通。在一實施例中,晶片組130可包括南橋晶片與北橋晶片,其中南橋晶片用以連接控制器120以及速度較慢的週邊設備,而北橋晶片則連接如主記憶體與處理器150等速度較快的元件。The chipset 130 is coupled to the controller 120, the storage device 140 and the processor 150. The chipset 130 is mainly responsible for the communication of various hardware components in the electronic device 10. In one embodiment, the chipset 130 may include a south bridge chip and a north bridge chip. The south bridge chip is used to connect the controller 120 and slower peripheral devices, and the north bridge chip is connected to the main memory and the processor 150. Fast components.

儲存裝置140用以儲存檔案、影像、指令、程式碼、軟體元件等等資料,其可以例如是任意型式的固定式或可移動式隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體(flash memory)、硬碟或其他類似裝置、積體電路及其組合。The storage device 140 is used to store data such as files, images, commands, program codes, software components, etc., and it can be, for example, any type of fixed or removable random access memory (random access memory, RAM), read-only memory Read-only memory (ROM), flash memory (flash memory), hard disk or other similar devices, integrated circuits, and combinations thereof.

處理器150耦接儲存裝置140以及鍵盤110,用以控制電子裝置10的整體作動,其例如是中央處理單元(Central Processing Unit,CPU),或是其他可程式化之一般用途或特殊用途的微處理器(Microprocessor)、數位訊號處理器(Digital Signal Processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式化邏輯裝置(Programmable Logic Device,PLD)、或其他類似裝置或這些裝置的組合。處理器150可執行記錄於儲存裝置140中的程式碼、軟體模組、指令等等,以實現本發明實施例的按鍵功能切換方法。The processor 150 is coupled to the storage device 140 and the keyboard 110 to control the overall operation of the electronic device 10, such as a central processing unit (CPU), or other programmable general-purpose or special-purpose micro Processor (Microprocessor), Digital Signal Processor (DSP), Programmable Controller, Application Specific Integrated Circuits (ASIC), Programmable Logic Device (PLD) , Or other similar devices or a combination of these devices. The processor 150 can execute program codes, software modules, instructions, etc. recorded in the storage device 140 to implement the key function switching method of the embodiment of the present invention.

然而,除了鍵盤110、控制器120、晶片組130、儲存裝置140,以及處理器150之外,電子裝置10還可以包括未繪示於圖1的其他元件,像是滑鼠、揚聲器、麥克風、顯示器、通訊元件等等,本發明對此不限制。However, in addition to the keyboard 110, the controller 120, the chipset 130, the storage device 140, and the processor 150, the electronic device 10 may also include other components not shown in FIG. 1, such as a mouse, a speaker, a microphone, Displays, communication components, etc., are not limited by the present invention.

圖2是依照本發明一實施例的電子裝置的示意圖。請參照圖2,電子裝置10可包括由多個裝置、元件與機殼組裝而成的機體B1以及顯示螢幕D1。鍵盤110設置於機體B1的上表面(亦可稱為鍵盤面)。FIG. 2 is a schematic diagram of an electronic device according to an embodiment of the invention. Please refer to FIG. 2, the electronic device 10 may include a body B1 and a display screen D1 assembled by a plurality of devices, components, and a casing. The keyboard 110 is disposed on the upper surface (also called the keyboard surface) of the body B1.

鍵盤110可包括多個按鍵,像是多個字母數字鍵(alphanumeric Keys)、多個功能鍵(Function Keys)、及功能切換鍵(Fn key)。舉例而言,字母數字鍵可包括英字母鍵a~z、數字鍵0~9、Ctrl鍵、Shift鍵、Alt鍵等等,而功能鍵可包括F1鍵至F12鍵。需特別說明的是,於一實施例中,鍵盤110可包括相鄰排列的第一按鍵與第二按鍵。基此,當使用者使用鍵盤110時,使用者可能在想要按壓第二按鍵的情況下卻錯誤按壓到第一按鍵。在此情況中,於本發明實施例中,可依據使用者行為來切換第一按鍵對應的按鍵功能,使電子裝置10反應於第一按鍵被按壓卻執行二按鍵對應的按鍵功能,從而使電子裝置10執行符合使用者期望的操作。The keyboard 110 may include a plurality of keys, such as a plurality of alphanumeric keys (alphanumeric Keys), a plurality of function keys (Function Keys), and a function switching key (Fn key). For example, the alphanumeric keys can include alphabet keys a~z, number keys 0-9, Ctrl key, Shift key, Alt key, etc., and function keys can include F1 to F12 keys. It should be particularly noted that, in one embodiment, the keyboard 110 may include a first button and a second button arranged adjacently. Based on this, when the user uses the keyboard 110, the user may mistakenly press the first button when he wants to press the second button. In this case, in the embodiment of the present invention, the button function corresponding to the first button can be switched according to the user's behavior, so that the electronic device 10 responds to the pressing of the first button but executes the button function corresponding to the two buttons, so that the electronic device The device 10 performs operations that meet the user's expectations.

於一實施例中,鍵盤110的第一按鍵可包括電子裝置10的電源鍵k1,電源鍵k1可用以開啟電子裝置10或用以呼叫電源模式管理選單。一般而言,電源鍵k1會配置於鍵盤110的最右上角。第二按鍵可為相鄰於電源鍵k1的按鍵k2或按鍵k3。依據不同的鍵盤配置設計,按鍵k2與按鍵k3可能對應至各種按鍵功能,本發明對此不限制。舉例而言,按鍵k2可能是Delete鍵,而按鍵k3可能是Backspace鍵。或者,按鍵k2可能是F12鍵,而按鍵k3可能是Delete鍵,本發明對此不限制。於一實施例中,當使用者是在打字狀態下誤按電源鍵k1時,電子裝置10可執行對應於按鍵k2或按鍵k3的按鍵功能,以使電子裝置10執行符合使用者預期的操作。In one embodiment, the first button of the keyboard 110 may include the power button k1 of the electronic device 10, and the power button k1 may be used to turn on the electronic device 10 or to call the power mode management menu. Generally speaking, the power key k1 will be arranged at the upper right corner of the keyboard 110. The second button can be a button k2 or a button k3 adjacent to the power button k1. According to different keyboard configuration designs, the keys k2 and k3 may correspond to various key functions, which is not limited by the present invention. For example, the key k2 may be the Delete key, and the key k3 may be the Backspace key. Alternatively, the key k2 may be the F12 key, and the key k3 may be the Delete key, which is not limited in the present invention. In one embodiment, when the user mistakenly presses the power key k1 while typing, the electronic device 10 can execute the key function corresponding to the key k2 or the key k3, so that the electronic device 10 can perform operations that meet the user's expectations.

為了進一步說明如何基於使用者行為將第一按鍵的按鍵功能切換為另一按鍵功能,以下特舉一實施例來對本發明進行說明。圖3是依照本發明一實施例的按鍵功能切換方法的流程圖。請參照圖3,本實施例的方式適用於上述實施例中的電子裝置10,以下即搭配電子裝置10中的各項元件說明本實施例的詳細步驟。In order to further explain how to switch the key function of the first key to another key function based on the user's behavior, the following is a special embodiment to illustrate the present invention. Fig. 3 is a flowchart of a method for switching key functions according to an embodiment of the present invention. Please refer to FIG. 3, the method of this embodiment is applicable to the electronic device 10 in the above-mentioned embodiment. The detailed steps of this embodiment are described below in conjunction with various components in the electronic device 10.

於步驟S301,處理器150偵測鍵盤110上的第一按鍵是否被按壓。亦即,處理器150可透過控制器120偵測鍵盤110上的第一按鍵是否被使用者按壓。於此,第一按鍵是使用者一般在連續打字狀態下不會去按壓的按鍵,例如整合於鍵盤110上的電源鍵。In step S301, the processor 150 detects whether the first button on the keyboard 110 is pressed. That is, the processor 150 can detect whether the first button on the keyboard 110 is pressed by the user through the controller 120. Here, the first button is a button that the user generally does not press in a continuous typing state, such as a power button integrated on the keyboard 110.

於步驟S302,反應於第一按鍵被按壓,處理器150判斷使用者行為是否符合打字狀態。處理器150可根據第一按鍵被按壓之前使用者操作鍵盤110的方式來判斷使用者行為是否符合打字狀態。於一實施例中,處理器150依據施於至少一第三按鍵的按壓操作判斷使用者行為是否符合打字狀態。於此,施於至少一第三按鍵的按壓操作是在施於第一按鍵的按壓操作之前進行。更詳細而言,處理器150可依據一或多個第三按鍵的按鍵種類與按壓時間間隔來判斷使用者行為是否為打字狀態,像是編輯文件的文字、撰寫程式碼或其他連續輸入字元的使用行為等等。In step S302, in response to the pressing of the first button, the processor 150 determines whether the user's behavior conforms to the typing state. The processor 150 can determine whether the user's behavior conforms to the typing state according to the manner in which the user operates the keyboard 110 before the first button is pressed. In one embodiment, the processor 150 determines whether the user's behavior conforms to the typing state according to the pressing operation performed on the at least one third button. Here, the pressing operation applied to the at least one third button is performed before the pressing operation applied to the first button. In more detail, the processor 150 can determine whether the user's behavior is in the typing state, such as editing the text of a document, writing code, or other continuous input characters according to the key type and pressing time interval of the one or more third keys. Usage behavior and so on.

於步驟S303,若使用者行為符合打字狀態,處理器150反應第一按鍵被按壓而執行對應於第二按鍵的按鍵功能。換言之,當判定使用者正在打字狀態時,處理器150將切換第一按鍵的原始按鍵功能為對應於第二按鍵的按鍵功能。舉例而言,當第一按鍵為電源鍵而第二按鍵為Delete鍵時,處理器150可反應於偵測到第一按鍵被按壓而執行Delete鍵的按鍵功能,亦即將游標處的字元進行刪除。In step S303, if the user's behavior conforms to the typing state, the processor 150 responds that the first button is pressed and executes the button function corresponding to the second button. In other words, when it is determined that the user is typing, the processor 150 will switch the original key function of the first key to the key function corresponding to the second key. For example, when the first button is the power button and the second button is the Delete button, the processor 150 can perform the button function of the Delete button in response to detecting that the first button is pressed, that is, perform the character at the cursor delete.

然而,本發明的實現方式不限於上述說明,可以對於實際的需求而酌予變更上述實施例的內容。例如,在本發明之一實施例中,當施於第一按鍵的按壓操作符合特定條件時,電子裝置可執行第一按鍵的原始按鍵功能。以下則舉一實施例詳細說明。However, the implementation of the present invention is not limited to the foregoing description, and the content of the foregoing embodiment may be modified according to actual needs. For example, in an embodiment of the present invention, when the pressing operation applied to the first button meets a specific condition, the electronic device can perform the original button function of the first button. The following is a detailed description of an embodiment.

圖4是依照本發明一實施例的按鍵功能切換方法的流程圖。請參照圖4,本實施例的方式適用於上述實施例中的電子裝置10,以下即搭配電子裝置10中的各項元件說明本實施例的詳細步驟。Fig. 4 is a flowchart of a method for switching key functions according to an embodiment of the present invention. Please refer to FIG. 4, the method of this embodiment is applicable to the electronic device 10 in the above-mentioned embodiment, and the detailed steps of this embodiment are described below in conjunction with various components in the electronic device 10.

於步驟S401,處理器150偵測鍵盤110上的第一按鍵是否被按壓。於步驟S402,反應於第一按鍵被按壓,處理器150判斷使用者行為是否符合打字狀態。詳細而言,處理器150可判斷在第一按鍵被按壓之前被按壓的多個第三按鍵的釋放時間點之間的時間間隔是否小於一門檻值,以判定使用者行為是否符合打字狀態。當在第一按鍵被按壓之前被按壓的多個第三按鍵的釋放時間點之間的時間間隔小於一門檻值時,處理器150可判定使用者行為符合打字狀態。當在第一按鍵被按壓之前被按壓的多個第三按鍵的釋放時間點之間的時間間隔未小於一門檻值時,處理器150可判定使用者行為不符合打字狀態。或者,處理器150可判斷在第一按鍵被按壓之前被按壓的多個第三按鍵的按鍵種類是否皆為字母數字鍵,以判定使用者行為是否符合打字狀態。當在第一按鍵被按壓之前被按壓的多個第三按鍵的按鍵種類皆為字母數字鍵時,處理器150可判定使用者行為符合打字狀態。當在第一按鍵被按壓之前被按壓的多個第三按鍵的的按鍵種類並非皆為字母數字鍵時,處理器150可判定使用者行為不符合打字狀態。In step S401, the processor 150 detects whether the first button on the keyboard 110 is pressed. In step S402, in response to the first button being pressed, the processor 150 determines whether the user's behavior is consistent with the typing state. In detail, the processor 150 may determine whether the time interval between the release time points of the plurality of third keys that are pressed before the first key is pressed is less than a threshold value, so as to determine whether the user's behavior conforms to the typing state. When the time interval between the release time points of the plurality of third keys pressed before the first key is pressed is less than a threshold value, the processor 150 may determine that the user's behavior conforms to the typing state. When the time interval between the release time points of the plurality of third keys pressed before the first key is pressed is not less than a threshold value, the processor 150 may determine that the user's behavior does not conform to the typing state. Alternatively, the processor 150 may determine whether the key types of the plurality of third keys that are pressed before the first key is pressed are all alphanumeric keys, so as to determine whether the user's behavior conforms to the typing state. When the key types of the plurality of third keys that are pressed before the first key is pressed are all alphanumeric keys, the processor 150 may determine that the user's behavior conforms to the typing state. When the key types of the plurality of third keys that are pressed before the first key is pressed are not all alphanumeric keys, the processor 150 may determine that the user's behavior does not conform to the typing state.

若步驟S402判斷為是,於步驟S403,處理器150反應於第一按鍵被按壓執行對應於第二按鍵的按鍵功能。亦即,當使用者行為符合打字狀態時,反應於第一按鍵被按壓,處理器150切換為執行第二按鍵的按鍵功能。If the determination in step S402 is yes, in step S403, the processor 150 executes the key function corresponding to the second key in response to the first key being pressed. That is, when the user's behavior conforms to the typing state, in response to the pressing of the first button, the processor 150 switches to execute the button function of the second button.

若步驟S402判斷為否,於步驟S404,處理器150判斷施於第一按鍵的按壓操作是否符合特定條件。上述特定條件可以是依據按壓持續時間或其他按壓特性而制定的條件。像是,處理器150可判斷施於第一按鍵的按壓操作的按壓持續時是否間超過預設秒數,或者,處理器150可判斷施於第一按鍵的按壓操作是否滿足包括第一按鍵與其他按鍵的特定組合鍵。亦即,當判定使用者並非處於打字狀態時,處理器150會判斷施於第一按鍵的按壓操作是否符合特定條件。於一實施例中,處理器150會判斷第一按鍵是否被長按超過4秒。If the determination in step S402 is no, in step S404, the processor 150 determines whether the pressing operation applied to the first button meets a specific condition. The above-mentioned specific condition may be a condition formulated according to the pressing duration or other pressing characteristics. For example, the processor 150 may determine whether the pressing operation applied to the first button lasts longer than a preset number of seconds, or the processor 150 may determine whether the pressing operation applied to the first button satisfies the requirements including the first button and A specific combination of other keys. That is, when it is determined that the user is not in a typing state, the processor 150 will determine whether the pressing operation applied to the first button meets a specific condition. In one embodiment, the processor 150 determines whether the first button has been long-pressed for more than 4 seconds.

若步驟S404判斷為否,代表使用者行為並非為打字狀態且使用者按壓第一按鍵的方式不符合特定條件。因此,於步驟S405,處理器150忽略施於第一按鍵的按壓操作而不執行任何按鍵功能。若步驟S404判斷為是,代表使用者行為並非為打字狀態但使用者按壓第一按鍵的方式符合特定條件。因此,於步驟S406,處理器150執行對應於第一按鍵的原始按鍵指令。舉例而言,當第一按鍵為電源鍵時,使用者需要長按電源鍵超過特秒數,才會驅動處理器150提供電源模式管理選單給使用者,好讓使用者可依據電源模式管理選單控制電子裝置10進入休眠模式、睡眠模式、進行登出、重新開機或關機等等操作。If the determination in step S404 is no, it means that the user's behavior is not a typing state and the way the user presses the first button does not meet the specific condition. Therefore, in step S405, the processor 150 ignores the pressing operation applied to the first button and does not perform any button function. If the determination in step S404 is yes, it means that the user's behavior is not in the typing state but the way the user presses the first button meets the specific condition. Therefore, in step S406, the processor 150 executes the original key command corresponding to the first key. For example, when the first button is the power button, the user needs to press and hold the power button for more than ten seconds before driving the processor 150 to provide the user with a power mode management menu, so that the user can manage the menu according to the power mode The electronic device 10 is controlled to enter a sleep mode, a sleep mode, log out, restart or shut down, and so on.

綜上所述,於本發明實施例中,可使一個按鍵在使用者行為符合打字狀態或不符合打字狀態時分別支援不同的按鍵功能。如此一來,當使用者在連續打字狀態下誤觸第一按鍵時,第一按鍵可切換為對應至打字狀態下所需要的按鍵功能,使電子裝置執行符合使用者預期的操作。藉此,可大幅提昇使用者使用鍵盤打字的流暢度,並提昇操作便利性。In summary, in the embodiment of the present invention, a key can support different key functions when the user's behavior conforms to the typing state or does not conform to the typing state. In this way, when the user accidentally touches the first key in the continuous typing state, the first key can be switched to correspond to the key function required in the typing state, so that the electronic device can perform operations that meet the user's expectations. In this way, the fluency of the user's keyboard typing can be greatly improved, and the operation convenience can be improved.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the relevant technical field can make some changes and modifications without departing from the spirit and scope of the present invention. The protection scope of the present invention shall be subject to those defined by the attached patent application scope.

10:電子裝置10: Electronic device

110:鍵盤110: keyboard

120:控制器120: Controller

130:晶片組130: chipset

140:儲存裝置140: storage device

150:處理器150: processor

k1:電源鍵k1: Power button

k2、k3:按鍵k2, k3: button

B1:機體B1: body

D1:顯示螢幕D1: display screen

S301~S303、S401~S406:步驟S301~S303, S401~S406: steps

圖1是依照本發明一實施例的電子裝置的功能方塊圖。 圖2是依照本發明一實施例的電子裝置的示意圖。 圖3是依照本發明一實施例的按鍵功能切換方法的流程圖。 圖4是依照本發明一實施例的按鍵功能切換方法的流程圖。 FIG. 1 is a functional block diagram of an electronic device according to an embodiment of the invention. FIG. 2 is a schematic diagram of an electronic device according to an embodiment of the invention. Fig. 3 is a flowchart of a method for switching key functions according to an embodiment of the present invention. Fig. 4 is a flowchart of a method for switching key functions according to an embodiment of the present invention.

S301~S303:步驟 S301~S303: steps

Claims (8)

一種按鍵功能切換方法,適用於包括鍵盤的一電子裝置,所述方法包括:偵測所述鍵盤上的第一按鍵是否被按壓;反應於所述第一按鍵被按壓,判斷使用者行為是否符合打字狀態;以及若所述使用者行為符合所述打字狀態,反應所述第一按鍵被按壓而執行對應於第二按鍵的按鍵功能,其中判斷所述使用者行為是否符合所述打字狀態的步驟包括:依據施於至少一第三按鍵的按壓操作判斷所述使用者行為是否符合所述打字狀態,其中施於所述至少一第三按鍵的按壓操作是在施於所述第一按鍵的按壓操作之前進行,其中,所述打字狀態是依據所述至少一或多個第三按鍵的按鍵種類與按壓時間間隔來判斷所述使用者行為是否為所述打字狀態,或是,所述打字狀態是在所述第一按鍵被按壓之前被按壓的所述多個第三按鍵的釋放時間點之間的時間間隔是否小於一門檻值來判斷所述使用者行為是否為所述打字狀態。 A method for switching key functions is applicable to an electronic device including a keyboard. The method includes: detecting whether a first key on the keyboard is pressed; responding to the pressing of the first key, determining whether a user's behavior conforms to Typing state; and if the user behavior conforms to the typing state, the first button is pressed to perform the key function corresponding to the second button, wherein the step of determining whether the user behavior conforms to the typing state The method includes: judging whether the user behavior conforms to the typing state according to a pressing operation performed on at least one third button, wherein the pressing operation performed on the at least one third button is performed on the first button Is performed before the operation, wherein the typing state is based on the key type and pressing time interval of the at least one or more third keys to determine whether the user behavior is the typing state, or the typing state Whether the time interval between the release time points of the plurality of third keys pressed before the first key is pressed is less than a threshold value to determine whether the user behavior is the typing state. 如請求項1所述的按鍵功能切換方法,其中所述第一按鍵包括整合於所述鍵盤上的一電源鍵。 The key function switching method according to claim 1, wherein the first key includes a power key integrated on the keyboard. 如請求項1所述的按鍵功能切換方法,其中所述鍵盤上的所述第二按鍵相鄰配置於所述第一按鍵。 The key function switching method according to claim 1, wherein the second key on the keyboard is arranged adjacent to the first key. 如請求項1所述的按鍵功能切換方法,所述方法更包括:若所述使用者行不符合所述打字狀態,判斷施於所述第一按鍵的按壓操作是否符合特定條件;以及反應於施於所述第一按鍵的所述按壓操作符合所述特定條件,執行對應於所述第一按鍵的原始按鍵指令。 According to the key function switching method of claim 1, the method further includes: if the user's behavior does not conform to the typing state, determining whether the pressing operation applied to the first key meets a specific condition; and responding to The pressing operation applied to the first button meets the specific condition, and an original button instruction corresponding to the first button is executed. 一種電子裝置,包括:一鍵盤,包括第一按鍵與第二按鍵;一儲存裝置,記錄有多個指令;以及一處理器,耦接所述鍵盤與所述儲存裝置,執行所述指令以:偵測所述鍵盤上的所述第一按鍵是否被按壓;反應於所述第一按鍵被按壓,判斷使用者行為是否符合打字狀態;以及若所述使用者行為符合所述打字狀態,反應所述第一按鍵被按壓而執行對應於所述第二按鍵的按鍵功能,其中所述處理器依據施於至少一第三按鍵的按壓操作判斷所述使用者行為是否符合所述打字狀態,且施於所述至少一第三按鍵的按壓操作是在施於所述第一按鍵的按壓操作之前進行,其中,所述打字狀態是所述處理器依據所述至少一或多個第三按鍵的按鍵種類與按壓時間間隔來判斷所述使用者行為是否為 所述打字狀態,或是,所述打字狀態是所述處理器判斷在所述第一按鍵被按壓之前被按壓的所述多個第三按鍵的釋放時間點之間的時間間隔是否小於一門檻值來判斷所述使用者行為是否為所述打字狀態。 An electronic device includes: a keyboard, including a first button and a second button; a storage device, which records a plurality of instructions; and a processor, which is coupled to the keyboard and the storage device, and executes the instructions to: Detect whether the first button on the keyboard is pressed; respond to the first button being pressed, determine whether the user behavior conforms to the typing state; and if the user behavior conforms to the typing state, respond The first button is pressed to perform a button function corresponding to the second button, wherein the processor determines whether the user behavior conforms to the typing state according to a pressing operation performed on at least one third button, and executes The pressing operation on the at least one third button is performed before the pressing operation on the first button, wherein the typing state is the processor according to the buttons of the at least one or more third buttons Type and pressing time interval to determine whether the user behavior is The typing state, or, the typing state is that the processor determines whether the time interval between the release time points of the plurality of third keys that are pressed before the first key is pressed is less than a threshold Value to determine whether the user behavior is the typing state. 如請求項5所述的電子裝置,其中所述第一按鍵包括整合於所述鍵盤上的一電源鍵。 The electronic device according to claim 5, wherein the first button includes a power button integrated on the keyboard. 如請求項5所述的電子裝置,其中所述鍵盤上的所述第二按鍵相鄰配置於所述第一按鍵。 The electronic device according to claim 5, wherein the second button on the keyboard is arranged adjacent to the first button. 如請求項5所述的電子裝置,其中若所述使用者行不符合所述打字狀態,所述處理器判斷施於所述第一按鍵的按壓操作是否符合特定條件;以及反應於施於所述第一按鍵的所述按壓操作符合所述特定條件,所述處理器執行對應於所述第一按鍵的原始按鍵指令。The electronic device according to claim 5, wherein if the user behavior does not conform to the typing state, the processor determines whether the pressing operation performed on the first button meets a specific condition; The pressing operation of the first button meets the specific condition, and the processor executes an original button instruction corresponding to the first button.
TW109115514A 2020-05-11 2020-05-11 Electronic apparatus and key function switching method thereof TWI745961B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109115514A TWI745961B (en) 2020-05-11 2020-05-11 Electronic apparatus and key function switching method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109115514A TWI745961B (en) 2020-05-11 2020-05-11 Electronic apparatus and key function switching method thereof

Publications (2)

Publication Number Publication Date
TWI745961B true TWI745961B (en) 2021-11-11
TW202143002A TW202143002A (en) 2021-11-16

Family

ID=79907424

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109115514A TWI745961B (en) 2020-05-11 2020-05-11 Electronic apparatus and key function switching method thereof

Country Status (1)

Country Link
TW (1) TWI745961B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246393A (en) * 2007-02-15 2008-08-20 华硕电脑股份有限公司 Computer device and keyboard input operation method thereof
TW201131426A (en) * 2010-03-07 2011-09-16 Shang-Che Cheng Keyboards and methods thereof
TW201643612A (en) * 2015-03-23 2016-12-16 富智康(香港)有限公司 Keyboard setting system and method
CN109871133A (en) * 2019-02-21 2019-06-11 深圳市志海和科技有限公司 A kind of control method of keyboard, device, keyboard, computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246393A (en) * 2007-02-15 2008-08-20 华硕电脑股份有限公司 Computer device and keyboard input operation method thereof
TW201131426A (en) * 2010-03-07 2011-09-16 Shang-Che Cheng Keyboards and methods thereof
TW201643612A (en) * 2015-03-23 2016-12-16 富智康(香港)有限公司 Keyboard setting system and method
CN109871133A (en) * 2019-02-21 2019-06-11 深圳市志海和科技有限公司 A kind of control method of keyboard, device, keyboard, computer readable storage medium

Also Published As

Publication number Publication date
TW202143002A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
US8872777B2 (en) Computer keyboard and control method thereof
JP5486089B2 (en) Pressure sensitive user interface for mobile devices
CN101727233B (en) Electronic device and touch method thereof
US5990872A (en) Keyboard control of a pointing device of a computer
US20080259040A1 (en) Method, System, and Graphical User Interface for Positioning an Insertion Marker in a Touch Screen Display
US20140123049A1 (en) Keyboard with gesture-redundant keys removed
TWI492140B (en) Method for keyboard input and assistant system thereof
US20140354550A1 (en) Receiving contextual information from keyboards
CN102778992B (en) The response method of dummy keyboard and device
CN101408817B (en) Method and device for inputting operation instructions of double touch panels
JP4300703B2 (en) Information processing apparatus, information processing method, and program storage medium
WO2018177157A1 (en) Character input method of mobile terminal and mobile terminal
CN104007988A (en) Computer startup and shutdown method and computer
CN105824459A (en) Text reproducing and pasting method and mobile terminal
WO2018112951A1 (en) Head-mounted display apparatus and content inputting method therefor
CN102270115A (en) Key function display method of computer, application program and readable recording medium
JP4888421B2 (en) Electronic device, power saving control method and program
TWI745961B (en) Electronic apparatus and key function switching method thereof
US20090070491A1 (en) Method for executing target programs with compound quick keys
US20090079704A1 (en) Method and apparatus for inputting operation instructions using a dual touch panel of a mobile communication device
US7616194B2 (en) Key lock means and application method of the same
US10019081B2 (en) Functionality switching in pointer input devices
CN104142754A (en) Button module and its signal generating method
TWI497349B (en) Method and electronic device for defining user-defined keys of input device
CN104134050A (en) Touch control electronic device

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees