WO2012062064A1 - 一种生成软键盘的方法、装置及终端设备 - Google Patents

一种生成软键盘的方法、装置及终端设备 Download PDF

Info

Publication number
WO2012062064A1
WO2012062064A1 PCT/CN2011/071143 CN2011071143W WO2012062064A1 WO 2012062064 A1 WO2012062064 A1 WO 2012062064A1 CN 2011071143 W CN2011071143 W CN 2011071143W WO 2012062064 A1 WO2012062064 A1 WO 2012062064A1
Authority
WO
WIPO (PCT)
Prior art keywords
soft keyboard
shape
configuration file
function
request
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.)
Ceased
Application number
PCT/CN2011/071143
Other languages
English (en)
French (fr)
Inventor
曾一庭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to EP11839468.3A priority Critical patent/EP2538314A4/en
Priority to US13/634,573 priority patent/US20130176226A1/en
Publication of WO2012062064A1 publication Critical patent/WO2012062064A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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/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
    • 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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a terminal device for generating a soft keyboard. Background technique
  • full-touch screen mobile terminals have been favored by more and more users due to their convenience and bright appearance, and have become a development trend of mobile terminals.
  • a full touch screen mobile terminal does not have a physical keyboard in the conventional sense, and all of its input relies on a soft keyboard on the touch screen.
  • the soft keyboard on the full touch screen mobile terminal is pre-set by the mobile terminal manufacturer, and there is no selectivity.
  • the use brings great limitations, for example, some users have large palms.
  • the soft keyboard buttons preset by the manufacturer are small, resulting in the problem that the user's keys are inaccurate and the operation is too much wrong; for example, some users have their own key operation habits, and the soft keyboard preset by the terminal manufacturer cannot satisfy the user.
  • some mobile terminal games are configured on the mobile terminal, and many mobile terminal games have their own specific operation buttons, and the soft keyboard preset by the terminal manufacturer often cannot provide these various special buttons.
  • the invention provides a method, a device and a terminal device for generating a soft keyboard for improving the versatility of the terminal device.
  • the present invention provides a method of generating a soft keyboard, the method comprising: Receiving a request to implement a custom soft keyboard;
  • the present invention provides an apparatus for generating a soft keyboard, the apparatus comprising: a receiving unit, a configuration unit, a function configuration unit, and a generating unit;
  • a receiving unit configured to receive a request for implementing a custom soft keyboard
  • a shape configuration unit configured to generate a shape configuration file of the soft keyboard according to the soft keyboard shape information in the request
  • a function configuration unit configured to determine, according to the corresponding relationship between the saved function event and the identification code, an identification code corresponding to the key function event in the request, and generate a function information configuration file of the soft keyboard according to the determined identification code;
  • a generating unit configured to generate a customized soft keyboard according to the shape profile and the function information profile.
  • the present invention further provides a terminal device, the terminal device comprising: a receiving unit, a shape configuration unit, a function configuration unit, and a generating unit;
  • a receiving unit configured to receive a request for implementing a custom soft keyboard
  • a shape configuration unit configured to generate a shape configuration file of the soft keyboard according to the soft keyboard shape information in the request
  • a function configuration unit configured to determine, according to the corresponding relationship between the saved function event and the identification code, an identification code corresponding to the key function event in the request, and generate a function information configuration file of the soft keyboard according to the determined identification code;
  • a generating unit configured to generate a self according to the shape profile and the function information profile Defined soft keyboard.
  • the present invention after receiving the request for implementing the custom soft keyboard, generating a shape configuration file of the soft keyboard according to the soft keyboard shape information in the request, and determining the request in the request according to the corresponding relationship between the saved function event and the identification code The identification code corresponding to the button function event, and generating a function information configuration file of the soft keyboard according to the determined identification code, and generating a customized soft keyboard according to the shape configuration file and the function information configuration file.
  • the soft keyboard shape information in the request for realizing the soft keyboard is different, the generated soft keyboard is also different; the key function events in the request for realizing the soft keyboard are different, and the identification code of each button in the soft keyboard is also Differently, the called function events are different. Therefore, different soft keyboards can be generated according to different user requirements or different application scenarios, which breaks through a bottleneck of the rapid development of the mobile terminal, and greatly improves the versatility of the terminal device.
  • FIG. 1 is a flowchart of generating a soft keyboard in an embodiment of the present invention
  • FIG. 2 is a flowchart of generating a customized soft keyboard soft keyboard according to an embodiment of the present invention
  • FIG. 3 is a structural diagram of an apparatus for generating a soft keyboard according to an embodiment of the present invention. detailed description
  • the terminal device has the function of a customized soft keyboard, that is, according to the received request for implementing the customized soft keyboard, two configuration files of the soft keyboard are generated, including: a shape configuration file of the soft keyboard and a function information configuration file. .
  • the soft keyboard is generated by the profile configuration file, and after clicking a point on the touch screen of the terminal device, the button corresponding to the touch point can be determined through the profile configuration file, and then the function code configuration file is used to determine the identifier code corresponding to the button.
  • the function event corresponding to the identification code is called to complete the corresponding operation, thereby realizing the use of the customized soft keyboard.
  • a process of generating a soft keyboard includes the following steps: Step 101: Receive a request to implement a custom soft keyboard.
  • the terminal device provides a soft keyboard design interface, so that after entering the soft keyboard design interface, the request for implementing the custom soft keyboard can be initiated to the terminal device, that is, the terminal device receives the request for implementing the customized soft keyboard.
  • Requests to implement a custom soft keyboard include: Soft keyboard shape information and key function events.
  • the soft keyboard shape information includes shape information describing a bottom panel of the soft keyboard, and shape information describing a key in the soft keyboard; the key function event includes information describing a function of the key.
  • the bottom panel of the soft keyboard is required to be rectangular, including 40 buttons, some of which have a circular shape, and some of which have a rectangular shape.
  • the button (BUTTON) 1 has the function of inputting the letter A
  • the BUTTON2 has the carriage return function
  • the BUTTON3 has the function of moving to the right
  • the BUTTON4 has the function of moving to the left -
  • the terminal device receives the realization of the custom soft keyboard.
  • the request includes soft keyboard shape information describing the above information, as well as key function events.
  • one button may have one, two, or multiple function events, that is, one button may correspond to one, two, or multiple function events.
  • Step 102 Generate a shape configuration file of the soft keyboard according to the soft keyboard shape information in the request.
  • the shape profile of the generated soft keyboard includes: a backplane panel configuration file that generates a soft keyboard and a key configuration file for each key in the soft keyboard.
  • Requests to implement a custom soft keyboard include: Bottom panel parameters and shape parameters for each button.
  • the bottom panel parameters include: the shape, size, coordinate position of the bottom panel, and one or more of the background images.
  • the shape parameters of the button include: the shape, size, coordinate position of the button, and one or more of the background images.
  • the shape is first generated according to the parameters of the backplane panel in the request to implement the custom soft keyboard.
  • the backplane panel configuration file in the configuration file includes: saving the backplane panel parameters to the soft keyboard shape configuration file; and then generating the keys in the shape configuration file according to the shape parameters of each button in the request for implementing the customized soft keyboard
  • the configuration file includes: Saves the shape parameters of each button to the soft keyboard shape configuration file.
  • the parameters of the backplane panel in the request to define the soft keyboard include: coordinates (0, 0), width 240, height 120, then the corresponding bottom panel configuration file of the soft keyboard includes: FLAG: BOTTOM_PANEL/SHAPE: RECT/WIDTH: 240 /HEIGHT: 120/POS_X:
  • This configuration file Draw a rectangle with a width of 240 pixels and a height of 120 pixels on the screen with coordinates (0, 0) as the bottom panel of the soft keyboard.
  • the foregoing is only one format of the configuration file, but the embodiment of the present invention is not limited thereto, and other configuration file formats are also included.
  • Each button configuration file is similar to this, and it is not exhaustive.
  • the parameters of the bottom panel and the shape parameters of each button in the request for realizing the soft keyboard may be directly input by the user, or may be input by the user according to the option provided by the terminal device.
  • Step 103 Determine, according to the correspondence between the saved function event and the identification code, an identification code corresponding to the key function event in the request for implementing the customized soft keyboard.
  • the corresponding relationship between the function event and the identification code is pre-configured in the operating system of the terminal device, that is, different operating systems, the corresponding relationship between the function event and the identification code is different, which is already in the operating system of the terminal device.
  • the setting is good, that is, the terminal device saves the correspondence between the function event and the identification code.
  • the correspondence between the function event and the identification code is a one-to-one relationship.
  • Functional events in the terminal device include information describing the function of the button, as well as executable API functions.
  • the terminal device saves the correspondence between the function event and the identification code. Therefore, after the profile configuration file of the soft keyboard is generated, the identifier corresponding to each button function event in the request for implementing the custom soft keyboard may be determined according to the saved relationship. For example, when the terminal device uses the BREW operating system, the corresponding relationship between the configured function events and the identification code is as shown in Table 1, that is, the terminal device saves the corresponding relationship.
  • the shape configuration file of the soft keyboard has been generated in the above steps, so according to Table 1, the identification code corresponding to the key function event of each button is found, for example: in the request for implementing the custom soft keyboard
  • the button function events include: BUTTON4 has the function of shifting to the left, that is, the function event is AVK_LEFT, then the corresponding identification code is determined according to Table 1: FUNCTION_LEFT.
  • Step 104 Generate a function information configuration file according to the identification code corresponding to the determined key function event.
  • each key, the key function event and the corresponding identification code are written into the function information configuration file, that is, the corresponding function information configuration file is generated.
  • the key function events in the request to implement the custom soft keyboard include: When the BUTTON-4 button is clicked for the first time, the left shift function will be implemented. In 300 milliseconds, click this button again.
  • Implement the function of inputting character A That is, BUTTON-4 corresponds to two functional events, including: AVK-LEFT, and AVK-A.
  • the corresponding identification codes are: FUNCTION-LEFT, and FUNCTION-A.
  • the generated function information configuration file include: FLAG: BUTTON_4/TIME: 300/FUNCTON: FU CTION_LEFT/FU CTO N: FU CTION_A.
  • the function information configuration file includes: a button, a button function event, and a correspondence relationship of the identification code.
  • Step 105 4 Generate a customized soft keyboard according to the shape profile and function information profile.
  • the process of generating a customized soft keyboard includes:
  • Step 201 Read the shape configuration file of the soft keyboard and draw the corresponding soft keyboard.
  • the shape profile of the soft keyboard includes: the bottom panel configuration file of the soft keyboard and the key configuration file of each button in the soft keyboard. Therefore, first draw the bottom plate of the software disk according to the bottom panel configuration file of the read soft keyboard.
  • the panel for example: the backplane panel configuration file is: FLAG: BOTTOM_PANEL/SHAPE: RECT/WIDTH: 240/HEIGHT: 120/POS_X:
  • Step 202 Determine the current button corresponding to the touch point according to the shape configuration file of the soft keyboard.
  • the shape profile is placed according to the soft keyboard, and the current button corresponding to the touch point is determined.
  • the key configuration file of the soft keyboard records the coordinate position, size and other information corresponding to each button. Therefore, after the coordinates and size of the touch point are acquired, the corresponding current button can be found in the shape configuration file, that is, the corresponding correspondence is determined.
  • the current button Step 203: Determine an identification code corresponding to the current button according to the function information configuration file of the soft keyboard.
  • Each button, key function event and corresponding identification code are recorded in the function information configuration file, that is, the function information configuration file includes: a button, a button function event, and a correspondence relationship of the identification code, and in step 202, it has been determined.
  • the current button is pressed, so that the identification code of the current button can be determined according to the relationship.
  • the identification code corresponding to the current button can be one, two, or more.
  • Step 204 Call a function event corresponding to the determined identifier code to implement a corresponding button operation.
  • the identification code has been determined, and the operating system of the terminal device automatically finds the function event corresponding to the identification code according to the corresponding relationship between the configured function event and the identification code, and then calls the function event found.
  • the function event includes an executable API function, and the operating system of the terminal device can call these executable API functions to implement the corresponding key operation, that is, realize the key function of the soft keyboard.
  • a soft keyboard not only a soft keyboard but also a generated soft keyboard can be edited and used.
  • the shape profile and function information configuration file of the soft keyboard After the shape profile and function information configuration file of the soft keyboard have been generated, it also includes:
  • the editor includes: modify, delete, or boost port.
  • the shape configuration file of the soft keyboard is generated first, and then the function information configuration file of the soft keyboard is generated.
  • the embodiment of the present invention is not limited thereto, and the function information configuration file of the soft keyboard may be formed.
  • the shape profile of the keyboard is not limited thereto, and the function information configuration file of the soft keyboard may be formed.
  • the method includes: a receiving unit 100, a shape configuring unit 200, a function configuring unit 300, and generating Unit 400. among them,
  • the receiving unit 100 is configured to receive a request for implementing a custom soft keyboard.
  • the shape configuration unit 200 is configured to generate a shape profile of the soft keyboard according to the soft keyboard shape information in the request.
  • the function configuration unit 300 is configured to determine an identification code corresponding to the key function event in the request according to the corresponding relationship between the saved function event and the identification code, and generate a function information configuration file of the soft keyboard according to the determined identification code.
  • the generating unit 400 is configured to generate a customized soft keyboard according to the shape profile and the function information profile.
  • the shape configuration unit 200 includes:
  • the backplane panel configuration subunit is configured to generate a backplane panel configuration file in the shape profile according to the floor panel parameters in the request.
  • the button configuration subunit is configured to generate a button configuration file in the shape profile according to the shape parameter of each button in the request.
  • the generating unit 400 includes:
  • Determining a subunit configured to determine an identification code corresponding to the current button according to a function information configuration file of the soft keyboard.
  • the subunit is called to invoke a function event corresponding to the identification code to implement a key function of the soft keyboard.
  • the device for implementing a custom soft keyboard further includes:
  • the editing unit is configured to edit the shape configuration file according to the soft keyboard shape information in the received soft keyboard editing request, and edit the function information configuration file according to the key function event in the received soft keyboard editing request.
  • the apparatus for implementing a custom soft keyboard in the embodiment of the present invention can be applied to a terminal device.
  • the terminal device includes: a mobile terminal, for example: a mobile phone; or an intelligent terminal, such as an ATM.
  • the shape configuration file of the soft keyboard is generated according to the shape information of the soft keyboard in the request, and the request is determined according to the correspondence between the saved function event and the identification code.
  • the identification code corresponding to the key function event in the key function, and the function information configuration file of the soft keyboard is generated according to the determined identification code, so that when used, the soft keyboard is generated through the shape configuration file, and after clicking a point on the touch screen of the terminal device, the The shape configuration file determines the current button corresponding to the touch point, and then, through the function information configuration file, determines the identification code corresponding to the button, thereby calling the function event corresponding to the identification code, completing the corresponding operation, thereby realizing the custom soft keyboard
  • the use, visible, the soft keyboard shape information in the request is different, the generated soft keyboard shape, the button position is also different, the key function event in the request to implement the custom soft keyboard is different, the identification code of each button in the soft keyboard is also Different, the called function

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)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明公开了一种生成软键盘的方法,装置及终端设备,用以提高终端设备的通用性。该方法包括:接收实现自定义软键盘的请求;根据所述请求中的软键盘外形信息,生成软键盘的外形配置文件;根据保存的功能事件与标识码的对应关系,确定所述请求中的按键功能事件对应的标识码,并根据确定的标识码生成软键盘的功能信息配置文件;根据所述外形配置文件和功能信息配置文件,生成自定义的软键盘。

Description

一种生成软键盘的方法、 装置及终端设备 技术领域
本发明涉及通讯技术领域, 尤其涉及一种生成软键盘的方法、 装置及 终端设备。 背景技术
随着移动通信技术和移动终端制造技术的发展, 全触摸屏移动终端由 于其使用便捷性和亮丽的外观受到越来越多用户的喜欢, 成为移动终端的 一个发展趋势。 一般, 全触摸屏移动终端不带传统意义上的物理键盘, 其 所有的输入都依靠触摸屏幕上的软键盘实现。
目前, 全触摸屏移动终端上的软键盘都是移动终端生产厂家预先设置 好的, 没有可选择性, 这样, 在使用上就带来了很大的局限性, 比如, 某 些用户的手掌很大, 而厂家预置的软键盘按钮较小, 导致出现用户按键不 准, 误操作太多的问题; 再比如, 某些用户有自己的按键操作习惯, 而终 端厂家预置的软键盘不能满足用户的需要; 另外, 移动终端上配置了一些 移动终端游戏, 并且, 很多移动终端游戏都有自己特定的操作按键, 而终 端厂家预置的软键盘往往不能提供这些各种各样的特殊按键。
可见, 现有的全触摸屏移动终端上配置的软键盘有一定的局限性, 其 通用性不好, 成为全触摸屏移动终端高速发展的一个瓶颈。 发明内容
本发明提供一种生成软键盘的方法, 装置及终端设备, 用以提高终端 设备的通用性。
本发明提供一种生成软键盘的方法, 该方法包括: 接收实现自定义软键盘的请求;
根据所述请求中的软键盘外形信息, 生成软键盘的外形配置文件; 根据保存的功能事件与标识码的对应关系, 确定所述请求中的按键功 能事件对应的标识码, 并根据确定的标识码生成软键盘的功能信息配置文 件;
才艮据所述外形配置文件和功能信息配置文件, 生成自定义的软键盘。 本发明提供一种生成软键盘的装置, 该装置包括: 接收单元、 外形配 置单元、 功能配置单元和生成单元; 其中,
接收单元, 用于接收实现自定义软键盘的请求;
外形配置单元, 用于根据所述请求中的软键盘外形信息, 生成软键盘 的外形配置文件;
功能配置单元, 用于根据保存的功能事件与标识码的对应关系, 确定 所述请求中的按键功能事件对应的标识码, 并根据确定的标识码生成软键 盘的功能信息配置文件;
生成单元, 用于根据所述外形配置文件和功能信息配置文件, 生成自 定义的软键盘。
本发明还提供一种终端设备, 该终端设备包括: 接收单元、 外形配置 单元、 功能配置单元和生成单元; 其中,
接收单元, 用于接收实现自定义软键盘的请求;
外形配置单元, 用于根据所述请求中的软键盘外形信息, 生成软键盘 的外形配置文件;
功能配置单元, 用于根据保存的功能事件与标识码的对应关系, 确定 所述请求中的按键功能事件对应的标识码, 并根据确定的标识码生成软键 盘的功能信息配置文件;
生成单元, 用于根据所述外形配置文件和功能信息配置文件, 生成自 定义的软键盘。
本发明中, 接收到实现自定义软键盘的请求后, 根据请求中的软键盘 外形信息, 生成软键盘的外形配置文件, 根据保存的功能事件与标识码的 对应关系, 确定所述请求中的按键功能事件对应的标识码, 并根据确定的 标识码生成软键盘的功能信息配置文件, 并根据所述外形配置文件和功能 信息配置文件, 生成自定义的软键盘。 可见, 当实现自定义软键盘的请求 中的软键盘外形信息不同, 生成的软键盘也不同; 实现自定义软键盘的请 求中的按键功能事件不同, 软键盘中的每个按键的标识码也不同, 调用的 功能事件也不同, 因此, 可根据不同的用户需求, 或者不同的应用场景, 生成不同的软键盘, 突破了移动终端高速发展的一个瓶颈, 极大提高了终 端设备的通用性。 附图说明
图 1为本发明实施例中生成软键盘的流程图;
图 2为本发明实施例中生成自定义的软键盘软键盘的流程图; 图 3为本发明实施例中生成软键盘的装置的结构图。 具体实施方式
本发明实施例中, 终端设备具有自定义软键盘的功能, 即根据接收的 实现自定义软键盘的请求, 生成软键盘的两个配置文件, 包括: 软键盘的 外形配置文件和功能信息配置文件。 这样, 使用时, 通过外形配置文件生 成软键盘, 点击终端设备触摸屏上某点之后, 即可通过外形配置文件确定 触摸点对应的按键, 然后, 通过功能信息配置文件, 确定该按键对应的标 识码, 从而调用该标识码对应的功能事件, 完成相应的操作, 从而, 实现 了自定义软键盘的使用。
参见图 1 , 本发明实施例中, 生成软键盘的过程包括以下步骤: 步骤 101 : 接收实现自定义软键盘的请求。
终端设备提供软键盘设计界面, 这样, 进入该软键盘设计界面后, 即 可向终端设备发起实现自定义软键盘的请求, 即终端设备接收到实现自定 义软键盘的请求。 实现自定义软键盘的请求包括: 软键盘外形信息和按键 功能事件。
其中, 软键盘外形信息包括描述软键盘的底板面板的外形信息, 以及 描述软键盘中按键的外形信息; 按键功能事件包括描述按键的功能的信息。 不同的用户需求, 或者不同的应用场景, 对应的实现自定义软键盘的请求 也不同。 例如: 当前的应用场景中要求软键盘的底板面板为矩形, 包括 40 个按键, 有的按键的形状为圓形, 有的按键的形状为矩形。 其中, 按键 ( BUTTON )1具有输入字母 A的功能, BUTTON2具有回车功能, BUTTON3 具有向右移动的功能, BUTTON4具有向左移动的功能— -, 那么, 终端设备 接收的实现自定义软键盘的请求中包括了描述上述信息的软键盘外形信 息, 以及按键功能事件。
这里, 每个按键只有一个功能事件, 但是本发明实施例不限于此, 一 个按键可以具有一个, 两个, 或多个功能事件, 即一个按键可以对应一个, 两个, 或多个功能事件。
步骤 102:根据请求中的软键盘外形信息,生成软键盘的外形配置文件。 这里, 生成软键盘的外形配置文件包括: 生成软键盘的底板面板配置 文件以及软键盘中的每个按键的按键配置文件。
实现自定义软键盘的请求包括: 底边面板参数以及每个按键的外形参 数。 其中, 底边面板参数包括: 底边面板的形状、 大小, 坐标位置, 以及 背景图片中的一种或多种。 按键的外形参数包括: 按键的形状、 大小, 坐 标位置, 以及背景图片中的一种或多种。
这里, 首先根据实现自定义软键盘的请求中底板面板参数, 生成外形 配置文件中的底板面板配置文件, 包括: 将底板面板参数保存到软键盘外 形配置文件中; 然后, 根据实现自定义软键盘的请求中的每个按键的外形 参数, 生成外形配置文件中的按键配置文件, 包括: 将每个按键的外形参 数保存到软键盘外形配置文件中。
例如: 定义软键盘的请求中底板面板参数包括: 坐标(0, 0 )、宽度 240, 高度 120 , 则其对应的软键盘的底板面板配置文件包括: FLAG: BOTTOM_PANEL/SHAPE:RECT/WIDTH:240/HEIGHT: 120/POS_X:
0/POS— Y: 0/。 该配置文件的具体功能为: 在屏幕上坐标为(0, 0)的地方绘制 一个宽度为 240像素, 高度为 120像素的矩形, 作为软键盘的底板面板。 上述只是配置文件的一个格式, 但本发明实施例不限于此, 还包括其他的 配置文件格式。
每个按键配置文件与此类似, 就不在累述了。
本发明实施例中, 实现自定义软键盘的请求中的底边面板参数以及每 个按键的外形参数可以是用户直接输入的, 也可以是用户根据终端设备提 供选项进行选择而输入的。
步骤 103: 根据保存的功能事件与标识码的对应关系, 确定实现自定义 软键盘的请求中的按键功能事件对应的标识码。
本发明实施例中, 终端设备的操作系统中, 预先配置了功能事件与标 识码的对应关系, 即不同的操作系统, 功能事件与标识码的对应关系不同, 这是终端设备的操作系统中已设置好的, 即终端设备保存了功能事件与标 识码的对应关系。 较佳地, 功能事件与标识码的对应关系是一对一的关系。 终端设备中的功能事件包括描述按键的功能的信息, 以及可执行的 API函 数。
终端设备保存了功能事件与标识码的对应关系。 从而, 当生成了软键 盘的外形配置文件之后, 可根据上述保存的对应关系, 确定实现自定义软 键盘的请求中每个按键功能事件对应的标识码。 例如: 当终端设备使用的是 BREW操作系统时该系统该系统中, 已配 置的功能事件与标识码的对应关系如表 1 所示, 即终端设备保存对应关系 ^口表 1所示:
Figure imgf000008_0002
Figure imgf000008_0001
在该操作系统中, 上述步骤中已经生成了软键盘的外形配置文件, 这 样, 根据表 1 , 查找到每个按键的按键功能事件对应的标识码, 例如: 实现 自定义软键盘的请求中的按键功能事件包括: BUTTON4 具有向左移的功 能, 即功能事件为 AVK— LEFT , 则根据表 1 确定其对应的标识码为: FUNCTION— LEFT。
步骤 104: 才艮据确定的按键功能事件对应的标识码, 生成功能信息配置 文件。
当确定了软键盘中每个按键的按键功能事件对应的标识码之后 , 将每 个按键, 按键功能事件以及对应的标识码写入功能信息配置文件中, 即生 成对应的功能信息配置文件。 例如: 实现自定义软键盘的请求中的按键功 能事件包括: 当 BUTTON— 4这个按键第一次被点击的时候, 会实现左移的 功能, 在 300毫秒的时间内, 再次点击此按键, 会实现输入字符 A的功能。 即 BUTTON— 4对应两个功能事件, 包括: AVK— LEFT, 以及 AVK— A, 根 据表 1 , 其分别对应的标识码为: FUNCTION— LEFT , 以及 FUNCTION— A. , 则生成的功能信息配置文件包括: FLAG:BUTTON_4/TIME:300/FUNCTON:FU CTION_LEFT/FU CTO N:FU CTION_A.
上述只是功能信息配置文件的一种格式, 当然, 本发明实施例不限于 此, 亦可以有其他的格式。
可见, 功能信息配置文件中包括了: 按键, 按键功能事件, 以及标识 码的对应关系。
步骤 105: 4艮据外形配置文件和功能信息配置文件, 生成自定义的软键 盘。
根据上述过程, 生成软键盘的两个配置文件, 即可生成一个可使用的 软键盘。 参见图 2 , 才艮据外形配置文件和功能信息配置文件, 生成自定义的 软键盘过程包括:
步骤 201 : 读取软键盘的外形配置文件, 绘制对应的软键盘。
软键盘的外形配置文件包括了: 软键盘的底板面板配置文件以及软键 盘中的每个按键的按键配置文件, 因此, 首先根据读取到的软键盘的底板 面板配置文件,绘制软件盘的底板面板,例如:底板面板配置文件为: FLAG: BOTTOM_PANEL/SHAPE:RECT/WIDTH:240/HEIGHT: 120/POS_X:
0/POS— Υ: 0/。 则可以在屏幕上坐标为 (0, 0 ) 的地方绘制一个宽度为 240 像素, 高度为 120像素的矩形, 作为软键盘的底板面板。
然后, 根据软键盘中的每个按键的按键配置文件, 在绘制出的底板面 板中绘制出每个按键。
步骤 202: 根据软键盘的外形配置文件, 确定触摸点对应的当前按键。 使用该软键盘时, 当触摸屏上该软键盘上某一点被触摸时, 根据该软 键盘放入外形配置文件, 确定触摸点对应的当前按键。
软键盘的按键配置文件中记录了每个按键对应的坐标位置, 大小等信 息, 因此, 当获取到触摸点的坐标和大小后, 可在外形配置文件中查找到 对应的当前按键, 即确定对应的当前按键。 步骤 203: 根据软键盘的功能信息配置文件, 确定当前按键对应的标识 码。
在功能信息配置文件中记录了每个按键, 按键功能事件以及对应的标 识码, 即功能信息配置文件中包括了: 按键, 按键功能事件, 以及标识码 的对应关系, 在步骤 202 中, 已经确定了当前按键, 从而可根据该关系确 定当前按键的标识码。 当前按键对应的标识码可以一个, 两个, 或者, 多 个。
步骤 204:调用与确定的标识码对应的功能事件,实现对应的按键操作。 已经确定了标识码, 终端设备的操作系统会根据已配置好的功能事件 与标识码的对应关系, 自动查找到该标识码对应的功能事件, 然后调用查 找到的功能事件。 一般, 功能事件中包括可执行的 API函数, 终端设备的 操作系统可以调用这些可执行的 API函数, 实现对应的按键操作, 即实现 了软键盘的按键功能。
本发明实施例中, 不仅可以生成并使用一个软键盘, 同时还可以对已 生成的软键盘进行编辑。 即已经生成软键盘的外形配置文件和功能信息配 置文件之后, 还包括:
接收软键盘编辑请求, 根据软键盘编辑请求中的软键盘外形信息, 编 辑对应的软键盘的外形配置文件, 根据软键盘编辑请求中的按键功能事件, 编辑对应的软键盘的功能信息配置文件。 其中, 编辑包括: 修改, 删除, 或增力口。
在上述实施例中, 先生成软键盘的外形配置文件, 再生成软键盘的功 能信息配置文件, 但是, 本发明实施例不限于此, 也可以先生成软键盘的 功能信息配置文件, 再生成软键盘的外形配置文件。
根据上述生成软键盘的过程, 可以构建一种生成软键盘的装置, 参见 图 3 , 包括: 接收单元 100、 外形配置单元 200, 功能配置单元 300和生成 单元 400。 其中,
接收单元 100, 用于接收实现自定义软键盘的请求。
外形配置单元 200, 用于根据所述请求中的软键盘外形信息, 生成软键 盘的外形配置文件。
功能配置单元 300, 用于根据保存的功能事件与标识码的对应关系, 确 定所述请求中的按键功能事件对应的标识码, 并根据确定的标识码生成软 键盘的功能信息配置文件。
生成单元 400, 用于根据所述外形配置文件和功能信息配置文件, 生成 自定义的软键盘。
其中, 外形配置单元 200包括:
底板面板配置子单元, 用于根据所述请求中底板面板参数, 生成外形 配置文件中的底板面板配置文件。
按键配置子单元, 用于根据所述请求中的每个按键的外形参数, 生成 外形配置文件中的按键配置文件。
生成单元 400包括:
生成子单元, 用于根据所述软键盘的外形配置文件, 绘制对应的软键 盘, 并确定触摸点对应的当前按键。
确定子单元, 用于根据所述软键盘的功能信息配置文件, 确定所述当 前按键对应的标识码。
调用子单元, 用于调用与所述标识码对应的功能事件, 实现软键盘的 按键功能。
该实现自定义软键盘的装置还包括:
编辑单元, 用于根据接收的软键盘编辑请求中的软键盘外形信息, 编 辑所述外形配置文件, 根据接收的软键盘编辑请求中的按键功能事件, 编 辑所述功能信息配置文件。 本发明实施例中的实现自定义软键盘的装置可以应用于终端设备中。 终端设备包括: 移动终端, 例如: 手机; 或者, 智能终端, 例如: ATM机。
本发明实施例中, 接收到实现自定义软键盘的请求后, 根据请求中的 软键盘外形信息, 生成软键盘的外形配置文件, 根据保存的功能事件与标 识码的对应关系, 确定所述请求中的按键功能事件对应的标识码, 并根据 确定的标识码生成软键盘的功能信息配置文件, 这样, 使用时, 通过外形 配置文件生成软键盘, 点击终端设备触摸屏上某点之后, 即可通过外形配 置文件确定触摸点对应的当前按键, 然后, 通过功能信息配置文件, 确定 该按键对应的标识码, 从而调用该标识码对应的功能事件, 完成相应的操 作, 从而, 实现了自定义软键盘的使用, 可见, 请求中的软键盘外形信息 不同, 生成的软键盘形状, 按键位置也不同, 实现自定义软键盘的请求中 的按键功能事件不同, 软键盘中的每个按键的标识码也不同, 调用的功能 事件也不同, 因此, 可根据不同的用户需求, 或者不同的应用场景, 生成 不同的软键盘, 突破了移动终端高速发展的一个瓶颈, 提高了终端设备的 通用性, 也给大大提高了用户的体验。 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。

Claims

权利要求书
1、 一种生成软键盘的方法, 其特征在于, 该方法包括:
接收实现自定义软键盘的请求;
根据所述请求中的软键盘外形信息, 生成软键盘的外形配置文件; 根据保存的功能事件与标识码的对应关系, 确定所述请求中的按键功 能事件对应的标识码, 并根据确定的标识码生成软键盘的功能信息配置文 件;
才艮据所述外形配置文件和功能信息配置文件, 生成自定义的软键盘。
2、 根据权利要求 1所述的方法, 其特征在于, 所述生成软键盘的外形 配置文件包括:
根据所述请求中的底板面板参数, 生成外形配置文件中的底板面板配 置文件;
根据所述请求中的每个按键的外形参数, 生成外形配置文件中的按键 配置文件。
3、根据权利要求 2所述的方法, 其特征在于, 所述底板面板参数包括: 底边面板的形状、 大小、 坐标位置、 背景图片中的至少一种参数;
所述按键的外形参数包括: 按键的形状、 大小、 坐标位置、 背景图片 中的至少一种参数。
4、 根据权利要求 1所述的方法, 其特征在于, 根据所述外形配置文件 和功能信息配置文件, 生成自定义的软键盘包括:
根据所述软键盘的外形配置文件, 绘制对应的软键盘, 并确定触摸点 对应的当前按键;
根据所述软键盘的功能信息配置文件, 确定所述当前按键对应的标识 码;
调用与所述标识码对应的功能事件, 实现软键盘的按键功能。
5、 根据权利要求 1所述的方法, 其特征在于, 生成软键盘的功能信息 配置文件之后, 该方法还包括:
根据接收的软键盘编辑请求中的软键盘外形信息, 编辑所述外形配置 文件;
根据接收的软键盘编辑请求中的按键功能事件, 编辑所述功能信息配 置文件。
6、 一种生成软键盘的装置, 其特征在于, 该装置包括: 接收单元、 外 形配置单元、 功能配置单元和生成单元; 其中,
接收单元, 用于接收实现自定义软键盘的请求;
外形配置单元, 用于根据所述请求中的软键盘外形信息, 生成软键盘 的外形配置文件;
功能配置单元, 用于根据保存的功能事件与标识码的对应关系, 确定 所述请求中的按键功能事件对应的标识码, 并根据确定的标识码生成软键 盘的功能信息配置文件;
生成单元, 用于根据所述外形配置文件和功能信息配置文件, 生成自 定义的软键盘。
7、根据权利要求 6所述的装置, 其特征在于, 所述外形配置单元包括: 底板面板配置子单元和按键配置子单元; 其中,
底板面板配置子单元, 用于根据所述请求中的底板面板参数, 生成外 形配置文件中的底板面板配置文件;
按键配置子单元, 用于根据所述请求中的每个按键的外形参数, 生成 外形配置文件中的按键配置文件。
8、 根据权利要求 6所述的装置, 其特征在于, 所述生成单元包括: 生 成子单元、 确定子单元和调用子单元; 其中,
生成子单元, 用于根据所述软键盘的外形配置文件, 绘制对应的软键 盘, 并确定触摸点对应的当前按键;
确定子单元, 用于根据所述软键盘的功能信息配置文件, 确定所述当 前按键对应的标识码;
调用子单元, 用于调用与所述标识码对应的功能事件, 实现软键盘的 按键功能。
9、 根据权利要求 6所述的装置, 其特征在于, 该装置还包括: 编辑单元, 用于根据接收的软键盘编辑请求中的软键盘外形信息, 编 辑所述外形配置文件, 根据接收的软键盘编辑请求中的按键功能事件, 编 辑所述功能信息配置文件。
10、 一种终端设备, 其特征在于, 该终端设备包括: 接收单元、 外形 配置单元、 功能配置单元和生成单元; 其中,
接收单元, 用于接收实现自定义软键盘的请求;
外形配置单元, 用于根据所述请求中的软键盘外形信息, 生成软键盘 的外形配置文件;
功能配置单元, 用于根据保存的功能事件与标识码的对应关系, 确定 所述请求中的按键功能事件对应的标识码, 并根据确定的标识码生成软键 盘的功能信息配置文件;
生成单元, 用于根据所述外形配置文件和功能信息配置文件, 生成自 定义的软键盘。
11、 根据权利要求 10所述的终端设备, 其特征在于, 所述外形配置单 元包括: 底板面板配置子单元和按键配置子单元; 其中,
底板面板配置子单元, 用于根据所述请求中的底板面板参数, 生成外 形配置文件中的底板面板配置文件;
按键配置子单元, 用于根据所述请求中的每个按键的外形参数, 生成 外形配置文件中的按键配置文件。
12、 根据权利要求 10所述的终端设备, 其特征在于, 所述生成单元包 括: 生成子单元、 确定子单元和调用子单元; 其中,
生成子单元, 用于根据所述软键盘的外形配置文件, 绘制对应的软键 盘, 并确定触摸点对应的当前按键;
确定子单元, 用于根据所述软键盘的功能信息配置文件, 确定所述当 前按键对应的标识码;
调用子单元, 用于调用与所述标识码对应的功能事件, 实现软键盘的 按键功能。
13、 根据权利要求 10所述的终端设备, 其特征在于, 该终端设备还包 括:
编辑单元, 用于根据接收的软键盘编辑请求中的软键盘外形信息, 编 辑所述外形配置文件, 根据接收的软键盘编辑请求中的按键功能事件, 编 辑所述功能信息配置文件。
PCT/CN2011/071143 2010-11-11 2011-02-21 一种生成软键盘的方法、装置及终端设备 Ceased WO2012062064A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP11839468.3A EP2538314A4 (en) 2010-11-11 2011-02-21 METHOD, DEVICE AND DEVICE FOR PRODUCING A SOFT KEYBOARD
US13/634,573 US20130176226A1 (en) 2010-11-11 2011-02-21 Method, apparatus, and terminal device for generating soft keyboard

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010540116.6 2010-11-11
CN2010105401166A CN101984398A (zh) 2010-11-11 2010-11-11 一种生成软键盘的方法、装置及终端设备

Publications (1)

Publication Number Publication Date
WO2012062064A1 true WO2012062064A1 (zh) 2012-05-18

Family

ID=43641568

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/071143 Ceased WO2012062064A1 (zh) 2010-11-11 2011-02-21 一种生成软键盘的方法、装置及终端设备

Country Status (4)

Country Link
US (1) US20130176226A1 (zh)
EP (1) EP2538314A4 (zh)
CN (1) CN101984398A (zh)
WO (1) WO2012062064A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2507556A (en) * 2012-11-05 2014-05-07 Ibm Configuring a keyboard model

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722305A (zh) * 2011-03-29 2012-10-10 中兴通讯股份有限公司 一种移动终端输出信息的方法及装置
CN102867159B (zh) * 2011-07-05 2015-04-01 腾讯科技(深圳)有限公司 通过软键盘实现密码输入的方法、系统、客户端及服务器
CN102231096A (zh) * 2011-07-28 2011-11-02 青岛海信移动通信技术股份有限公司 调整软键盘按键的方法及设备
JP2013186489A (ja) * 2012-03-05 2013-09-19 Seiko Epson Corp 制御システム、制御システムの制御方法、及び、情報処理装置
CN103513896B (zh) * 2012-06-20 2017-03-08 Tcl集团股份有限公司 一种自定义电子终端的虚拟键盘的方法及系统
CN103713759A (zh) * 2012-09-29 2014-04-09 宏景科技股份有限公司 触摸式输入装置及其控制方法、及产生定义档的方法
CN103809945B (zh) * 2012-11-08 2016-09-28 名硕电脑(苏州)有限公司 输入装置测试界面的产生方法
CN104317479A (zh) * 2014-10-10 2015-01-28 百度在线网络技术(北京)有限公司 输入界面的展现方法和装置
CN105511303A (zh) * 2015-11-06 2016-04-20 中国电子科技集团公司第四十一研究所 仪器支持自定义面板操作的方法
WO2019090765A1 (zh) * 2017-11-13 2019-05-16 深圳市柔宇科技有限公司 一种写字板、写字板组件以及写字板的书写方法
CN109634711A (zh) * 2019-01-11 2019-04-16 厦门亿联网络技术股份有限公司 一种虚拟键盘的动态配置方法
CN110597592A (zh) * 2019-09-23 2019-12-20 深圳Tcl新技术有限公司 输入法键盘的处理方法、显示装置及存储介质
CN113918080B (zh) * 2021-09-09 2024-03-29 西安震有信通科技有限公司 一种虚拟键盘的控制方法、系统及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040212595A1 (en) * 2003-04-28 2004-10-28 Debiao Zhou Software keyboard for computer devices
CN101110005A (zh) * 2006-07-19 2008-01-23 鸿富锦精密工业(深圳)有限公司 自定义触摸板的电子装置及方法
CN101150618A (zh) * 2007-10-31 2008-03-26 中兴通讯股份有限公司 一种带有自定义键盘的手机
US20090183098A1 (en) * 2008-01-14 2009-07-16 Dell Products, Lp Configurable Keyboard

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040183834A1 (en) * 2003-03-20 2004-09-23 Chermesino John C. User-configurable soft input applications
US8479112B2 (en) * 2003-05-13 2013-07-02 Microsoft Corporation Multiple input language selection
US20090027334A1 (en) * 2007-06-01 2009-01-29 Cybernet Systems Corporation Method for controlling a graphical user interface for touchscreen-enabled computer systems
US20100281268A1 (en) * 2009-04-30 2010-11-04 Microsoft Corporation Personalizing an Adaptive Input Device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040212595A1 (en) * 2003-04-28 2004-10-28 Debiao Zhou Software keyboard for computer devices
CN101110005A (zh) * 2006-07-19 2008-01-23 鸿富锦精密工业(深圳)有限公司 自定义触摸板的电子装置及方法
CN101150618A (zh) * 2007-10-31 2008-03-26 中兴通讯股份有限公司 一种带有自定义键盘的手机
US20090183098A1 (en) * 2008-01-14 2009-07-16 Dell Products, Lp Configurable Keyboard

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2538314A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2507556A (en) * 2012-11-05 2014-05-07 Ibm Configuring a keyboard model

Also Published As

Publication number Publication date
EP2538314A4 (en) 2015-10-21
EP2538314A1 (en) 2012-12-26
US20130176226A1 (en) 2013-07-11
CN101984398A (zh) 2011-03-09

Similar Documents

Publication Publication Date Title
EP2538314A1 (en) Method, apparatus, and terminal device for generating soft keyboard
KR101565768B1 (ko) 휴대단말의 잠금 모드 해제 방법 및 장치
CN110531920B (zh) 侧边工具栏的显示方法、装置、终端及存储介质
US8452338B2 (en) Telephone call and alarm control methods for a cell phone
CN103389868B (zh) 一种触控解锁的方法、装置及触摸屏终端
US10642486B2 (en) Input device, input control method, and input control program
JP5986484B2 (ja) 携帯端末、ロック状態制御プログラムおよびロック状態制御方法
CN101110005B (zh) 自定义触摸板的电子装置及方法
JP6088356B2 (ja) 携帯端末、表示制御プログラムおよび表示制御方法
JP5846887B2 (ja) 携帯端末、編集制御プログラムおよび編集制御方法
CN106708407A (zh) 防止触摸按键误触发的方法、装置及移动终端
WO2013159431A1 (zh) 触摸屏操作方法及装置
CN103412772A (zh) 在移动操作系统下快速启动视窗化应用软件的方法及装置
CN103049205A (zh) 移动终端和移动终端的操控方法
JP5730658B2 (ja) 携帯端末、ロック解除プログラムおよびロック解除方法
CN102299997B (zh) 移动终端号码输入方法及装置
JP2013246792A (ja) 携帯端末
CN110381192B (zh) 一种虚拟按键控制方法及移动终端
JP4916583B1 (ja) 画像利用式認証方法
CN104932789A (zh) 一种信息显示方法及电子设备
KR20150031172A (ko) 디스플레이 장치의 기능 수행 방법 및 디스플레이 장치
KR102230569B1 (ko) 터치 좌표를 이용한 단말기 및 사용자 인터페이스 방법
CN107391208A (zh) 游戏启动方法及移动终端
WO2013185706A1 (zh) 一种终端控制方法及终端
JP2013255162A (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: 11839468

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 13634573

Country of ref document: US

REEP Request for entry into the european phase

Ref document number: 2011839468

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2011839468

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE