CN105468256A - Input method keyboard switching method and device - Google Patents
Input method keyboard switching method and device Download PDFInfo
- Publication number
- CN105468256A CN105468256A CN201510812035.XA CN201510812035A CN105468256A CN 105468256 A CN105468256 A CN 105468256A CN 201510812035 A CN201510812035 A CN 201510812035A CN 105468256 A CN105468256 A CN 105468256A
- Authority
- CN
- China
- Prior art keywords
- keyboard
- virtual keyboard
- virtual
- input
- input method
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04886—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
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)
Abstract
本发明实施例提供了一种输入法键盘的切换方法和装置,该方法包括:在输入法界面中检测到指定的触控操作时,将当前的第一虚拟键盘切换至指定的第二虚拟键盘;在所述第二虚拟键盘中接收到输入信息时,按照所述输入信息查找一个或多个候选项;当接收到针对所述候选项的上屏指示时,将当前的第二虚拟键盘切换至所述第一虚拟键盘。避免了多次切换操作,提高了输入操作的简便性,减少系统资源的耗费。
An embodiment of the present invention provides a method and device for switching an input method keyboard, the method comprising: switching the current first virtual keyboard to a designated second virtual keyboard when a designated touch operation is detected in the input method interface ; When input information is received in the second virtual keyboard, search for one or more alternatives according to the input information; when receiving an on-screen instruction for the alternatives, switch the current second virtual keyboard to the first virtual keyboard. Multiple switching operations are avoided, the convenience of input operations is improved, and the consumption of system resources is reduced.
Description
技术领域technical field
本发明涉及输入法的技术领域,特别是涉及一种输入法键盘的切换方法和一种输入法键盘的切换装置。The invention relates to the technical field of input methods, in particular to an input method keyboard switching method and an input method keyboard switching device.
背景技术Background technique
随着信息时代的高速发展,在各种场合下,用户经常需要通过输入法应用输入信息。With the rapid development of the information age, in various occasions, users often need to input information through input method applications.
例如,在搜索引擎中输入关键词搜索网页,在即时通讯工具中输入文字与其他用户进行交流,等等。For example, enter keywords in a search engine to search webpages, enter text in instant messaging tools to communicate with other users, and so on.
通常,输入法应用面向广大用户,而不同用户具有不同的输入习惯,因此,输入法应用通常配置多种的虚拟键盘,如用于拼音输入的键盘、用于五笔输入的键盘、用于手写输入的键盘等等。Usually, input method applications are oriented to a large number of users, and different users have different input habits. Therefore, input method applications are usually configured with various virtual keyboards, such as keyboards for pinyin input, keyboards for Wubi input, and keyboards for handwriting input. keyboard etc.
当用户在某种键盘无法输入某个字的时候,往往会切换至其他种类的键盘进行输入,由于键盘种类比较多,可能进行几次切换才切换到所需的键盘,输入完毕后,再经过多次切换才切换回原本的键盘,操作比较繁琐,耗费系统资源。When the user cannot input a certain word on a certain keyboard, he will often switch to other types of keyboards for input. Since there are many types of keyboards, it may be necessary to switch several times before switching to the desired keyboard. Switching back to the original keyboard after switching multiple times is cumbersome and consumes system resources.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种输入法键盘的切换方法和相应的一种输入法键盘的切换装置。In view of the above problems, the present invention is proposed to provide an input method keyboard switching method and a corresponding input method keyboard switching device that overcome the above problems or at least partially solve the above problems.
依据本发明的一个方面,提供了一种输入法键盘的切换方法,包括:According to one aspect of the present invention, a method for switching input method keyboards is provided, including:
在输入法界面中检测到指定的触控操作时,将当前的第一虚拟键盘切换至指定的第二虚拟键盘;When a specified touch operation is detected in the input method interface, switch the current first virtual keyboard to the specified second virtual keyboard;
在所述第二虚拟键盘中接收到输入信息时,按照所述输入信息查找一个或多个候选项;When input information is received in the second virtual keyboard, search for one or more candidate items according to the input information;
当接收到针对所述候选项的上屏指示时,将当前的第二虚拟键盘切换至所述第一虚拟键盘。When receiving an on-screen instruction for the candidate item, switch the current second virtual keyboard to the first virtual keyboard.
可选地,所述第一虚拟键盘为非手写键盘,所述第二虚拟键盘为手写键盘Optionally, the first virtual keyboard is a non-handwriting keyboard, and the second virtual keyboard is a handwriting keyboard
其中,所述为非手写键盘包括如下的一种或多种:Wherein, the non-handwriting keyboard includes one or more of the following:
基于拼音的九宫格键盘、基于拼音的全键盘、双拼键盘、五笔键盘。Pinyin-based Jiugongge keyboard, Pinyin-based full keyboard, Shuangpin keyboard, and Wubi keyboard.
可选地,所述将当前的第一虚拟键盘切换至指定的第二虚拟键盘的步骤包括:Optionally, the step of switching the current first virtual keyboard to the designated second virtual keyboard includes:
查找指定的第二虚拟键盘;Find the specified second virtual keyboard;
记录所述第一虚拟键盘的键盘标识;record the keyboard identifier of the first virtual keyboard;
在输入法界面中取消所述第一虚拟键盘的加载;Canceling the loading of the first virtual keyboard in the input method interface;
在输入法界面中加载所述第二虚拟键盘。Load the second virtual keyboard in the input method interface.
可选地,所述将当前的第二虚拟键盘切换至所述第一虚拟键盘的步骤包括:Optionally, the step of switching the current second virtual keyboard to the first virtual keyboard includes:
读取在先记录的键盘标识;Read the previously recorded keyboard identification;
查找所述键盘标识对应的第一虚拟键盘;Find the first virtual keyboard corresponding to the keyboard identifier;
在输入法界面中取消所述第二虚拟键盘的加载;Canceling the loading of the second virtual keyboard in the input method interface;
在输入法界面中加载所述第一虚拟键盘。The first virtual keyboard is loaded in the input method interface.
可选地,所述在所述第二虚拟键盘中接收到输入信息时,按照所述输入信息查找一个或多个候选项的步骤包括:Optionally, when the input information is received in the second virtual keyboard, the step of searching for one or more alternatives according to the input information includes:
在所述第二虚拟键盘中接收到输入信息时,按照所述第二虚拟键盘对应的编码规则、采用所述输入信息查找一个或多个候选项。When input information is received in the second virtual keyboard, the input information is used to search for one or more candidate items according to the encoding rules corresponding to the second virtual keyboard.
可选地,在所述当接收到针对所述候选项的上屏指示时,在输入法应用中切换至所述第一虚拟键盘,以替换所述第二虚拟键盘的步骤之前,所述方法还包括:Optionally, before the step of switching to the first virtual keyboard in the input method application to replace the second virtual keyboard when the on-screen instruction for the candidate is received, the method Also includes:
识别在所述第二虚拟键盘中光标焦点对应候选项;identifying cursor focus corresponding candidates in the second virtual keyboard;
查询在所述第一虚拟键盘输入所述候选项所需的编码信息;Querying the coding information required for inputting the candidate item on the first virtual keyboard;
加载所述编码信息。Load the encoding information.
根据本发明的另一方面,提供了一种输入法键盘的切换装置,包括:According to another aspect of the present invention, a switching device for an input method keyboard is provided, comprising:
第一键盘切换模块,适于在输入法界面中检测到指定的触控操作时,将当前的第一虚拟键盘切换至指定的第二虚拟键盘;The first keyboard switching module is adapted to switch the current first virtual keyboard to a designated second virtual keyboard when a designated touch operation is detected in the input method interface;
候选项查找模块,适于在所述第二虚拟键盘中接收到输入信息时,按照所述输入信息查找一个或多个候选项;The candidate item search module is adapted to search for one or more candidate items according to the input information when input information is received in the second virtual keyboard;
第二键盘切换模块,适于在接收到针对所述候选项的上屏指示时,将当前的第二虚拟键盘切换至所述第一虚拟键盘。The second keyboard switching module is adapted to switch the current second virtual keyboard to the first virtual keyboard when receiving the on-screen instruction for the candidate item.
可选地,所述第一虚拟键盘为非手写键盘,所述第二虚拟键盘为手写键盘Optionally, the first virtual keyboard is a non-handwriting keyboard, and the second virtual keyboard is a handwriting keyboard
其中,所述为非手写键盘包括如下的一种或多种:Wherein, the non-handwriting keyboard includes one or more of the following:
基于拼音的九宫格键盘、基于拼音的全键盘、双拼键盘、五笔键盘。Pinyin-based Jiugongge keyboard, Pinyin-based full keyboard, Shuangpin keyboard, and Wubi keyboard.
可选地,所述第一键盘切换模块还适于:Optionally, the first keyboard switching module is also suitable for:
查找指定的第二虚拟键盘;Find the specified second virtual keyboard;
记录所述第一虚拟键盘的键盘标识;record the keyboard identifier of the first virtual keyboard;
在输入法界面中取消所述第一虚拟键盘的加载;Canceling the loading of the first virtual keyboard in the input method interface;
在输入法界面中加载所述第二虚拟键盘。Load the second virtual keyboard in the input method interface.
可选地,所述第二键盘切换模块还适于:Optionally, the second keyboard switching module is also suitable for:
读取在先记录的键盘标识;Read the previously recorded keyboard identification;
查找所述键盘标识对应的第一虚拟键盘;Find the first virtual keyboard corresponding to the keyboard identifier;
在输入法界面中取消所述第二虚拟键盘的加载;Canceling the loading of the second virtual keyboard in the input method interface;
在输入法界面中加载所述第一虚拟键盘。The first virtual keyboard is loaded in the input method interface.
可选地,所述候选项查找模块还适于:Optionally, the candidate item search module is also suitable for:
在所述第二虚拟键盘中接收到输入信息时,按照所述第二虚拟键盘对应的编码规则、采用所述输入信息查找一个或多个候选项。When input information is received in the second virtual keyboard, the input information is used to search for one or more candidate items according to the encoding rules corresponding to the second virtual keyboard.
可选地,还包括:Optionally, also include:
候选项识别模块,适于识别在所述第二虚拟键盘中光标焦点对应候选项;A candidate identification module, adapted to identify candidates corresponding to the cursor focus in the second virtual keyboard;
编码信息查询模块,适于查询在所述第一虚拟键盘输入所述候选项所需的编码信息;A coded information query module, adapted to query the coded information required to input the candidate item on the first virtual keyboard;
编码信息加载模块,适于加载所述编码信息。The encoding information loading module is suitable for loading the encoding information.
本发明实施例通过指定的触控操作从第一虚拟键盘直接切换至第二虚拟键盘,在第二虚拟键盘输入完成时,自动从第二虚拟键盘直接切换至第一虚拟键盘,避免了多次切换操作,提高了输入操作的简便性,减少系统资源的耗费。The embodiment of the present invention directly switches from the first virtual keyboard to the second virtual keyboard through a specified touch operation, and automatically switches from the second virtual keyboard to the first virtual keyboard directly when the second virtual keyboard input is completed, avoiding multiple The switching operation improves the convenience of input operation and reduces the consumption of system resources.
本发明实施例在第二虚拟键盘中加载在第一虚拟键盘输入候选项所需的编码信息,避免后续在第一虚拟键盘中输入该候选项时进行虚拟键盘的切换操作,进一步提高了输入操作的简便性。In the embodiment of the present invention, the coding information required for inputting the candidate item on the first virtual keyboard is loaded in the second virtual keyboard, so as to avoid subsequent virtual keyboard switching operations when inputting the candidate item in the first virtual keyboard, and further improve the input operation. simplicity.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:
图1示出了根据本发明一个实施例的一种输入法键盘的切换方法实施例1的步骤流程图;FIG. 1 shows a flow chart of the steps of Embodiment 1 of an input method keyboard switching method according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的一种虚拟键盘的示例图;Fig. 2 shows an example diagram of a virtual keyboard according to an embodiment of the present invention;
图3示出了根据本发明一个实施例的一种输入法键盘的切换方法实施例2的步骤流程图;FIG. 3 shows a flow chart of the steps of Embodiment 2 of an input method keyboard switching method according to an embodiment of the present invention;
图4示出了根据本发明一个实施例的一种编码信息的加载示例图;Fig. 4 shows an example diagram of loading coded information according to an embodiment of the present invention;
图5示出了根据本发明一个实施例的一种输入法键盘的切换装置实施例1的结构框图;以及FIG. 5 shows a structural block diagram of Embodiment 1 of an input method keyboard switching device according to an embodiment of the present invention; and
图6示出了根据本发明一个实施例的一种输入法键盘的切换装置实施例2的结构框图。Fig. 6 shows a structural block diagram of Embodiment 2 of an input method keyboard switching device according to an embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
参照图1,示出了根据本发明一个实施例的一种输入法键盘的切换方法实施例1的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of Embodiment 1 of an input method keyboard switching method according to an embodiment of the present invention, which may specifically include the following steps:
步骤101,在输入法界面中检测到指定的触控操作时,将当前的第一虚拟键盘切换至指定的第二虚拟键盘;Step 101, when a specified touch operation is detected in the input method interface, switch the current first virtual keyboard to a specified second virtual keyboard;
需要说明的是,本发明实施例可以应用于具有输入功能的移动设备中,例如,手机、平板电脑、穿戴设备(如手环、手表、眼镜)等等。It should be noted that the embodiments of the present invention can be applied to mobile devices with input functions, such as mobile phones, tablet computers, wearable devices (such as bracelets, watches, glasses) and the like.
这些电子设备通常可以支持包括Windows、Android(安卓)、IOS、WindowsPhone等操作系统,可以支持运行通过虚拟键盘进行输入的应用程序。These electronic devices can usually support operating systems including Windows, Android (Android), IOS, WindowsPhone, etc., and can support running applications for inputting through a virtual keyboard.
其中,该虚拟键盘可以包括九宫格键盘、全键盘(如QWERT键盘)等等,该应用程序可以包括输入法应用等等。Wherein, the virtual keyboard may include a Jiugongge keyboard, a full keyboard (such as a QWERT keyboard), etc., and the application program may include an input method application, etc.
在虚拟键盘中具有多个按键,该按键经常被复用,每个按键可以映射一个或多个字符,具体可以包括数字字符、英文字符、中文字符(包括拼音字符、笔画字符、五笔字符)、符号字符等等,以输入数字、英文、中文和符号等等。There are multiple keys in the virtual keyboard, which are often reused, and each key can map one or more characters, specifically including numeric characters, English characters, Chinese characters (including pinyin characters, stroke characters, Wubi characters), Symbol characters, etc., to enter numbers, English, Chinese and symbols, etc.
例如,在如图2所示的九宫格键盘中,数字字符“2”通常与英文字符“A”、“B”、“C”、“a”、“b”、“c”,拼音字符“a”(韵母)、“b”(声母)、“c”(声母),笔画字符“丨”映射到同一个按键。For example, in the Jiugongge keyboard shown in Figure 2, the numeric character "2" is usually associated with the English characters "A", "B", "C", "a", "b", "c", and the pinyin character "a". " (final), "b" (initial), "c" (initial), and the stroke character "丨" are mapped to the same button.
用户在键盘上按下一个或多个按键之后,该按键映射的字符可以组成字符串,通过该字符串,则可以在词库中查找相关的候选项。After the user presses one or more keys on the keyboard, the characters mapped to the keys can form a character string, and through the character string, related candidates can be searched in the thesaurus.
进一步而言,由拼音字符组成的字符串可以称之为拼音字符串,由英文字符组成的字符串可以称之为英文字符串,由数字字符组成的字符串可以称之为数字字符串,由拼音字符、英文字符、数字字符中至少两者组成的字符串可以称之为混合字符串,等等。Further, a character string composed of pinyin characters can be called a pinyin character string, a character string composed of English characters can be called an English character string, and a character string composed of numeric characters can be called a digital character string, by A character string composed of at least two of pinyin characters, English characters, and numeric characters may be called a mixed character string, and so on.
在实际应用中,由于输入习惯不同,用户一般主要在某一种的第一虚拟键盘中、基于某种编码规则进行输入,如有的用户习惯使用基于拼音的九宫格键盘进行输入、有的用户习惯使用基于拼音的全键盘进行输入,有的用户习惯使用双拼键盘或者五笔键盘记性输入,等等。In practical applications, due to different input habits, users generally mainly input in a certain first virtual keyboard based on a certain coding rule. Use the pinyin-based full keyboard for input, and some users are accustomed to using Shuangpin keyboard or Wubi keyboard for memorized input, and so on.
在本发明实施例的一个示例中,该第一虚拟键盘可以为非手写键盘,具体可以包括如下的一种或多种:In an example of an embodiment of the present invention, the first virtual keyboard may be a non-handwriting keyboard, and specifically may include one or more of the following:
基于拼音的九宫格键盘、基于拼音的全键盘、双拼键盘、五笔键盘。Pinyin-based Jiugongge keyboard, Pinyin-based full keyboard, Shuangpin keyboard, and Wubi keyboard.
例如,在基于拼音的九宫格键盘中进行输入,或者,在基于拼音的全键盘键中进行输入。For example, input is performed on a pinyin-based Jiugongge keyboard, or input is performed on a pinyin-based full keyboard.
当然,上述第一虚拟键盘只是作为示例,在实施本发明实施例时,可以根据实际情况设置其他第一虚拟键盘,如基于笔画的九宫格键盘等,本发明实施例对此不加以限制。Of course, the above-mentioned first virtual keyboard is only an example. When implementing the embodiment of the present invention, other first virtual keyboards can be set according to the actual situation, such as a stroke-based nine-grid keyboard, which is not limited in the embodiment of the present invention.
针对某些较为陌生的字,在当前第一虚拟键盘的编码规则可能无法进行输入,但是,在其他的第二虚拟键盘中可能进行输入。For some relatively unfamiliar characters, the encoding rules of the current first virtual keyboard may not be able to be input, however, input may be possible on other second virtual keyboards.
在本发明实施例的一个示例中,该第二虚拟键盘可以为手写键盘。In an example of the embodiment of the present invention, the second virtual keyboard may be a handwriting keyboard.
例如,用户在基于拼音输入的九宫格键盘中输入某个字,忘记该字的拼音,但是,还记得该字的写法。For example, the user inputs a certain word in the pinyin-based Jiugongge keyboard, forgets the pinyin of the word, but still remembers the way the word is written.
当然,上述第二虚拟键盘只是作为示例,在实施本发明实施例时,可以根据实际情况设置其他第二虚拟键盘,如基于笔画的九宫格键盘等,本发明实施例对此不加以限制。Of course, the above-mentioned second virtual keyboard is only an example. When implementing the embodiment of the present invention, other second virtual keyboards can be set according to the actual situation, such as a stroke-based nine-grid keyboard, which is not limited in the embodiment of the present invention.
因此,用户可以通过点击指定的按键、触发指定的滑动手势等触控操作,将当前的第一虚拟键盘切换至指定的第二虚拟键盘。Therefore, the user can switch the current first virtual keyboard to the designated second virtual keyboard by clicking a designated button, triggering a designated sliding gesture and other touch operations.
在切换虚拟键盘中,可以根据该触控操作查找指定的第二虚拟键盘,如手写键盘,在输入法界面中取消第一虚拟键盘的加载,并在输入法界面中加载第二虚拟键盘,完成虚拟键盘的切换。In switching the virtual keyboard, you can search for the specified second virtual keyboard according to the touch operation, such as a handwriting keyboard, cancel the loading of the first virtual keyboard in the input method interface, and load the second virtual keyboard in the input method interface, and the completion Toggle of the virtual keyboard.
输入法应用一般是由几个或者几十个甚至更多的控件来组成,这些控件,主要分布在各个窗口中,这些窗口,除了主窗口以外,各种各样的弹出窗口以及自定义样式的子窗口。Input method applications are generally composed of several or dozens or even more controls, these controls are mainly distributed in various windows, these windows, in addition to the main window, various pop-up windows and custom style child window.
以Android为例,Android系统中的窗口也是以堆栈的形式组织在WindowManagerService服务中的,应用进程中的每一个Activity组件在Activity管理服务ActivityManagerService中都对应有一个ActivityRecord对象。Activity管理服务ActivityManagerService中每一个ActivityRecord对象在Window管理服务WindowManagerService中都对应有一个AppWindowToken对象。Taking Android as an example, the windows in the Android system are also organized in the WindowManagerService service in the form of a stack. Each Activity component in the application process corresponds to an ActivityRecord object in the Activity Management Service ActivityManagerService. Each ActivityRecord object in the Activity management service ActivityManagerService corresponds to an AppWindowToken object in the Window management service WindowManagerService.
需要说明的是,在输入法管理服务InputMethodManagerService中,每一个输入法窗口都对应有一个Binder对象,这个Binder对象在Window管理服务WindowManagerService又对应有一个WindowToken对象。It should be noted that in the input method management service InputMethodManagerService, each input method window corresponds to a Binder object, and this Binder object corresponds to a WindowToken object in the Window management service WindowManagerService.
此外,由于输入法应用中虚拟键盘的数量较多,便于在后切换回第一虚拟键盘,因此,可以记录第一虚拟键盘的键盘标识,即能够代表一个唯一确定的虚拟键盘的信息,如虚拟键盘的ID等。In addition, due to the large number of virtual keyboards in the input method application, it is convenient to switch back to the first virtual keyboard later. Therefore, the keyboard identifier of the first virtual keyboard can be recorded, that is, information that can represent a uniquely determined virtual keyboard, such as virtual The ID of the keyboard, etc.
步骤102,在所述第二虚拟键盘中接收到输入信息时,按照所述输入信息查找一个或多个候选项;Step 102, when input information is received in the second virtual keyboard, search for one or more candidate items according to the input information;
在具体实现中,用户可以在第二虚拟键盘中通过触控操作输入信息,在第二虚拟键盘中接收到输入信息时,可以按照第二虚拟键盘对应的编码规则、采用输入信息查找一个或多个候选项。In a specific implementation, the user can input information through touch operation in the second virtual keyboard, and when receiving the input information in the second virtual keyboard, can use the input information to find one or more information according to the coding rules corresponding to the second virtual keyboard. candidates.
以手写键盘为例,手写输入主要是通过捕捉运动物体和手写识别实现的,把运动物体(如手指、手写笔等)的轨迹记录下来,然后通过手写识别引擎(如zinnia,wagomu)去搜索数据中最匹配的候选项,从而知道“写”的字是什么。Taking the handwriting keyboard as an example, handwriting input is mainly realized by capturing moving objects and handwriting recognition, recording the trajectory of moving objects (such as fingers, stylus, etc.), and then searching for data through handwriting recognition engines (such as zinnia, wagomu) The best matching candidate in , so as to know what the word "writing" is.
步骤103,当接收到针对所述候选项的上屏指示时,将当前的第二虚拟键盘切换至所述第一虚拟键盘。Step 103: Switch the current second virtual keyboard to the first virtual keyboard when receiving an on-screen instruction for the candidate item.
一般情况下,候选项会在候选栏中加载,用户可以通过点击等操作触发上屏指示,可以将该候选项上屏(即将该候选项输出至当前应用进行显示)。Generally, the candidate items will be loaded in the candidate bar, and the user can trigger an on-screen instruction by clicking or other operations, and the candidate item can be on-screen (that is, output the candidate item to the current application for display).
若接收到上屏指示,则表示用户输入完成,由于第二虚拟键盘一般并非用户主要的输入方式,因此,可以自动将当前的第二虚拟键盘切换至可能是主要的输入方式的第一虚拟键盘。If the upper screen instruction is received, it means that the user input is completed. Since the second virtual keyboard is generally not the main input method of the user, the current second virtual keyboard can be automatically switched to the first virtual keyboard which may be the main input method. .
具体而言,由于在先记录了第一虚拟键盘的键盘标识,因此,可以读取在先记录的键盘标识,在输入法应用中预设的多个虚拟键盘中,查找键盘标识对应的第一虚拟键盘。Specifically, since the keyboard identifier of the first virtual keyboard has been recorded previously, the previously recorded keyboard identifier can be read, and the first virtual keyboard corresponding to the keyboard identifier can be found among the preset virtual keyboards in the input method application. virtual keyboard.
在输入法界面中取消第二虚拟键盘的加载,并在输入法界面中加载第一虚拟键盘,完成虚拟键盘的切换。The loading of the second virtual keyboard is canceled in the input method interface, and the first virtual keyboard is loaded in the input method interface to complete the switching of virtual keyboards.
本发明实施例通过指定的触控操作从第一虚拟键盘直接切换至第二虚拟键盘,在第二虚拟键盘输入完成时,自动从第二虚拟键盘直接切换至第一虚拟键盘,避免了多次切换操作,提高了输入操作的简便性,减少系统资源的耗费。The embodiment of the present invention directly switches from the first virtual keyboard to the second virtual keyboard through a specified touch operation, and automatically switches from the second virtual keyboard to the first virtual keyboard directly when the second virtual keyboard input is completed, avoiding multiple The switching operation improves the convenience of input operation and reduces the consumption of system resources.
参照图3,示出了根据本发明一个实施例的一种输入法键盘的切换方法实施例2的步骤流程图,具体可以包括如下步骤:Referring to FIG. 3 , it shows a flow chart of the steps of Embodiment 2 of an input method keyboard switching method according to an embodiment of the present invention, which may specifically include the following steps:
步骤301,在输入法界面中检测到指定的触控操作时,将当前的第一虚拟键盘切换至指定的第二虚拟键盘;Step 301, when a specified touch operation is detected in the input method interface, switch the current first virtual keyboard to the specified second virtual keyboard;
步骤302,在所述第二虚拟键盘中接收到输入信息时,按照所述输入信息查找一个或多个候选项;Step 302, when input information is received in the second virtual keyboard, search for one or more candidates according to the input information;
步骤303,识别在所述第二虚拟键盘中光标焦点对应候选项;Step 303, identifying the candidate corresponding to the cursor focus in the second virtual keyboard;
在候选栏中加载候选项时,可以以光标焦点的方式示意当前选中的候选项。When loading candidates in the candidate bar, the currently selected candidate can be indicated with the focus of the cursor.
例如,如图4所示,在手写键盘中,加载“中”、“巾”、“申”、“冲”等候选项,当前的光标焦点位于“中”。For example, as shown in FIG. 4 , in the handwriting keyboard, the waiting options of "Zhong", "Jing", "Shen" and "Chong" are loaded, and the current cursor focus is located at "Zhong".
步骤304,查询在所述第一虚拟键盘输入所述候选项所需的编码信息;Step 304, querying the coding information required to input the candidate item on the first virtual keyboard;
步骤305,加载所述编码信息;Step 305, loading the encoding information;
由于在接收到上屏指示时,会将第二虚拟键盘切换至第一虚拟键盘,即第二虚拟键盘属于临时性质。Since the second virtual keyboard will be switched to the first virtual keyboard when receiving the on-screen instruction, that is, the second virtual keyboard is temporary.
为了方便用户记住该字在该第一虚拟键盘下的编码信息,本发明实施例可以在针对该光标焦点的候选项加载在第一虚拟键盘输入时所需的编码信息,避免下次输入时进行切换操作。In order to facilitate the user to remember the encoding information of the word under the first virtual keyboard, the embodiment of the present invention can load the encoding information required for input on the first virtual keyboard for the candidate of the cursor focus, so as to avoid Perform switching operation.
例如,如图4所示,若第一虚拟键盘为基于拼音输入的虚拟键盘,则可以针对在光标焦点中的“中”,加载其拼音(编码信息)“zhōngzhòng”;For example, as shown in Figure 4, if the first virtual keyboard is a virtual keyboard based on pinyin input, then its pinyin (coding information) "zhōngzhòng" can be loaded for "中" in the cursor focus;
若第一虚拟键盘为基于双拼输入的虚拟键盘,则可以针对在光标焦点中的“中”,加载其双拼信息(编码信息)“vs”;If the first virtual keyboard is a virtual keyboard based on Shuangpin input, its Shuangpin information (coding information) "vs" can be loaded for "middle" in the cursor focus;
若第一虚拟键盘为基于五笔输入的虚拟键盘,则可以针对在光标焦点中的“中”,加载其五笔信息(编码信息)“k”。If the first virtual keyboard is a virtual keyboard based on Wubi input, its Wubi information (encoding information) "k" can be loaded for "中" in the focus of the cursor.
步骤306,当接收到针对所述候选项的上屏指示时,将当前的第二虚拟键盘切换至所述第一虚拟键盘。Step 306: Switch the current second virtual keyboard to the first virtual keyboard when receiving an on-screen instruction for the candidate item.
本发明实施例在第二虚拟键盘中加载在第一虚拟键盘输入候选项所需的编码信息,避免后续在第一虚拟键盘中输入该候选项时进行虚拟键盘的切换操作,进一步提高了输入操作的简便性。In the embodiment of the present invention, the coding information required for inputting the candidate item on the first virtual keyboard is loaded in the second virtual keyboard, so as to avoid subsequent virtual keyboard switching operations when inputting the candidate item in the first virtual keyboard, and further improve the input operation. simplicity.
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。For the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action order, because according to the embodiment of the present invention , certain steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
参照图5,示出了根据本发明一个实施例的一种输入法键盘的切换装置实施例1的结构框图,具体可以包括如下模块:Referring to FIG. 5 , it shows a structural block diagram of Embodiment 1 of an input method keyboard switching device according to an embodiment of the present invention, which may specifically include the following modules:
第一键盘切换模块501,适于在输入法界面中检测到指定的触控操作时,将当前的第一虚拟键盘切换至指定的第二虚拟键盘;The first keyboard switching module 501 is adapted to switch the current first virtual keyboard to a designated second virtual keyboard when a designated touch operation is detected in the input method interface;
候选项查找模块502,适于在所述第二虚拟键盘中接收到输入信息时,按照所述输入信息查找一个或多个候选项;The candidate item search module 502 is adapted to search for one or more candidate items according to the input information when input information is received in the second virtual keyboard;
第二键盘切换模块503,适于在接收到针对所述候选项的上屏指示时,将当前的第二虚拟键盘切换至所述第一虚拟键盘。The second keyboard switching module 503 is adapted to switch the current second virtual keyboard to the first virtual keyboard when receiving an on-screen instruction for the candidate item.
在具体实现中,所述第一虚拟键盘为非手写键盘,所述第二虚拟键盘为手写键盘In a specific implementation, the first virtual keyboard is a non-handwriting keyboard, and the second virtual keyboard is a handwriting keyboard
其中,所述为非手写键盘包括如下的一种或多种:Wherein, the non-handwriting keyboard includes one or more of the following:
基于拼音的九宫格键盘、基于拼音的全键盘、双拼键盘、五笔键盘。Pinyin-based Jiugongge keyboard, Pinyin-based full keyboard, Shuangpin keyboard, and Wubi keyboard.
在本发明的一种可选实施例中,所述第一键盘切换模块501还可以适于:In an optional embodiment of the present invention, the first keyboard switching module 501 may also be adapted to:
查找指定的第二虚拟键盘;Find the specified second virtual keyboard;
记录所述第一虚拟键盘的键盘标识;record the keyboard identifier of the first virtual keyboard;
在输入法界面中取消所述第一虚拟键盘的加载;Canceling the loading of the first virtual keyboard in the input method interface;
在输入法界面中加载所述第二虚拟键盘。Load the second virtual keyboard in the input method interface.
在本发明的一种可选实施例中,所述第二键盘切换模块503还可以适于:In an optional embodiment of the present invention, the second keyboard switching module 503 may also be adapted to:
读取在先记录的键盘标识;Read the previously recorded keyboard identification;
查找所述键盘标识对应的第一虚拟键盘;Find the first virtual keyboard corresponding to the keyboard identifier;
在输入法界面中取消所述第二虚拟键盘的加载;Canceling the loading of the second virtual keyboard in the input method interface;
在输入法界面中加载所述第一虚拟键盘。The first virtual keyboard is loaded in the input method interface.
在本发明的一种可选实施例中,所述候选项查找模块502还可以适于:In an optional embodiment of the present invention, the candidate item search module 502 may also be adapted to:
在所述第二虚拟键盘中接收到输入信息时,按照所述第二虚拟键盘对应的编码规则、采用所述输入信息查找一个或多个候选项。When input information is received in the second virtual keyboard, the input information is used to search for one or more candidate items according to the encoding rules corresponding to the second virtual keyboard.
参照图6,示出了根据本发明一个实施例的一种输入法键盘的切换装置实施例2的结构框图,具体可以包括如下模块:Referring to FIG. 6 , it shows a structural block diagram of Embodiment 2 of an input method keyboard switching device according to an embodiment of the present invention, which may specifically include the following modules:
第一键盘切换模块601,适于在输入法界面中检测到指定的触控操作时,将当前的第一虚拟键盘切换至指定的第二虚拟键盘;The first keyboard switching module 601 is adapted to switch the current first virtual keyboard to a designated second virtual keyboard when a designated touch operation is detected in the input method interface;
候选项查找模块602,适于在所述第二虚拟键盘中接收到输入信息时,按照所述输入信息查找一个或多个候选项;The candidate item search module 602 is adapted to search for one or more candidate items according to the input information when input information is received in the second virtual keyboard;
候选项识别模块603,适于识别在所述第二虚拟键盘中光标焦点对应候选项;The candidate identification module 603 is adapted to identify the candidate corresponding to the cursor focus in the second virtual keyboard;
编码信息查询模块604,适于查询在所述第一虚拟键盘输入所述候选项所需的编码信息;A coded information query module 604, adapted to query the coded information required to input the candidate item on the first virtual keyboard;
编码信息加载模块605,适于加载所述编码信息;An encoding information loading module 605, adapted to load the encoding information;
第二键盘切换模块606,适于在接收到针对所述候选项的上屏指示时,将当前的第二虚拟键盘切换至所述第一虚拟键盘。The second keyboard switching module 606 is adapted to switch the current second virtual keyboard to the first virtual keyboard when receiving an on-screen indication for the candidate item.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的输入法键盘的切换设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to realize some or all functions of some or all components in the input method keyboard switching device according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明实施例公开了A1、一种输入法键盘的切换方法,包括:The embodiment of the present invention discloses A1, a switching method of an input method keyboard, comprising:
在输入法界面中检测到指定的触控操作时,将当前的第一虚拟键盘切换至指定的第二虚拟键盘;When a specified touch operation is detected in the input method interface, switch the current first virtual keyboard to the specified second virtual keyboard;
在所述第二虚拟键盘中接收到输入信息时,按照所述输入信息查找一个或多个候选项;When input information is received in the second virtual keyboard, search for one or more candidate items according to the input information;
当接收到针对所述候选项的上屏指示时,将当前的第二虚拟键盘切换至所述第一虚拟键盘。When receiving an on-screen instruction for the candidate item, switch the current second virtual keyboard to the first virtual keyboard.
A2、如A1所述的方法,A2, the method as described in A1,
所述第一虚拟键盘为非手写键盘,所述第二虚拟键盘为手写键盘The first virtual keyboard is a non-handwriting keyboard, and the second virtual keyboard is a handwriting keyboard
其中,所述为非手写键盘包括如下的一种或多种:Wherein, the non-handwriting keyboard includes one or more of the following:
基于拼音的九宫格键盘、基于拼音的全键盘、双拼键盘、五笔键盘。Pinyin-based Jiugongge keyboard, Pinyin-based full keyboard, Shuangpin keyboard, and Wubi keyboard.
A3、如A1所述的方法,所述将当前的第一虚拟键盘切换至指定的第二虚拟键盘的步骤包括:A3. The method as described in A1, the step of switching the current first virtual keyboard to the designated second virtual keyboard includes:
查找指定的第二虚拟键盘;Find the specified second virtual keyboard;
记录所述第一虚拟键盘的键盘标识;record the keyboard identifier of the first virtual keyboard;
在输入法界面中取消所述第一虚拟键盘的加载;Canceling the loading of the first virtual keyboard in the input method interface;
在输入法界面中加载所述第二虚拟键盘。Load the second virtual keyboard in the input method interface.
A4、如A1或A3所述的方法,所述将当前的第二虚拟键盘切换至所述第一虚拟键盘的步骤包括:A4. The method described in A1 or A3, the step of switching the current second virtual keyboard to the first virtual keyboard includes:
读取在先记录的键盘标识;Read the previously recorded keyboard identification;
查找所述键盘标识对应的第一虚拟键盘;Find the first virtual keyboard corresponding to the keyboard identifier;
在输入法界面中取消所述第二虚拟键盘的加载;Canceling the loading of the second virtual keyboard in the input method interface;
在输入法界面中加载所述第一虚拟键盘。The first virtual keyboard is loaded in the input method interface.
A5、如A1或A2或A3或A4所述的方法,所述在所述第二虚拟键盘中接收到输入信息时,按照所述输入信息查找一个或多个候选项的步骤包括:A5. The method as described in A1 or A2 or A3 or A4, when the input information is received in the second virtual keyboard, the step of searching for one or more alternatives according to the input information includes:
在所述第二虚拟键盘中接收到输入信息时,按照所述第二虚拟键盘对应的编码规则、采用所述输入信息查找一个或多个候选项。When input information is received in the second virtual keyboard, the input information is used to search for one or more candidate items according to the encoding rules corresponding to the second virtual keyboard.
A6、如A1或A2或A3或A4所述的方法,在所述当接收到针对所述候选项的上屏指示时,在输入法应用中切换至所述第一虚拟键盘,以替换所述第二虚拟键盘的步骤之前,所述方法还包括:A6. The method as described in A1 or A2 or A3 or A4, when the on-screen indication for the candidate is received, switch to the first virtual keyboard in the input method application to replace the Before the step of the second virtual keyboard, the method also includes:
识别在所述第二虚拟键盘中光标焦点对应候选项;identifying cursor focus corresponding candidates in the second virtual keyboard;
查询在所述第一虚拟键盘输入所述候选项所需的编码信息;Querying the coding information required for inputting the candidate item on the first virtual keyboard;
加载所述编码信息。Load the encoding information.
本发明实施例还公开了B7、一种输入法键盘的切换装置,包括:The embodiment of the present invention also discloses B7, a switching device for an input method keyboard, comprising:
第一键盘切换模块,适于在输入法界面中检测到指定的触控操作时,将当前的第一虚拟键盘切换至指定的第二虚拟键盘;The first keyboard switching module is adapted to switch the current first virtual keyboard to a designated second virtual keyboard when a designated touch operation is detected in the input method interface;
候选项查找模块,适于在所述第二虚拟键盘中接收到输入信息时,按照所述输入信息查找一个或多个候选项;The candidate item search module is adapted to search for one or more candidate items according to the input information when input information is received in the second virtual keyboard;
第二键盘切换模块,适于在接收到针对所述候选项的上屏指示时,将当前的第二虚拟键盘切换至所述第一虚拟键盘。The second keyboard switching module is adapted to switch the current second virtual keyboard to the first virtual keyboard when receiving the on-screen instruction for the candidate item.
B8、如B7所述的装置,B8. The device as described in B7,
所述第一虚拟键盘为非手写键盘,所述第二虚拟键盘为手写键盘The first virtual keyboard is a non-handwriting keyboard, and the second virtual keyboard is a handwriting keyboard
其中,所述为非手写键盘包括如下的一种或多种:Wherein, the non-handwriting keyboard includes one or more of the following:
基于拼音的九宫格键盘、基于拼音的全键盘、双拼键盘、五笔键盘。Pinyin-based Jiugongge keyboard, Pinyin-based full keyboard, Shuangpin keyboard, and Wubi keyboard.
B9、如B7所述的装置,所述第一键盘切换模块还适于:B9, the device as described in B7, the first keyboard switching module is also suitable for:
查找指定的第二虚拟键盘;Find the specified second virtual keyboard;
记录所述第一虚拟键盘的键盘标识;record the keyboard identifier of the first virtual keyboard;
在输入法界面中取消所述第一虚拟键盘的加载;Canceling the loading of the first virtual keyboard in the input method interface;
在输入法界面中加载所述第二虚拟键盘。Load the second virtual keyboard in the input method interface.
B10、如B7或B9所述的装置,所述第二键盘切换模块还适于:B10, the device as described in B7 or B9, the second keyboard switching module is also suitable for:
读取在先记录的键盘标识;Read the previously recorded keyboard identification;
查找所述键盘标识对应的第一虚拟键盘;Find the first virtual keyboard corresponding to the keyboard identifier;
在输入法界面中取消所述第二虚拟键盘的加载;Canceling the loading of the second virtual keyboard in the input method interface;
在输入法界面中加载所述第一虚拟键盘。The first virtual keyboard is loaded in the input method interface.
B11、如B7或B8或B9或B10所述的装置,所述候选项查找模块还适于:B11, the device as described in B7 or B8 or B9 or B10, the candidate item search module is also suitable for:
在所述第二虚拟键盘中接收到输入信息时,按照所述第二虚拟键盘对应的编码规则、采用所述输入信息查找一个或多个候选项。When input information is received in the second virtual keyboard, the input information is used to search for one or more candidate items according to the encoding rules corresponding to the second virtual keyboard.
B12、如B7或B8或B9或B10所述的装置,还包括:B12. The device as described in B7 or B8 or B9 or B10, further comprising:
候选项识别模块,适于识别在所述第二虚拟键盘中光标焦点对应候选项;A candidate identification module, adapted to identify candidates corresponding to the cursor focus in the second virtual keyboard;
编码信息查询模块,适于查询在所述第一虚拟键盘输入所述候选项所需的编码信息;A coded information query module, adapted to query the coded information required to input the candidate item on the first virtual keyboard;
编码信息加载模块,适于加载所述编码信息。The encoding information loading module is suitable for loading the encoding information.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510812035.XA CN105468256A (en) | 2015-11-20 | 2015-11-20 | Input method keyboard switching method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510812035.XA CN105468256A (en) | 2015-11-20 | 2015-11-20 | Input method keyboard switching method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105468256A true CN105468256A (en) | 2016-04-06 |
Family
ID=55606018
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510812035.XA Pending CN105468256A (en) | 2015-11-20 | 2015-11-20 | Input method keyboard switching method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105468256A (en) |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106020699A (en) * | 2016-05-25 | 2016-10-12 | 北京小米移动软件有限公司 | Switching method, and device for input method and terminal |
| CN106095222A (en) * | 2016-05-31 | 2016-11-09 | 珠海市魅族科技有限公司 | Input interface displaying method and device |
| CN106095308A (en) * | 2016-06-02 | 2016-11-09 | 努比亚技术有限公司 | Mobile terminal and the method for dummy keyboard false-touch prevention |
| CN106648437A (en) * | 2016-12-30 | 2017-05-10 | 珠海市魅族科技有限公司 | Keyboard switching method and device |
| CN106873802A (en) * | 2017-03-31 | 2017-06-20 | 无线生活(杭州)信息科技有限公司 | Keyboard operation method and device based on electric business behavior |
| CN107436711A (en) * | 2016-05-27 | 2017-12-05 | 研龙科技有限公司 | input method switching management method |
| CN108509061A (en) * | 2018-03-28 | 2018-09-07 | 努比亚技术有限公司 | A kind of method, apparatus and computer readable storage medium of auxiliary input |
| CN111090340A (en) * | 2019-12-24 | 2020-05-01 | 科大讯飞股份有限公司 | Input method candidate result display method, related equipment and readable storage medium |
| CN111190529A (en) * | 2018-11-15 | 2020-05-22 | 鸿合科技股份有限公司 | Keyboard input method and device and electronic equipment |
| CN112083841A (en) * | 2020-08-19 | 2020-12-15 | 北京小米移动软件有限公司 | Information input method, device and storage medium |
| CN113515226A (en) * | 2021-05-12 | 2021-10-19 | 南京铉盈网络科技有限公司 | A Soft Keyboard Based on Integrated Input Method |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1991700A (en) * | 2005-12-28 | 2007-07-04 | 中兴通讯股份有限公司 | Mobile terminal having keyboard and hand-write synergic input function |
| CN101261545A (en) * | 2008-04-25 | 2008-09-10 | 中兴通讯股份有限公司 | Terminal equipment and its input method |
| CN103034422A (en) * | 2012-12-14 | 2013-04-10 | 北京小米科技有限责任公司 | Keyboard display method and device |
| CN103218168A (en) * | 2013-04-09 | 2013-07-24 | 广东欧珀移动通信有限公司 | Input method switching method and device |
| US20140015755A1 (en) * | 2012-07-10 | 2014-01-16 | Elan Microelectronics Corporation | Method and apparatus for handwriting input using a touchpad |
| CN104219586A (en) * | 2014-08-21 | 2014-12-17 | 北京搜狗科技发展有限公司 | Input device and input method applied to smart televisions |
| CN105045411A (en) * | 2015-08-27 | 2015-11-11 | 广东欧珀移动通信有限公司 | Object control method and terminal |
-
2015
- 2015-11-20 CN CN201510812035.XA patent/CN105468256A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1991700A (en) * | 2005-12-28 | 2007-07-04 | 中兴通讯股份有限公司 | Mobile terminal having keyboard and hand-write synergic input function |
| CN101261545A (en) * | 2008-04-25 | 2008-09-10 | 中兴通讯股份有限公司 | Terminal equipment and its input method |
| US20140015755A1 (en) * | 2012-07-10 | 2014-01-16 | Elan Microelectronics Corporation | Method and apparatus for handwriting input using a touchpad |
| CN103034422A (en) * | 2012-12-14 | 2013-04-10 | 北京小米科技有限责任公司 | Keyboard display method and device |
| CN103218168A (en) * | 2013-04-09 | 2013-07-24 | 广东欧珀移动通信有限公司 | Input method switching method and device |
| CN104219586A (en) * | 2014-08-21 | 2014-12-17 | 北京搜狗科技发展有限公司 | Input device and input method applied to smart televisions |
| CN105045411A (en) * | 2015-08-27 | 2015-11-11 | 广东欧珀移动通信有限公司 | Object control method and terminal |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106020699B (en) * | 2016-05-25 | 2019-07-19 | 北京小米移动软件有限公司 | An input method switching method, device and terminal |
| CN106020699A (en) * | 2016-05-25 | 2016-10-12 | 北京小米移动软件有限公司 | Switching method, and device for input method and terminal |
| CN107436711A (en) * | 2016-05-27 | 2017-12-05 | 研龙科技有限公司 | input method switching management method |
| CN106095222A (en) * | 2016-05-31 | 2016-11-09 | 珠海市魅族科技有限公司 | Input interface displaying method and device |
| CN106095308A (en) * | 2016-06-02 | 2016-11-09 | 努比亚技术有限公司 | Mobile terminal and the method for dummy keyboard false-touch prevention |
| CN106095308B (en) * | 2016-06-02 | 2019-05-31 | 努比亚技术有限公司 | The method of mobile terminal and dummy keyboard false-touch prevention |
| CN106648437A (en) * | 2016-12-30 | 2017-05-10 | 珠海市魅族科技有限公司 | Keyboard switching method and device |
| CN106873802A (en) * | 2017-03-31 | 2017-06-20 | 无线生活(杭州)信息科技有限公司 | Keyboard operation method and device based on electric business behavior |
| CN108509061A (en) * | 2018-03-28 | 2018-09-07 | 努比亚技术有限公司 | A kind of method, apparatus and computer readable storage medium of auxiliary input |
| CN111190529A (en) * | 2018-11-15 | 2020-05-22 | 鸿合科技股份有限公司 | Keyboard input method and device and electronic equipment |
| CN111190529B (en) * | 2018-11-15 | 2024-04-30 | 鸿合科技股份有限公司 | Keyboard input method and device and electronic equipment |
| CN111090340A (en) * | 2019-12-24 | 2020-05-01 | 科大讯飞股份有限公司 | Input method candidate result display method, related equipment and readable storage medium |
| CN111090340B (en) * | 2019-12-24 | 2024-02-13 | 科大讯飞股份有限公司 | Input method candidate result display method, related equipment and readable storage medium |
| CN112083841A (en) * | 2020-08-19 | 2020-12-15 | 北京小米移动软件有限公司 | Information input method, device and storage medium |
| CN113515226A (en) * | 2021-05-12 | 2021-10-19 | 南京铉盈网络科技有限公司 | A Soft Keyboard Based on Integrated Input Method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105468256A (en) | Input method keyboard switching method and device | |
| US11150739B2 (en) | Chinese character entry via a Pinyin input method | |
| JP5813780B2 (en) | Electronic device, method and program | |
| US20150234938A1 (en) | Method and electronic terminal for searching for contact in directory | |
| JP6426417B2 (en) | Electronic device, method and program | |
| US20120246591A1 (en) | Process and Apparatus for Selecting an Item From a Database | |
| US9588678B2 (en) | Method of operating electronic handwriting and electronic device for supporting the same | |
| US20140089841A1 (en) | Device and method for providing application interface based on writing input | |
| JP6092462B2 (en) | Electronic device, method and program | |
| CN103076980B (en) | Search terms display packing and device | |
| US10049114B2 (en) | Electronic device, method and storage medium | |
| CN106843660B (en) | Data processing method and equipment thereof | |
| EP2909702B1 (en) | Contextually-specific automatic separators | |
| CN101321337A (en) | Mobile communication device and operation method thereof | |
| JP6430198B2 (en) | Electronic device, method and program | |
| JP2016085512A (en) | Electronic equipment, method, and program | |
| JP2012098891A (en) | Information processing system and information processing method | |
| CN104615268B (en) | A kind of loading method and device of candidate's text based on input | |
| CN112698734A (en) | Candidate word display method and device and electronic equipment | |
| US11086410B2 (en) | Apparatus for text entry and associated methods | |
| CN114356118A (en) | Character input method, device, electronic equipment and medium | |
| JP6430199B2 (en) | Electronic device, method and program | |
| JP6062487B2 (en) | Electronic device, method and program | |
| CN105306653A (en) | Method and device for creating contact information and method and device for searching contact information | |
| CN104598061B (en) | Input unit and its input method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160406 |