WO2012065375A1 - 一种处理键盘指令的方法、装置、键盘及终端设备 - Google Patents

一种处理键盘指令的方法、装置、键盘及终端设备 Download PDF

Info

Publication number
WO2012065375A1
WO2012065375A1 PCT/CN2011/071151 CN2011071151W WO2012065375A1 WO 2012065375 A1 WO2012065375 A1 WO 2012065375A1 CN 2011071151 W CN2011071151 W CN 2011071151W WO 2012065375 A1 WO2012065375 A1 WO 2012065375A1
Authority
WO
WIPO (PCT)
Prior art keywords
button
status bar
flag
switching
lowercase
Prior art date
Application number
PCT/CN2011/071151
Other languages
English (en)
French (fr)
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 中兴通讯股份有限公司
Publication of WO2012065375A1 publication Critical patent/WO2012065375A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes

Definitions

  • the present invention relates to the field of computers, and in particular, to a method, device, keyboard and terminal device for processing keyboard commands. Background technique
  • Internet terminal equipment Mainly Internet box, Internet TV, netbook, etc., among them: Although the netbook is convenient to carry and low in price, but because the display screen is small in size, it is not conducive to users to watch; although the network TV can provide functions such as video downloading and video on demand, In terms of current network development, its function is relatively limited; the Internet box is a simple computer device that uses a TV as a display. Because it has the function of a computer, it can provide more functions, and the TV is used as a display. A larger size display is provided, so that the net box has a greater advantage than the netbook and the Internet TV, and the application is more and more widely used.
  • portable input terminal devices such as mobile phones, personal digital assistants (PDAs), and the like
  • PDAs personal digital assistants
  • personal computer input devices are mainly keyboards and mice.
  • a terminal device which may be an internet box
  • the terminal device does not provide a touch screen and mouse. It only provides a built-in keyboard.
  • the keyboard layout of the built-in keyboard is similar to that of the current traditional keyboard, but only the keyboard is used without the cooperation of a mouse or a touch screen. Operations and some text editing (such as SMS editing) are not fast and convenient. Now, it has greater limitations. Summary of the invention
  • the invention provides a method, a device, a keyboard and a terminal device for processing keyboard commands, so as to implement an uppercase or lowercase switching function, and/or a status bar switching function, and/or a copy or paste function, thereby improving the terminal device.
  • a method of processing a key command comprising:
  • the physical button comprises: a uppercase and lowercase letter switching button for implementing uppercase or lowercase switching function, and a state for implementing a status bar switching function a column switching button, at least one of a copy or paste button for implementing a copy or paste function;
  • Corresponding button processing is performed according to the button event.
  • An apparatus for processing keyboard instructions comprising:
  • a central processor control unit configured to receive an operation instruction sent by the physical button, and generate a corresponding interrupt instruction according to the operation instruction, and output the physical key button: the uppercase and lowercase letter switching button used to implement the uppercase or lowercase switching function a status bar switching button for implementing a status bar switching function, and at least one of a copy or paste button for implementing a copy or paste function;
  • a keyboard driving unit configured to be connected to the central processor control unit, configured to scan a pin state of the physical button according to an interrupt instruction output by the central processor control unit, and obtain a corresponding to the physical button Scan code and output;
  • An input control unit coupled to the keyboard driving unit, for driving the keyboard driver
  • the scan code outputted by the element is converted into a button value, and the corresponding button event is determined according to the button value and output;
  • the button processing unit is connected to the input control unit for performing corresponding button processing according to the button event output by the input control unit.
  • a keyboard comprising: a case letter switching button for implementing an uppercase or lowercase switching function, a status bar switching button for switching a status bar, and at least one of a copy or paste button for copying or pasting.
  • a terminal device is provided with a keyboard, the keyboard includes: a uppercase and lowercase letter switching button for implementing an uppercase or lowercase switching function, a status bar switching button for switching a status bar, and a copy or paste button for copying or pasting At least one of the keys.
  • a uppercase and lowercase letter switching button for implementing uppercase or lowercase switching function, and/or a status bar switching button for realizing a status bar switching function, and/or implementation are newly added to the keyboard in the terminal device.
  • the copy or paste function of the copy or paste function realizes the function of upper and lower case switching function and/or status bar switching function and/or copying or pasting, thereby improving the efficiency of the online operation and text operation in the terminal device. Convenience, etc. DRAWINGS
  • FIG. 1 is a flow chart of a method for processing a keyboard command according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an apparatus for processing a keyboard command according to an embodiment of the present invention
  • FIG. 3 is a flow chart of a method for processing a button event corresponding to a CAPSLOCK button by using the device shown in FIG. 2 according to an embodiment of the present invention
  • FIG. 4 is a flow chart of a method for processing a button event corresponding to a STATUS BAR button by using the device shown in FIG. 2 according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for processing a key event corresponding to a COPY/PASTE button by using the apparatus shown in FIG. 2 according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a keyboard according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a keyboard according to an embodiment of the present invention. detailed description
  • embodiments of the present invention provide a method, a device, a keyboard, and a terminal device for processing keyboard commands, implementing uppercase or lowercase switching functions, and/or status bar switching functions, and/or copying or Paste function, etc., thereby enabling quick and convenient online operation and text operation in the terminal device.
  • the method includes: receiving an operation instruction sent by a physical button, and generating a corresponding interrupt instruction according to the operation instruction, where the physical button includes one or more of the following: a case letter switching button that implements an uppercase or lowercase switching function, and realizes a state a status bar switching button of the column switching function, implementing a copy or paste function of the copy or paste function; scanning the pin state of the physical button according to the interrupt instruction, and obtaining a scan code corresponding to the physical button; The scan code is converted into a button value, and a corresponding button event is determined according to the button value; and a corresponding button processing flow is performed according to the button event.
  • the physical button includes one or more of the following: a case letter switching button that implements an uppercase or lowercase switching function, and realizes a state a status bar switching button of the column switching function, implementing a copy or paste function of the copy or paste function; scanning the pin state of the physical button according to the interrupt instruction, and obtaining a scan code corresponding to the physical button
  • a uppercase and lowercase letter switching button for implementing uppercase or lowercase switching function, and/or a status bar switching button for realizing a status bar switching function, and/or implementation are newly added to the keyboard in the terminal device.
  • the copy or paste function of the copy or paste function realizes the function of upper and lower case switching function and/or status bar switching function and/or copying or pasting, thereby improving the efficiency of the online operation and text operation in the terminal device. Convenience, etc.
  • FIG. 1 is a flowchart of a method for processing a keyboard command according to an embodiment of the present invention, the method includes the following steps:
  • Step 101 Receive an operation instruction of a physical button, and generate a corresponding interrupt instruction according to the operation instruction, where the physical button includes one or more of the following: a case letter switching button that implements an uppercase or lowercase switching function, and implements a status bar switching function.
  • the status bar toggle button enables copy or paste of copy or paste functions.
  • Step 102 Scan a pin state of the physical button according to the interrupt instruction, And obtaining a scan code corresponding to the physical button.
  • Step 103 Convert the scan code into a button value, and determine a corresponding button event according to the button value.
  • the button value corresponding to the scan code is determined from the correspondence relationship; and according to the correspondence between the button value and the button event, the correspondence relationship is A key event corresponding to the scan code is determined.
  • Step 104 Perform a corresponding button processing procedure according to the button event.
  • the type of the operation instruction includes one or more of the following: a capital letter switching instruction sent by a capital letter switching button (hereinafter referred to as a CAPSLOCK button), and a copy/paste button (subsequent) A copy/paste command sent by the COPY/PASTE button, and a status bar switching command sent by the status bar switch button (hereinafter referred to as the STATUS BAR button).
  • a capital letter switching instruction sent by a capital letter switching button hereinafter referred to as a CAPSLOCK button
  • a copy/paste button subsequent
  • a copy/paste command sent by the COPY/PASTE button and a status bar switching command sent by the status bar switch button (hereinafter referred to as the STATUS BAR button).
  • the step 104 includes: modifying a status flag of the current uppercase and lowercase lock bit, and, upon receiving the key event corresponding to the selected letter button, locking according to the modified case
  • the status flag of the bit outputs the letter corresponding to the selected letter button.
  • the modifying the current case lock bit status flag includes: when detecting that the current case lock bit status flag is the first flag for characterizing uppercase, modifying the first flag to a second flag for characterizing lowercase; The current case lock bit status flag is detected as a second flag for characterizing lower case, and the second flag is modified to be the first flag for characterizing uppercase.
  • the letter corresponding to the selected letter button is output, specifically: when the application text editing window detects that a letter button is selected, according to the modified case lock bit status flag, the output is The corresponding letter of the selected letter button; for example, when the modified status flag is the first flag, the uppercase form of the letter corresponding to the letter button is output; when the modified status bit flag is the second flag, the output is The lowercase form of the corresponding letter of the letter button.
  • the method before performing the corresponding button processing procedure according to the button event, the method further includes the steps of: filtering out the button event corresponding to the selected non-letter button, and uploading the application to the application window;
  • the application window determines that the current active window is a non-text editing window, the process ends.
  • the combination of the "Shift" button and the letter button can also be used to determine the uppercase or lowercase form of the letter corresponding to the letter button;
  • the current case lock bit status flag is a flag, and simultaneously receiving the button event corresponding to the "Shift” button and the button event corresponding to the letter button, modifying the first flag to the second flag, and outputting the lowercase form of the letter corresponding to the letter key;
  • the uppercase and lowercase lock status flag is the second flag, and when the button event corresponding to the "Shift" button and the button event corresponding to the letter button are received, the second flag is modified to the first flag, and the letter is output.
  • the uppercase form of the letter corresponding to the key is a flag, and simultaneously receiving the button event corresponding to the "Shift" button and the button event corresponding to the letter button, modifying the first flag to the second flag, and outputting the lowercase form of the letter corresponding to the letter key;
  • the uppercase and lowercase lock status flag is the second flag,
  • the step 104 includes: reporting the button event to the public application window, and controlling the current status of the status bar in the common application window. Switching; for example, when the common application window detects that the current state of the status bar is a display state, controlling the common application window to call the status bar control to hide the status bar; when the public application window detects the When the current state of the status bar is a hidden state, controlling the common application window to call the status bar control displays the status bar.
  • the above step 104 includes: applying the button event to the application window, and the application window determines that the currently active window is a text editing window. Copying or pasting according to the button value of the button event; for example, when the button value represents copying, the edit window control is used to save the selected content to the clipboard; when the button value represents the paste , use the edit window control to output the contents of the clipboard to the selected position in the current window.
  • step 104 corresponding button processing is performed according to the button event.
  • the method further includes the steps of: determining whether the selected content or the area where the selected location is located is an editable area, and if not, ending the process. It can also include the steps of: Filtering out key events for unselected copy/paste buttons.
  • the button value is determined by a combination of a "Shift” button and a "COPY/PASTE” button; for example, when only the "COPY/PASTE” button is selected, the corresponding button value is characterized and copied. Operation; If the "Shift" button and the "COPY/PASTE” button are selected at the same time, the corresponding button value indicates the paste operation.
  • the embodiment of the present invention further provides an apparatus for processing a keyboard command.
  • the structure of the device is as shown in FIG. 2, and includes:
  • the central processing unit control unit 21 is configured to receive an operation instruction sent by the physical button, and generate and output a corresponding interrupt instruction according to the operation instruction, where the physical button includes one or more of the following: used to implement uppercase or lowercase switching The uppercase and lowercase letter switching button, the status bar switching button for switching the status bar, and the copy or paste button for copying or pasting.
  • the keyboard driving unit 22 is connected to the central processing unit control unit 21, and is configured to scan a pin state of the physical button according to an interrupt instruction output by the central processing unit control unit 21, and obtain a scan corresponding to the physical button. Code and output.
  • the input control unit 23 is connected to the keyboard driving unit 22, and is configured to convert the scan code output by the keyboard driving unit 22 into a button value, and determine a corresponding button event according to the button value and output.
  • the button processing unit 24 is connected to the input control unit 23 for performing a corresponding button processing flow according to the key event output from the input control unit 23.
  • the button processing unit 24 is specifically configured to: modify the status flag of the current uppercase and lowercase locking bit, and When receiving the button event corresponding to the selected letter button, the status button of the modified case lock bit outputs the selected letter button corresponding to Letters.
  • the button processing unit 24 modifies the status flag of the current case lock bit, specifically for:
  • the current case lock bit status flag When detecting that the current case lock bit status flag is the first flag for characterizing uppercase, modifying the first flag to a second flag for characterizing lowercase; detecting that the current case lock bit status flag is used In order to characterize the second flag of the lowercase, the second flag is modified to be the first flag for characterizing the uppercase.
  • the button processing unit 24 is specifically configured to: report the button event to the application window, where the application window is When it is determined that the current active window is a text editing window, the copying or pasting process is performed according to the button value of the button event.
  • the button processing unit 24 performs a process of copying or pasting according to the button value of the button event, and is specifically applied to: when the button value represents copying, use the edit window control to save the selected content to the clipboard. When the key value represents paste, use the edit window control to output the contents of the clipboard to the selected position in the current window.
  • the button processing unit 24 is specifically configured to: report the button event to the public application window, and control The common application window switches the current state of the status bar.
  • the button processing unit 24 controls the common application window to switch the current state of the status bar, and is specifically applied to: when the public application window detects that the current state of the status bar is the display state, controlling the The public application window calls the status bar control to hide the status bar; when the common application window detects that the current status of the status bar is a hidden state, controlling the common application window to call the status bar control to display the status bar.
  • the central processing unit control unit 21 in the embodiment of the present invention may be a central processing unit of the terminal device.
  • CPU Central processing unit
  • 3 is a flowchart of a method for processing a button event corresponding to a CAPSLOCK button according to an embodiment of the present invention.
  • the button processing unit 24 initializes a case lock bit status flag during an initialization phase, and the state flag initial state is Used to characterize the clear state of the lowercase; when the button event corresponding to the CAPSLOCK button is received for the first time, the status flag is modified from the cleared state to the locked state for characterizing the uppercase; when the button event corresponding to the CAPSLOCK button is subsequently received
  • the key processing unit 24 detects that the case lock bit status flag is currently in the clear state, the flag is changed from the clear state to the lock flag to enter the caps lock state; the button processing unit 24 detects that the case lock bit flag is currently locked.
  • the status flag is changed from the locked state to the cleared state, the caps lock state is exited.
  • the method includes the following steps: Step 301: When the button processing unit receives the button event, the uppercase and lowercase lock bit status flag is modified.
  • Step 302 The button processing unit filters out the button event corresponding to the selected non-letter button, and reports the button event to the application window.
  • Step 303 Determine whether the current active window is a text editing window. If yes, execute step 304. Otherwise, perform step 309.
  • Step 304 Detect whether there is a button event corresponding to the letter key, if yes, execute step 305, otherwise perform step 309.
  • Step 305 The button processing unit acquires a word corresponding to the letter button through an application window.
  • Step 306 Determine whether the button event corresponding to the "Shift" button is also received at the same time when the button event corresponding to the letter button is received. If yes, execute step 307; otherwise, perform step 308.
  • Step 307 Modify the current uppercase and lowercase lock bit flag, and output an uppercase or lowercase form of the letter corresponding to the letter key according to the modified case lock bit flag.
  • Step 308 Output an uppercase or lowercase form of the letter corresponding to the letter key according to the current capitalization lock bit flag.
  • Step 309 ending the process.
  • a flowchart of a method for processing a button event corresponding to a STATUS BAR button includes the following steps:
  • Step 401 The button processing unit receives a button event.
  • Step 402 Report the received button event to the public application window.
  • Step 403 The public application window determines whether the button event is a button event corresponding to the STATUS BAR button, and if yes, executes step 404; otherwise, performs step 407.
  • Step 404 The public application window determines whether the current status bar status is the display status. If yes, step 405 is performed; otherwise, step 406 is performed.
  • Step 405 Use the status bar control to hide the status bar, and change the status of the status bar from the display state to the hidden state.
  • Step 406 Display the status bar by using the status bar control, and change the status of the status bar from the hidden state to the display state.
  • Step 407 ending the process.
  • FIG. 5 is a flowchart of a method for processing a key event corresponding to a COPY/PASTE button according to an embodiment of the present invention
  • the method filters out a key event corresponding to a non-COPY/PASTE button, and the method includes the following steps:
  • Step 501 The button processing unit receives a button event corresponding to the COPY/PASTE button.
  • Step 502 Report the received key event corresponding to the COPY/PASTE button to the application window.
  • Step 503 Determine whether the current active window is a text editing window. If yes, execute step 504, otherwise perform step 505.
  • Step 504 The text editing window initializes the clipboard common control.
  • Step 505 Determine whether the button event corresponding to the "Shift” button is received at the same time, if the key event corresponding to the "Shift” button is also received, if otherwise, step 506 is performed, otherwise step 507 is performed.
  • Step 506 Save the selected content to the clipboard with the edit window control.
  • Step 507 Use the edit window control to output the contents of the clipboard to the selected position of the currently active window.
  • Step 508 ending the process.
  • FIG. 6 is a flowchart of a method for implementing an operation on a short message by using an internet terminal device provided with the above-mentioned device for processing a keyboard command according to an embodiment of the present invention, where the method for receiving a short message includes receiving a short message, and setting a status bar to After the status is displayed, the short message is read in the status bar; the phone number in the short message is saved; and the short message is included, the reply message includes uppercase and lowercase letters; the method includes the following steps:
  • Step 601 The internet terminal device receives the short message.
  • Step 602 When the device for processing the keyboard command of the internet terminal device receives the operation instruction sent by the "STATUS BAR" button, the status bar is set to the display state, and the short message is opened from the status bar.
  • Step 603 Select a phone number in the short message, and receive a button event sent by the "COPY/PASTE" button, and save the selected phone number to the clipboard.
  • Step 604 switch to the contact program, and select the "New Contact” option from the contact menu, and jump to the corresponding text editing window.
  • Step 605 Simultaneously receive the button event corresponding to the "Shift” button and the button event corresponding to the "COPY/PASTE” button, save the phone number in the clipboard to the selected position in the text editing window, and complete the operation of saving the contact.
  • Step 606 Select a saved contact from the contact program, and select a "send short message” option from the menu, and start the short message program to enter the short message text editing window.
  • Step 607 When it is required to output an uppercase letter, receive a key event corresponding to the "CAPSLOCK” button, and set a case lock bit flag to a flag for characterizing uppercase; receive a key event corresponding to the letter key, and output the key key with the letter key The uppercase form of the corresponding letter.
  • Step 608 When inputting a lowercase letter, receiving a key event corresponding to the "CAPSLOCK” button, and setting a case lock bit flag to a flag for characterizing lowercase; receiving a key event corresponding to the letter key, and outputting the letter key The lowercase form of the corresponding letter.
  • Step 609 After the short message editing ends, send the short message by using the existing sending mode, and return to the main interface of the device.
  • Step 610 Receive a button event corresponding to the "STATUS BAR" button, and hide the status bar to change the status of the status bar from the display state to the hidden state.
  • Step 611 ending the process.
  • the embodiment of the present invention further provides a keyboard, which includes one or more of the following buttons: a uppercase and lowercase letter switching button for implementing uppercase or lowercase switching functions, and a status bar switching button for switching the status bar for copying Or paste the copy or paste button.
  • the uppercase and lowercase letter switching button in the embodiment of the present invention is set at a center position of the edge of the function key area of the keyboard; the copy/paste button is disposed at a lower side position of the edge of the function key area; The status bar switch button is set at the lower side of the edge of the function button area.
  • FIG. 7 is a schematic structural diagram of a keyboard according to an embodiment of the present invention.
  • the "CAPSLOCK” button in the keyboard is a capitalized letter switching button; the "STATUS BAR” button is a status bar switching button; and the "COPY/PASTE” button is a copy. / Paste button.
  • the method, the keyboard and the device provided by the technical solution of the present invention can be applied to an internet terminal device, a personal computer, a mobile terminal device, such as a mobile phone and a mobile internet device (MID, Mobile Internet) Devices, etc., are no longer here - for example.
  • a mobile terminal device such as a mobile phone and a mobile internet device (MID, Mobile Internet) Devices, etc.
  • a uppercase and lowercase letter switching button for implementing uppercase or lowercase switching function, and/or a status bar switching button for realizing a status bar switching function, and/or a keyboard for the uppercase or lowercase switching function are newly added to the keyboard in the internet terminal device.
  • the copy or paste function of the copy or paste function is implemented, thereby realizing the function of switching between uppercase and lowercase letters and/or status bar switching function and/or copying or pasting, thereby improving the internet operation and text operation in the internet terminal device. Efficiency and convenience.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Description

一种处理键盘指令的方法、 装置、 键盘及终端设备 技术领域
本发明涉及计算机领域, 尤其涉及一种处理键盘指令的方法、 装置、 键盘及终端设备。 背景技术
随着信息化社会的迅速发展, 上网冲浪已成为人们日常生活中进行娱 乐的重要组成部分, 但是进行上网冲浪等娱乐活动需要高昂和更新换代较 为迅速的上网终端设备才能进行, 目前的上网终端设备主要是上网盒、 网 络电视、 上网本等, 其中: 上网本虽然携带方便、 价格低廉, 但是由于显 示屏尺寸较小, 不利于用户观看; 网络电视虽然可以提供视频下载、 视频 点播等功能, 但是相比于目前的网络发展来看, 其功能比较有限; 上网盒 是一种釆用电视为显示器的简易式电脑设备, 由于其具有电脑的功能因此 能够提供较多的功能, 且以电视作为显示器, 因此提供了较大尺寸的显示 器, 因此, 与上网本和网络电视相比, 上网盒具有较大的优势, 应用越来 越广泛。
目前,便携式上网终端设备,例如手机、个人数字助理(PDA, Personal Digital Assistant )等的输入设备主要是键盘和触摸屏, 个人电脑的输入设备 主要是键盘和鼠标。 为节省硬件设备的成本, 以降低上网终端设备的成本, 目前开发了一种终端设备(可以是上网盒), 该终端设备兼具手机和个人电 脑的功能; 该终端设备釆用电视作为其显示器; 终端设备不提供触摸屏和 鼠标, 只提供一个内置键盘, 该内置键盘的键盘布局与目前传统的键盘的 布局类似, 但是仅釆用该种键盘而不需要鼠标或触摸屏等协作, 不能对于 一些上网操作和一些文本编辑(如短信编辑)等操作并不能快捷方便的实 现, 具有较大的局限性。 发明内容
本发明提供一种处理键盘指令的方法、 装置、 键盘和终端设备, 以实 现大写或小写切换功能, 和 /或状态栏切换功能, 和 /或复制或粘贴功能等, 从而提高了该终端设备中进行上网操作和文本操作的效率和便捷性等。
一种处理按键指令的方法, 该方法包括:
接收物理按键发送的操作指令, 并根据所述操作指令产生相应的中断 指令, 所述物理按键包括: 用于实现大写或小写切换功能的大小写字母切 换按键、 用于实现状态栏切换功能的状态栏切换按键、 用于实现复制或粘 贴功能的复制或粘贴按键中的至少一种按键;
根据所述中断指令, 对所述物理按键的引脚状态进行扫描, 并得到与 所述物理按键对应的扫描码;
将所述扫描码转换成按键值, 并根据所述按键值确定出对应的按键事 件;
根据所述按键事件进行相应的按键处理。
一种处理键盘指令的装置, 该装置包括:
中央处理器控制单元, 用于接收物理按键发送的操作指令, 并根据所 述操作指令产生相应的中断指令并输出, 所述物理按键包括: 用于实现大 写或小写切换功能的大小写字母切换按键、 用于实现状态栏切换功能的状 态栏切换按键、 用于实现复制或粘贴功能的复制或粘贴按键中的至少一种 按键;
键盘驱动单元, 与所述中央处理器控制单元相连接, 用于根据所述中 央处理器控制单元输出的中断指令, 对所述物理按键的引脚状态进行扫描, 并得到与所述物理按键对应的扫描码并输出;
输入控制单元, 与所述键盘驱动单元相连接, 用于将所述键盘驱动单 元输出的扫描码转换成按键值, 并根据所述按键值确定出对应的按键事件 并输出;
按键处理单元, 与所述输入控制单元相连接, 用于根据所述输入控制 单元输出的按键事件进行相应的按键处理。
一种键盘, 包括: 用于实现大写或小写切换功能的大小写字母切换按 键、 用于切换状态栏的状态栏切换按键、 用于复制或粘贴的复制或粘贴按 键中的至少一种按键。
一种终端设备, 设置有键盘, 所述键盘包括: 用于实现大写或小写切 换功能的大小写字母切换按键、 用于切换状态栏的状态栏切换按键、 用于 复制或粘贴的复制或粘贴按键中的至少一种按键。
釆用本发明技术方案, 在终端设备中的键盘中新增加了用于实现大写 或小写切换功能的大小写字母切换按键, 和 /或实现状态栏切换功能的状态 栏切换按键, 和 /或实现复制或粘贴功能的复制或粘贴按键, 从而实现了大 小写字母切换功能和 /或状态栏切换功能和 /或复制或粘贴的功能, 从而提高 了该终端设备中进行上网操作和文本操作的效率和便捷性等。 附图说明
图 1为本发明实施例中处理键盘指令的方法流程图;
图 2本发明实施例中的处理键盘指令的装置的结构示意图;
图 3 为本发明实施例中釆用如图 2所示的装置对 CAPSLOCK按键对 应的按键事件进行处理的方法流程图;
图 4为本发明实施例中釆用如图 2所示的装置对 STATUS BAR按键对 应的按键事件进行处理的方法流程图;
图 5为本发明实施例中釆用如图 2所示的装置对 COPY/PASTE按键对 应的按键事件进行处理的方法流程图;
图 6为本发明实施例中的键盘的结构示意图; 图 7为本发明实施例中的键盘的结构示意图。 具体实施方式
针对现有技术存在的上述技术问题, 本发明实施例提供一种处理键盘 指令的方法、 装置、 键盘及终端设备, 实现大写或小写切换功能, 和 /或状 态栏切换功能, 和 /或复制或粘贴功能等, 从而实现在该终端设备中快速便 捷的进行上网操作和文本操作等。 该方法包括: 接收物理按键发送的操作 指令, 并根据该操作指令产生相应的中断指令, 所述物理按键包括以下一 种或多种: 实现大写或小写切换功能的大小写字母切换按键, 实现状态栏 切换功能的状态栏切换按键, 实现复制或粘贴功能的复制或粘贴按键; 根 据所述中断指令, 对所述物理按键的引脚状态进行扫描, 并得到与该物理 按键对应的扫描码; 将所述扫描码转换成按键值, 并根据该按键值确定出 对应的按键事件; 根据所述按键事件进行相应的按键处理流程。 釆用本发 明技术方案, 在终端设备中的键盘中新增加了用于实现大写或小写切换功 能的大小写字母切换按键, 和 /或实现状态栏切换功能的状态栏切换按键, 和 /或实现复制或粘贴功能的复制或粘贴按键, 从而实现了大小写字母切换 功能和 /或状态栏切换功能和 /或复制或粘贴的功能, 从而提高了该终端设备 中进行上网操作和文本操作的效率和便捷性等。
下面结合说明书附图对本发明技术方案进行详细的描述。
参见图 1 , 为本发明实施例中处理键盘指令的方法流程图, 该方法包括 以下步骤:
步骤 101、接收物理按键的操作指令, 并根据该操作指令产生相应的中 断指令, 物理按键包括以下一种或多种: 实现大写或小写切换功能的大小 写字母切换按键, 实现状态栏切换功能的状态栏切换按键, 实现复制或粘 贴功能的复制或粘贴按键。
步骤 102、 根据所述中断指令, 对所述物理按键的引脚状态进行扫描, 并得到与该物理按键对应的扫描码。
步骤 103、将所述扫描码转换成按键值, 并根据该按键值确定出对应的 按键事件。
该步骤中, 根据设置的扫描码与按键值的对应关系, 从该对应关系中 确定出与所述扫描码对应的按键值; 并根据按键值与所述按键事件的对应 关系, 从该对应关系中确定出与所述扫描码对应的按键事件。
步骤 104、 根据所述按键事件进行相应的按键处理流程。
较佳地, 本发明实施例中, 操作指令的类型包括以下一种或多种: 由 大小写字母切换按键(后续称为 CAPSLOCK按键)发送的大小写字母切换 指令、 由复制 /粘贴按键(后续称为 COPY/PASTE按键)发送的复制 /粘贴 指令、 由状态栏切换按键(后续称为 STATUS BAR按键)发送的状态栏切 换指令。
当所述操作指令为大小写字母切换指令时, 上述步骤 104包括: 修改 当前大小写锁定位的状态标志, 并在接收到被选中的字母按键对应的按键 事件时, 根据修改后的大小写锁定位的状态标志输出被选中的字母按键对 应的字母。 修改当前大小写锁定位状态标志, 具体包括: 检测到当前的大 小写锁定位状态标志为用于表征大写的第一标志时, 将所述第一标志修改 为用于表征小写的第二标志; 检测到当前的大小写锁定位状态标志为用于 表征小写的第二标志, 则将第二标志修改为用于表征大写的第一标志。 根 据修改后的大小写锁定位状态标志输出被选中的字母按键对应的字母, 具 体包括: 应用程序文字编辑窗口检测到有字母按键被选中时, 根据修改后 的大小写锁定位状态标志, 输出与被选中字母按键相应的字母; 如, 当修 改后的状态标志位为第一标志时, 输出与该字母按键相应的字母的大写形 式; 当修改后的状态位标志为第二标志时, 输出与该字母按键相应的字母 的小写形式。 较佳地, 上述步骤 104 中, 在根据所述按键事件进行相应的按键处理 流程之前, 还包括步骤: 过滤掉被选中的非字母按键对应的按键事件, 并 上才艮给应用程序窗口; 并在应用程序窗口判断当前的活动窗口为非文字编 辑窗口时, 结束流程。
较佳地, 本发明实施例中, 还可以釆用 "Shift" 按键和字母按键的组 合键来确定输出与字母按键对应的字母的大写形式或小写形式; 当前的大 小写锁定位状态标志为第一标志, 且同时接收到 "Shift" 按键对应的按键 事件和字母按键对应的按键事件时, 将所述第一标志修改为第二标志, 并 输出所述字母键对应的字母的小写形式; 当前的大小写锁定位状态标志位 第二标志, 且同时接收到 "Shift" 按键对应的按键事件和字母按键对应的 按键事件时, 将所述第二标志修改为第一标志, 并输出所述字母键对应的 字母的大写形式。
当所述物理按键为状态栏切换按键时 , 操作指令为状态栏切换指令时 , 上述步骤 104 包括: 将所述按键事件上报给公共应用窗口, 并控制所述公 共应用窗口对状态栏当前的状态进行切换; 如, 当所述公共应用窗口检测 到所述状态栏当前的状态为显示状态时, 控制所述公共应用窗口调用状态 栏控件隐藏所述状态栏; 当所述公共应用窗口检测到所述状态栏当前的状 态为隐藏状态时, 控制所述公共应用窗口调用状态栏控件显示所述状态栏。
当物理按键为复制或粘贴按键, 操作指令为复制 /粘贴指令时, 上述步 骤 104 包括: 将所述按键事件上 4艮给应用程序窗口, 应用程序窗口在确定 当前活动窗口为文字编辑窗口时, 根据所述按键事件的按键值进行复制或 粘贴的处理; 如, 当所述按键值表征复制时, 釆用编辑窗口控件将选定的 内容保存到剪贴板中; 当所述按键值表征粘贴时, 釆用编辑窗口控件将剪 贴板中的内容输出到当前窗口中的选定位置。
较佳地, 上述步骤 104 中, 在根据所述按键事件进行相应的按键处理 流程之前, 还包括步骤: 判断选定的内容或者选定位置所在的区域是否为 可编辑区域, 若不是则结束流程。 还可以包括步骤: 过滤掉非选中复制 /粘 贴按键的按键事件。
较佳地, 本发明实施例中, 上述按键值通过 " Shift " 按键和 "COPY/PASTE" 按键的组合键来确定; 如, 只选中 "COPY/PASTE" 按 键时, 其对应的按键值表征复制操作; 若同时选中 " Shift " 按键和 "COPY/PASTE" 按键时, 其所对应的按键值表征粘贴操作。
基于上述方法相同的构思, 本发明实施例还提供一种处理键盘指令的 装置, 该装置的结构如图 2所示, 包括:
中央处理器控制单元 21 , 用于接收物理按键发送的操作指令, 并根据 该操作指令产生相应的中断指令并输出, 所述物理按键包括以下一种或多 种: 用于实现大写或小写切换功能的大小写字母切换按键, 用于切换状态 栏的状态栏切换按键, 用于复制或粘贴的复制或粘贴按键。
键盘驱动单元 22, 与中央处理器控制单元 21相连接, 用于根据中央处 理器控制单元 21输出的中断指令, 对所述物理按键的引脚状态进行扫描, 并得到与该物理按键对应的扫描码并输出。
输入控制单元 23 , 与键盘驱动单元 22相连接, 用于将键盘驱动单元 22输出的扫描码转换成按键值, 并根据该按键值确定出对应的按键事件并 输出。
按键处理单元 24, 与输入控制单元 23相连接, 用于根据输入控制单元 23输出的按键事件进行相应的按键处理流程。
较佳地, 当中央处理器控制单元 21接收到的操作指令为大小写字母切 换按键发送的大小写字母切换指令时, 按键处理单元 24具体用于: 修改当 前大小写锁定位的状态标志, 并在接收到被选中的字母按键对应的按键事 件时, 根据修改后的大小写锁定位的状态标志输出被选中的字母按键对应 的字母。
较佳地, 按键处理单元 24修改当前大小写锁定位的状态标志, 具体用 于:
检测到当前的大小写锁定位状态标志为用于表征大写的第一标志时, 将所述第一标志修改为用于表征小写的第二标志; 检测到当前的大小写锁 定位状态标志为用于表征小写的第二标志, 则将第二标志修改为用于表征 大写的第一标志。
较佳地, 当中央处理器控制单元 21接收到的操作指令为复制或粘贴按 键发送的复制或粘贴指令时; 按键处理单元 24具体用于: 将按键事件上报 给应用程序窗口, 应用程序窗口在确定当前活动窗口为文字编辑窗口时, 根据所述按键事件的按键值进行复制或粘贴的处理。
较佳地, 按键处理单元 24根据所述按键事件的按键值进行复制或粘贴 的处理, 具体应用于: 当所述按键值表征复制时, 釆用编辑窗口控件将选 定的内容保存到剪贴板中; 当所述按键值表征粘贴时, 釆用编辑窗口控件 将剪贴板中的内容输出到当前窗口中的选定位置。
较佳地, 当中央处理器控制单元 21接收到的操作指令为状态栏切换按 键发送的状态栏切换指令时, 按键处理单元 24具体用于: 将所述按键事件 上报给公共应用窗口, 并控制所述公共应用窗口对状态栏当前的状态进行 切换。
较佳地, 按键处理单元 24控制所述公共应用窗口对状态栏当前的状态 进行切换, 具体应用于: 当所述公共应用窗口检测到所述状态栏当前的状 态为显示状态时, 控制所述公共应用窗口调用状态栏控件隐藏所述状态栏; 当所述公共应用窗口检测到所述状态栏当前的状态为隐藏状态时, 控制所 述公共应用窗口调用状态栏控件显示所述状态栏。
本发明实施例中的中央处理器控制单元 21可为终端设备的中央处理单 元 ( CPU, Central processing unit )。 参见图 3 , 为本发明实施例中对 CAPSLOCK按键对应的按键事件进行 处理的方法流程图, 该方法中, 按键处理单元 24在初始化阶段时初始化大 小写锁定位状态标志, 该状态标志初始状态为用于表征小写的清除状态; 当第一次接收到 CAPSLOCK按键对应的按键事件时,将该状态标志从清除 状态修改为用于表征大写的锁定状态;在后续接收到 CAPSLOCK按键对应 的按键事件时, 按键处理单元 24检测到大小写锁定位状态标志当前为清除 状态时, 将该标志从清除状态修改为锁定标志, 进入大写锁定状态; 按键 处理单元 24检测到大小写锁定位标志当前为锁定状态时, 将该状态标志从 锁定状态修改为清除状态, 并退出大写锁定状态。 该方法包括以下步骤: 步骤 301、按键处理单元接收到按键事件时, 修改大小写锁定位状态标 志。
步骤 302、 按键处理单元过滤掉被选中的非字母按键对应的按键事件, 并上报给应用程序窗口。
步骤 303、 判断当前活动窗口是否为文字编辑窗口, 若是则执行步骤 304, 否则执行步骤 309。
步骤 304、 检测是否有字母键对应的按键事件, 若有则执行步骤 305, 否则执行步骤 309。
步骤 305、按键处理单元通过应用程序窗口获取与该字母按键对应的字 付。
步骤 306、 判断接收到字母按键对应的按键事件时是否还同时接收到 "Shift" 按键对应的按键事件, 若是则执行步骤 307, 否则执行步骤 308。
步骤 307、修改当前大小写锁定位标志, 并根据修改后的大小写锁定位 标志, 输出与所述字母键对应的字母的大写形式或小写形式。 步骤 308、根据当前大小写锁定位标志, 输出与所述字母键对应的字母 的大写形式或小写形式。
步骤 309、 结束流程。
参见图 4 , 为本发明实施例对 STATUS BAR按键对应的按键事件进行 处理的方法流程图, 该方法包括以下步骤:
步骤 401、 按键处理单元接收按键事件。
步骤 402、 将接收到的按键事件上报给公共应用窗口。
步骤 403、 公共应用窗口判断该按键事件是否为 STATUS BAR按键对 应的按键事件, 若是则执行步骤 404, 否则执行步骤 407。
步骤 404、公共应用窗口判断当前的状态栏状态是否为显示状态, 若是 则执行步骤 405 , 否则执行步骤 406。
步骤 405、 釆用状态栏控件隐藏状态栏, 并将状态栏的状态从显示状态 修改为隐藏状态。
步骤 406、 釆用状态栏控件显示状态栏, 并将状态栏的状态从隐藏状态 修改为显示状态。
步骤 407、 结束流程。
参见图 5 , 为本发明实施例中对 COPY/PASTE按键对应的按键事件进 行处理的方法流程图,该方法过滤掉非 COPY/PASTE按键对应的按键事件, 该方法包括以下步骤:
步骤 501、 按键处理单元接收与 COPY/PASTE按键对应的按键事件。 步骤 502、 将接收到的与 COPY/PASTE按键对应的按键事件上报给应 用程序窗口。
步骤 503、 判断当前活动窗口是否为文字编辑窗口, 若是则执行步骤 504, 否则执行步骤 505。
步骤 504、 文字编辑窗口初始化剪贴板公共控件。 步骤 505、 判断在接收到 "COPY/PASTE"按键对应的按键事件, 是否 还同时接收到 "Shift" 按键对应的按键事件, 若否则执行步骤 506, 否则执 行步骤 507。
步骤 506、 釆用编辑窗口控件将选定内容保存到剪贴板中。
步骤 507、釆用编辑窗口控件将剪贴板中的内容输出到当前活动窗口的 选定位置。
步骤 508、 结束流程。
下面以一个具体的应用场景对本发明技术方案继续拧详细、 清楚的描 述。
参见图 6,为本发明实施例中釆用设置有上述处理键盘指令的装置的上 网终端设备实现对短信进行操作的方法流程图, 该方法对短信进行操作包 括接收短信, 并将状态栏设置为显示状态之后, 在该状态栏中读取短信; 保存短信中的电话号码; 以及回复短信, 该回复短信中包括大小写字母; 该方法包括以下步骤:
步骤 601、 上网终端设备接收短信。
步骤 602、上网终端设备的处理键盘指令的装置接收到 "STATUS BAR" 按键发送的操作指令时, 将状态栏设置为显示状态, 并从状态栏中打开短 信。
步骤 603、 选定短信中的电话号码, 并接收 "COPY/PASTE"按键发送 的按键事件, 将选定的电话号码保存到剪贴板中。
步骤 604、 切换到联系人程序, 并从联系人菜单中选择 "新建联系人" 选项 , 并跳转到相应的文字编辑窗口中。
步骤 605、 同时接收 "Shift" 按键对应的按键事件和 "COPY/PASTE" 按键对应的按键事件, 将剪贴板中的电话号码保存到文字编辑窗口中的选 定位置, 并完成联系人保存等操作。 步骤 606、 从联系人程序中选取保存的联系人, 并从菜单中选取 "发送 短信" 选项, 并启动短信程序, 进入到短信文字编辑窗口。
步骤 607、 当需要输出大写字母时, 接收 "CAPSLOCK" 按键对应的 按键事件, 并将大小写锁定位标志设置为用于表征大写的标志; 接收字母 键对应的按键事件, 并输出与该字母键对应的字母的大写形式。
步骤 608、 当需要输入小写字母时, 接收 "CAPSLOCK" 按键对应的 按键事件, 并将大小写锁定位标志设置为用于表征小写的标志; 接收字母 键对应的按键事件, 并输出与该字母键对应的字母的小写形式。
步骤 609、 在短信编辑结束后, 釆用现有的发送方式发送所述短信, 并 回到设备主界面。
步骤 610、接收 "STATUS BAR"按键对应的按键事件, 并隐藏状态栏, 将状态栏的状态从显示状态修改为隐藏状态。
步骤 611、 结束流程。
本发明实施例还提供一种键盘, 该键盘包括以下一种或多种按键: 用 于实现大写或小写切换功能的大小写字母切换按键, 用于切换状态栏的状 态栏切换按键, 用于复制或粘贴的复制或粘贴按键。
较佳地, 为适应应用习惯, 本发明实施例中的大小写字母切换按键设 置在键盘的功能按键区边缘的居中位置; 所述复制 /粘贴按键设置在功能按 键区边缘的下侧位置; 所述状态栏切换按键设置在功能按键区边缘的下侧 位置。
参见图 7 , 为本发明实施例中的键盘的结构示意图, 该键盘中的 "CAPSLOCK"按键为大小写字母切换按键; "STATUS BAR"按键为状态 栏切换按键; "COPY/PASTE" 按键为复制 /粘贴按键。
本发明技术方案提供的方法、 键盘和装置可应用于上网终端设备、 个 人电脑、移动终端设备,如手机以及移动互联网设备(MID , Mobile Internet Devices )设备等, 在此不再——举例。
釆用本发明技术方案, 在上网终端设备中的键盘中新增加了用于实现 大写或小写切换功能的大小写字母切换按键, 和 /或实现状态栏切换功能的 状态栏切换按键, 和 /或实现复制或粘贴功能的复制或粘贴按键, 从而实现 了大小写字母切换功能和 /或状态栏切换功能和 /或复制或粘贴的功能, 从而 提高了该上网终端设备中进行上网操作和文本操作的效率和便捷性等。 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。

Claims

权利要求书
1、 一种处理按键指令的方法, 其特征在于, 该方法包括:
接收物理按键发送的操作指令, 并根据所述操作指令产生相应的中断 指令, 所述物理按键包括: 用于实现大写或小写切换功能的大小写字母切 换按键、 用于实现状态栏切换功能的状态栏切换按键、 用于实现复制或粘 贴功能的复制或粘贴按键中的至少一种按键;
根据所述中断指令, 对所述物理按键的引脚状态进行扫描, 并得到与 所述物理按键对应的扫描码;
将所述扫描码转换成按键值, 并根据所述按键值确定出对应的按键事 件;
根据所述按键事件进行相应的按键处理。
2、 根据权利要求 1所述的方法, 其特征在于, 所述物理按键为所述大 小写字母切换按键, 所述操作指令为大小写字母切换指令时, 所述根据所 述按键事件进行相应的按键处理包括:
修改当前大小写锁定位的状态标志, 并在接收到被选中的字母按键对 应的按键事件时, 根据修改后的大小写锁定位的状态标志输出被选中的字 母按键对应的字母。
3、 根据权利要求 2所述的方法, 其特征在于, 所述修改当前大小写锁 定位状态标志包括: 检测到当前的大小写锁定位状态标志为用于表征大写 的第一标志时, 将所述第一标志修改为用于表征小写的第二标志; 检测到 当前的大小写锁定位状态标志为用于表征小写的第二标志, 则将第二标志 修改为用于表征大写的第一标志。
4、 根据权利要求 2或 3所述的方法, 其特征在于, 在根据所述按键事 件进行相应的按键处理之前, 该方法还包括: 过滤掉被选中的非字母按键 对应的按键事件, 并上报给应用程序窗口; 在应用程序窗口判断当前的活动窗口为非文字编辑窗口时, 结束按键 处理。
5、 根据权利要求 1所述的方法, 其特征在于, 所述物理按键为所述复 制或粘贴按键, 所述操作指令为复制或粘贴指令时, 所述根据所述按键事 件进行相应的按键处理包括:
将所述按键事件上 给应用程序窗口, 应用程序窗口在确定当前活动 窗口为文字编辑窗口时, 根据所述按键事件的按键值进行复制或粘贴的处 理。
6、 根据权利要求 5所述的方法, 其特征在于, 根据所述按键事件的按 键值进行复制或粘贴的处理包括:
当所述按键值表征复制时, 釆用编辑窗口控件将选定的内容保存到剪 贴板中;
当所述按键值表征粘贴时, 釆用编辑窗口控件将剪贴板中的内容输出 到当前窗口中的选定位置。
7、根据权利要求 5或 6所述的方法,其特征在于,所述按键值通过 Shift 按键和所述复制或粘贴按键的组合键来确定;
当仅接收到所述复制或粘贴按键对应的按键事件时, 所述按键值表征 复制操作; 当同时接收 Shift按键对应的按键事件和所述复制或粘贴按键对 应的按键事件时, 所述按键值表征粘贴操作。
8、 根据权利要求 1所述的方法, 其特征在于, 所述物理按键为所述状 态栏切换按键, 所述操作指令为状态栏切换指令时, 所述根据所述按键事 件进行相应的按键处理包括:
将所述按键事件上报给公共应用窗口, 并控制所述公共应用窗口对状 态栏当前的状态进行切换。
9、 根据权利要求 8所述的方法, 其特征在于, 所述控制所述公共应用 窗口对状态栏当前的状态进行切换包括:
当所述公共应用窗口检测到所述状态栏当前的状态为显示状态时, 控 制所述公共应用窗口调用状态栏控件隐藏所述状态栏; 当所述公共应用窗 口检测到所述状态栏当前的状态为隐藏状态时, 控制所述公共应用窗口调 用状态栏控件显示所述状态栏。
10、 一种处理键盘指令的装置, 其特征在于, 该装置包括:
中央处理器控制单元, 用于接收物理按键发送的操作指令, 并根据所 述操作指令产生相应的中断指令并输出, 所述物理按键包括: 用于实现大 写或小写切换功能的大小写字母切换按键、 用于实现状态栏切换功能的状 态栏切换按键、 用于实现复制或粘贴功能的复制或粘贴按键中的至少一种 按键;
键盘驱动单元, 与所述中央处理器控制单元相连接, 用于根据所述中 央处理器控制单元输出的中断指令, 对所述物理按键的引脚状态进行扫描, 并得到与所述物理按键对应的扫描码并输出;
输入控制单元, 与所述键盘驱动单元相连接, 用于将所述键盘驱动单 元输出的扫描码转换成按键值, 并根据所述按键值确定出对应的按键事件 并输出;
按键处理单元, 与所述输入控制单元相连接, 用于根据所述输入控制 单元输出的按键事件进行相应的按键处理。
11、 根据权利要求 10所述的装置, 其特征在于, 所述中央处理器控制 单元, 进一步用于接收操作指令, 所述操作指令为所述大小写字母切换按 键发送的大小写字母切换指令;
所述按键处理单元, 进一步用于修改当前大小写锁定位的状态标志, 并在接收到被选中的字母按键对应的按键事件时, 根据修改后的大小写锁 定位的状态标志输出被选中的字母按键对应的字母。
12、 根据权利要求 11所述的装置, 其特征在于, 所述按键处理单元, 进一步用于在修改当前大小写锁定位的状态标志的情况下, 检测到当前的 大小写锁定位状态标志为用于表征大写的第一标志时, 将所述第一标志修 改为用于表征小写的第二标志; 检测到当前的大小写锁定位状态标志为用 于表征小写的第二标志, 则将第二标志修改为用于表征大写的第一标志。
13、 根据权利要求 10所述的装置, 其特征在于, 所述中央处理器控制 单元, 进一步用于接收操作指令, 所述操作指令为所述复制或粘贴按键发 送的复制或粘贴指令;
所述按键处理单元, 进一步用于将所述按键事件上报给应用程序窗口, 应用程序窗口在确定当前活动窗口为文字编辑窗口时, 根据所述按键事件 的按键值进行复制或粘贴的处理。
14、 根据权利要求 13所述的装置, 其特征在于, 所述按键处理单元, 进一步用于在根据所述按键事件的按键值进行复制或粘贴的处理的情况 下, 当所述按键值表征复制时, 釆用编辑窗口控件将选定的内容保存到剪 贴板中; 当所述按键值表征粘贴时, 釆用编辑窗口控件将剪贴板中的内容 输出到当前窗口中的选定位置。
15、 根据权利要求 10所述的装置, 其特征在于, 所述中央处理器控制 单元, 进一步用于接收操作指令, 所述操作指令为所述状态栏切换按键发 送的状态栏切换指令;
所述按键处理单元, 进一步用于将所述按键事件上报给公共应用窗口, 并控制所述公共应用窗口对状态栏当前的状态进行切换。
16、 根据权利要求 15所述的装置, 其特征在于, 所述按键处理单元, 进一步用于在控制所述公共应用窗口对状态栏当前的状态进行切换的情况 下, 当所述公共应用窗口检测到所述状态栏当前的状态为显示状态时, 控 制所述公共应用窗口调用状态栏控件隐藏所述状态栏; 当所述公共应用窗 口检测到所述状态栏当前的状态为隐藏状态时, 控制所述公共应用窗口调 用状态栏控件显示所述状态栏。
17、 一种键盘, 其特征在于, 该键盘包括: 用于实现大写或小写切换 功能的大小写字母切换按键、 用于切换状态栏的状态栏切换按键、 用于复 制或粘贴的复制或粘贴按键中的至少一种按键。
18、 一种终端设备, 其特征在于, 该终端设备设置有键盘, 所述键盘 包括: 用于实现大写或小写切换功能的大小写字母切换按键、 用于切换状 态栏的状态栏切换按键、 用于复制或粘贴的复制或粘贴按键中的至少一种 按键。
19、 根据权利要求 18所述的终端设备, 其特征在于, 所述终端设备包 括:
中央处理器控制单元, 用于接收物理按键发送的操作指令, 并根据所 述操作指令产生相应的中断指令并输出, 所述物理按键包括: 用于实现大 写或小写切换功能的大小写字母切换按键、 用于实现状态栏切换功能的状 态栏切换按键、 用于实现复制或粘贴功能的复制或粘贴按键中的至少一种 按键;
键盘驱动单元, 与所述中央处理器控制单元相连接, 用于根据所述中 央处理器控制单元输出的中断指令, 对所述物理按键的引脚状态进行扫描, 并得到与所述物理按键对应的扫描码并输出;
输入控制单元, 与所述键盘驱动单元相连接, 用于将所述键盘驱动单 元输出的扫描码转换成按键值, 并根据所述按键值确定出对应的按键事件 并输出;
按键处理单元, 与所述输入控制单元相连接, 用于根据所述输入控制 单元输出的按键事件进行相应的按键处理。
20、 根据权利要求 19所述的终端设备, 其特征在于, 所述中央处理器 控制单元, 进一步用于接收操作指令, 所述操作指令为所述大小写字母切 换按键发送的大小写字母切换指令;
所述按键处理单元, 进一步用于修改当前大小写锁定位的状态标志, 并在接收到被选中的字母按键对应的按键事件时, 根据修改后的大小写锁 定位的状态标志输出被选中的字母按键对应的字母。
21、 根据权利要求 20所述的终端设备, 其特征在于, 所述按键处理单 元, 进一步用于在修改当前大小写锁定位的状态标志的情况下, 检测到当 前的大小写锁定位状态标志为用于表征大写的第一标志时, 将所述第一标 志修改为用于表征小写的第二标志; 检测到当前的大小写锁定位状态标志 为用于表征小写的第二标志, 则将第二标志修改为用于表征大写的第一标 志。
22、 根据权利要求 19所述的终端设备, 其特征在于, 所述中央处理器 控制单元, 进一步用于接收操作指令, 所述操作指令为所述复制或粘贴按 键发送的复制或粘贴指令;
所述按键处理单元, 进一步用于将所述按键事件上报给应用程序窗口, 应用程序窗口在确定当前活动窗口为文字编辑窗口时, 根据所述按键事件 的按键值进行复制或粘贴的处理。
23、 根据权利要求 22所述的终端设备, 其特征在于, 所述按键处理单 元, 进一步用于在根据所述按键事件的按键值进行复制或粘贴的处理的情 况下, 当所述按键值表征复制时, 釆用编辑窗口控件将选定的内容保存到 剪贴板中; 当所述按键值表征粘贴时, 釆用编辑窗口控件将剪贴板中的内 容输出到当前窗口中的选定位置。
24、 根据权利要求 19所述的终端设备, 其特征在于, 所述中央处理器 控制单元, 进一步用于接收操作指令, 所述操作指令为所述状态栏切换按 键发送的状态栏切换指令; 所述按键处理单元, 进一步用于将所述按键事件上报给公共应用窗口, 并控制所述公共应用窗口对状态栏当前的状态进行切换。
25、 根据权利要求 24所述的终端设备, 其特征在于, 所述按键处理单 元, 进一步用于在控制所述公共应用窗口对状态栏当前的状态进行切换的 情况下, 当所述公共应用窗口检测到所述状态栏当前的状态为显示状态时, 控制所述公共应用窗口调用状态栏控件隐藏所述状态栏; 当所述公共应用 窗口检测到所述状态栏当前的状态为隐藏状态时, 控制所述公共应用窗口 调用状态栏控件显示所述状态栏。
PCT/CN2011/071151 2010-11-19 2011-02-21 一种处理键盘指令的方法、装置、键盘及终端设备 WO2012065375A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105529780A CN101995964A (zh) 2010-11-19 2010-11-19 一种处理键盘指令的方法、装置、键盘及终端设备
CN201010552978.0 2010-11-19

Publications (1)

Publication Number Publication Date
WO2012065375A1 true WO2012065375A1 (zh) 2012-05-24

Family

ID=43786199

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/071151 WO2012065375A1 (zh) 2010-11-19 2011-02-21 一种处理键盘指令的方法、装置、键盘及终端设备

Country Status (2)

Country Link
CN (1) CN101995964A (zh)
WO (1) WO2012065375A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761404A (zh) * 2014-02-16 2014-04-30 谢红军 可配置的控制方法和操作指示器

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064526B (zh) * 2011-10-24 2018-04-20 研祥智能科技股份有限公司 一种键盘加解锁方法、系统及键盘
CN103279203B (zh) * 2013-03-28 2017-02-01 深圳市共进电子股份有限公司 一种按键复用的方法及多功能按键
TWI695297B (zh) * 2016-04-29 2020-06-01 姚秉洋 鍵盤手勢指令之產生方法及其電腦程式產品與非暫態電腦可讀取媒體
CN109597501A (zh) * 2018-12-10 2019-04-09 深圳市网心科技有限公司 一种快捷键管理方法及相关装置
CN114253434A (zh) * 2020-09-25 2022-03-29 武汉斗鱼鱼乐网络科技有限公司 系统交互界面的控制方法、装置、存储介质及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123634A (zh) * 2006-08-11 2008-02-13 中兴通讯股份有限公司 一种通过键盘在移动终端上编辑文本的方法
CN101226427A (zh) * 2007-01-17 2008-07-23 黄金富 适合移动通讯设备和掌上电脑的键盘和相应输入方法
US20080198044A1 (en) * 2007-02-15 2008-08-21 Asustek Computer Inc. Computer and method for processing keyboard input thereof
CN101470534A (zh) * 2007-12-24 2009-07-01 群光电子股份有限公司 数字键盘装置及其操作方法
CN101581972A (zh) * 2008-05-12 2009-11-18 联想(北京)有限公司 一种键盘、键盘的输入方法、计算机及笔记本电脑
CN101661332A (zh) * 2008-08-28 2010-03-03 纬创资通股份有限公司 按键处理方法及计算机系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626247B (zh) * 2008-07-08 2012-11-14 希姆通信息技术(上海)有限公司 键盘扫描方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123634A (zh) * 2006-08-11 2008-02-13 中兴通讯股份有限公司 一种通过键盘在移动终端上编辑文本的方法
CN101226427A (zh) * 2007-01-17 2008-07-23 黄金富 适合移动通讯设备和掌上电脑的键盘和相应输入方法
US20080198044A1 (en) * 2007-02-15 2008-08-21 Asustek Computer Inc. Computer and method for processing keyboard input thereof
CN101470534A (zh) * 2007-12-24 2009-07-01 群光电子股份有限公司 数字键盘装置及其操作方法
CN101581972A (zh) * 2008-05-12 2009-11-18 联想(北京)有限公司 一种键盘、键盘的输入方法、计算机及笔记本电脑
CN101661332A (zh) * 2008-08-28 2010-03-03 纬创资通股份有限公司 按键处理方法及计算机系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761404A (zh) * 2014-02-16 2014-04-30 谢红军 可配置的控制方法和操作指示器

Also Published As

Publication number Publication date
CN101995964A (zh) 2011-03-30

Similar Documents

Publication Publication Date Title
WO2017088500A1 (zh) 一种智能穿戴设备及其信息输入方法
WO2012065375A1 (zh) 一种处理键盘指令的方法、装置、键盘及终端设备
KR101169148B1 (ko) 문자 입력 디바이스, 문자 입력 방법 및 컴퓨터 판독가능한 매체
EP2447857A1 (en) Communication device and electronic device
JP2009266201A (ja) ユーザインタフェース切り換え方法、この方法を用いる電子装置及び記録媒体
WO2023005920A1 (zh) 分屏方法、装置及电子设备
TWI492140B (zh) 鍵盤輸入的方法與輔助系統
KR20070091530A (ko) 터치 센시티브 키패드를 갖는 이동 핸드셋 및 사용자인터페이스방법
CN103412772A (zh) 在移动操作系统下快速启动视窗化应用软件的方法及装置
KR20070091531A (ko) 이동 핸드셋에서의 네비게이션 방법 및 그 이동 핸드셋
WO2011017873A1 (zh) 一种移动终端输入法切换方法及装置
KR20100093909A (ko) 브라우징 이력을 제공하는 방법과 그를 위한 터치 스크린 단말기 및 컴퓨터로 읽을 수 있는 기록매체
CN103049205A (zh) 移动终端和移动终端的操控方法
JP2009276889A (ja) サーバ装置、クライアント装置、サーバベース・コンピューティング・システム、サーバ制御プログラム、クライアント制御プログラム
KR20070091529A (ko) 터치 센시티브 스크롤 방법 및 이를 위한 이동 헤드셋
WO2022095885A1 (zh) 应用程序切换处理方法、装置和电子设备
JP6003939B2 (ja) 画像処理連携システムと連携方法、携帯端末装置及び画像処理連携プログラム
US8935626B2 (en) Handheld electronic device and method for switching user interface thereof
WO2022242586A1 (zh) 应用界面显示方法、装置和电子设备
US20100127977A1 (en) Pointing device, electronic device and operation method thereof
KR102009258B1 (ko) 지문 이벤트 처리 방법, 장치, 및 단말기
US20070205989A1 (en) Camera with a touch sensitive keypad
WO2013149421A1 (zh) 一种处理键盘输入的方法及设备
CN103345309B (zh) 一种扩展按键的方法及系统
JP5853999B2 (ja) 画像形成システム、画像形成装置、遠隔操作装置およびプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11841553

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11841553

Country of ref document: EP

Kind code of ref document: A1