[go: up one dir, main page]

CN114201103B - Data input method and terminal equipment - Google Patents

Data input method and terminal equipment Download PDF

Info

Publication number
CN114201103B
CN114201103B CN202110939706.4A CN202110939706A CN114201103B CN 114201103 B CN114201103 B CN 114201103B CN 202110939706 A CN202110939706 A CN 202110939706A CN 114201103 B CN114201103 B CN 114201103B
Authority
CN
China
Prior art keywords
terminal
interface
virtual
key
target data
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.)
Active
Application number
CN202110939706.4A
Other languages
Chinese (zh)
Other versions
CN114201103A (en
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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110939706.4A priority Critical patent/CN114201103B/en
Publication of CN114201103A publication Critical patent/CN114201103A/en
Application granted granted Critical
Publication of CN114201103B publication Critical patent/CN114201103B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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/04886Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects

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)
  • Telephone Function (AREA)

Abstract

本申请提供了一种数据输入方法和终端设备,涉及终端技术领域。该数据输入方法,在第一终端与第二终端连接成功后,第二终端可以获取控制指令(如第一控制指令或第二控制指令)并显示第二界面。其中,第二界面包括数字键盘。第二终端在显示第二界面后,可以响应于用户对第二界面中的数字键盘的触发操作,在第一终端的第一界面输入数字。进而,由于数字键盘位于虚拟用户界面UI(user interface)中,即位于第二界面中,更符合用户的使用习惯,可以提高用户的工作效率,且无需购买外设键盘,没有额外的成本。

This application provides a data input method and terminal equipment, relating to the field of terminal technology. In this data input method, after the first terminal and the second terminal are successfully connected, the second terminal can obtain the control instruction (such as the first control instruction or the second control instruction) and display the second interface. Wherein, the second interface includes a numeric keyboard. After displaying the second interface, the second terminal may input numbers on the first interface of the first terminal in response to the user's trigger operation on the numeric keyboard in the second interface. Furthermore, since the numeric keyboard is located in the virtual user interface UI (user interface), that is, in the second interface, it is more in line with the user's usage habits, can improve the user's work efficiency, and there is no need to purchase a peripheral keyboard and no additional cost.

Description

数据输入方法和终端设备Data input method and terminal device

技术领域Technical Field

本申请涉及终端技术领域,尤其涉及一种数据输入方法和终端设备。The present application relates to the field of terminal technology, and in particular to a data input method and a terminal device.

背景技术Background Art

目前,随着计算机技术的发展,移动终端(如笔记本电脑或平板电脑等)已经成为人们工作的一部分。例如,移动终端可以被人们用于编辑文档、绘制统计报表、撰写工作报告等事务。At present, with the development of computer technology, mobile terminals (such as laptops or tablet computers, etc.) have become a part of people's work. For example, mobile terminals can be used by people to edit documents, draw statistical reports, write work reports and other matters.

通常情况下,移动终端仅包括具有位于同一行的数字按键的数字键盘。Typically, a mobile terminal only includes a numeric keypad having numeric keys located in the same row.

然而,对数字使用率比较高的用户(如,财务人员、及统计人员)而言,包括多个数字按键处于同一行的数字键盘不符合用户的使用习惯。进而,会影响用户的工作效率。或者,用户需要购买外设键盘来提高工作效率,成本较高。However, for users who use numbers more frequently (such as financial personnel and statisticians), a numeric keyboard with multiple numeric keys in the same row does not conform to the user's usage habits. In turn, it will affect the user's work efficiency. Alternatively, the user needs to purchase an external keyboard to improve work efficiency, which is costly.

发明内容Summary of the invention

本申请提供一种数据输入方法和终端设备,可以在第一终端显示第一界面。而在第二终端的第二界面上的数字键盘可以响应于用户的触发操作,控制第一终端在第一界面中,输入与触发操作对应的数据。如此,可以提高用户的工作效率,且无需购买外设键盘,没有额外的成本。The present application provides a data input method and terminal device, which can display a first interface on a first terminal. A numeric keyboard on a second interface of a second terminal can respond to a trigger operation of a user and control the first terminal to input data corresponding to the trigger operation in the first interface. In this way, the user's work efficiency can be improved without the need to purchase an external keyboard and no additional cost.

第一方面,本申请提供一种数据输入方法,应用于数据输入系统,数据输入系统包括第一终端和第二终端。本申请提供的方法包括:第一终端与第二终端建立通信连接。在第一终端显示第一界面的过程中,第二终端显示第二界面。其中,第一界面包括可输入数字的焦点位置,第二界面包括数字键盘,数字键盘包括虚拟数字按键。第二终端在第二界面中接收对虚拟数字按键的触发操作。第一终端根据对虚拟数字按键的触发操作,在焦点位置显示虚拟数字按键对应的数字。In a first aspect, the present application provides a data input method, which is applied to a data input system, and the data input system includes a first terminal and a second terminal. The method provided by the present application includes: the first terminal establishes a communication connection with the second terminal. During the process of the first terminal displaying the first interface, the second terminal displays the second interface. Among them, the first interface includes a focus position where numbers can be input, and the second interface includes a numeric keyboard, and the numeric keyboard includes virtual numeric keys. The second terminal receives a trigger operation on the virtual numeric key in the second interface. The first terminal displays the number corresponding to the virtual numeric key at the focus position according to the trigger operation on the virtual numeric key.

本申请提供的数据输入方法,在第一终端与第二终端连接成功后,第二终端可以获取控制指令(如第一控制指令或第二控制指令)并显示第二界面。其中,第二界面包括数字键盘。第二终端在显示第二界面后,可以响应于用户对第二界面中的数字键盘的触发操作,在第一终端的第一界面输入数字。进而,由于数字键盘位于虚拟用户界面UI(userinterface)中,即位于第二界面中,更符合用户的使用习惯,可以提高用户的工作效率。且无需购买外设键盘,且没有额外的成本。The data input method provided by the present application is that after the first terminal is successfully connected to the second terminal, the second terminal can obtain a control instruction (such as a first control instruction or a second control instruction) and display a second interface. Among them, the second interface includes a numeric keypad. After displaying the second interface, the second terminal can respond to the user's triggering operation on the numeric keypad in the second interface and input numbers in the first interface of the first terminal. Furthermore, since the numeric keypad is located in the virtual user interface UI (user interface), that is, in the second interface, it is more in line with the user's usage habits and can improve the user's work efficiency. And there is no need to purchase an external keyboard, and there is no additional cost.

在一种可能的实施方式中,第一终端根据触发操作,在焦点位置显示虚拟数字按键对应的数字,包括:第一终端接收来自第二终端的第一目标数据。其中,第一目标数据是虚拟数字按键被触发时生成的。第一终端在焦点位置显示与第一目标数据对应的数字。In a possible implementation, the first terminal displays a number corresponding to a virtual digital key at a focus position according to a trigger operation, including: the first terminal receives first target data from the second terminal. The first target data is generated when the virtual digital key is triggered. The first terminal displays a number corresponding to the first target data at a focus position.

这样,可以实现第二终端在第一终端的第一界面的焦点位置输入数字。In this way, the second terminal can input numbers at the focus position of the first interface of the first terminal.

进一步地,第一目标数据为键盘标识。第二终端在第二界面中接收对虚拟数字按键的触发操作,包括:第二终端在第二界面中接收对虚拟数字按键的触发操作,查找与被触发的虚拟数字按键对应的键盘标识,第二终端向第一终端发送键盘标识。第一终端在焦点位置显示与第一目标数据对应的数字,包括:第一终端查找与键盘标识对应的数字。第一终端在焦点位置显示数字。Furthermore, the first target data is a keyboard identifier. The second terminal receives a trigger operation on a virtual digital key in the second interface, including: the second terminal receives a trigger operation on a virtual digital key in the second interface, searches for a keyboard identifier corresponding to the triggered virtual digital key, and the second terminal sends the keyboard identifier to the first terminal. The first terminal displays a number corresponding to the first target data at a focus position, including: the first terminal searches for a number corresponding to the keyboard identifier. The first terminal displays the number at the focus position.

这样,可以实现第二终端在第一终端的第一界面的焦点位置输入数字。In this way, the second terminal can input numbers at the focus position of the first interface of the first terminal.

或者,进一步地,第一目标数据为包含有数字的数据包,第一终端在焦点位置显示与第一目标数据对应的数字,包括:第一终端接收来自第二终端的数据包。其中,数据包是虚拟数字按键被触发时生成的。第一终端在焦点位置显示数据包中的数字。Alternatively, further, the first target data is a data packet containing numbers, and the first terminal displays the numbers corresponding to the first target data at the focus position, including: the first terminal receives a data packet from the second terminal. The data packet is generated when a virtual number key is triggered. The first terminal displays the numbers in the data packet at the focus position.

这样,可以实现第二终端在第一终端的第一界面的焦点位置输入数字。In this way, the second terminal can input numbers at the focus position of the first interface of the first terminal.

在一种可能的实施方式中,数字键盘还包括虚拟运算按键和/或虚拟换行按键。本申请提供的方法还包括:第二终端在第二界面中接收对虚拟运算按键的触发操作,第一终端根据对虚拟运算按键的触发操作,在焦点位置显示虚拟运算按键对应的运算符号。和/或,第二终端在第二界面中接收对虚拟换行按键的触发操作,第一终端根据对虚拟换行按键的触发操作,在第一界面中移动焦点位置。In a possible implementation, the numeric keyboard further includes a virtual operation key and/or a virtual line break key. The method provided in the present application further includes: the second terminal receives a trigger operation on the virtual operation key in the second interface, and the first terminal displays the operation symbol corresponding to the virtual operation key in the focus position according to the trigger operation on the virtual operation key. And/or, the second terminal receives a trigger operation on the virtual line break key in the second interface, and the first terminal moves the focus position in the first interface according to the trigger operation on the virtual line break key.

这样,还可以实现第二终端在第一终端的第一界面的焦点位置输入运算符号和/或移动焦点位置。In this way, the second terminal can also input an operation symbol and/or move the focus position at the focus position of the first interface of the first terminal.

在一种可能的实施方式中,在第一终端显示第一界面的过程中,第二终端显示第二界面,包括:第一终端在显示第一界面的过程中,控制第二终端显示第二界面。In a possible implementation, during the process of the first terminal displaying the first interface, the second terminal displays the second interface, including: during the process of the first terminal displaying the first interface, the first terminal controls the second terminal to display the second interface.

如此,可以实现第一终端控制第二终端显示第二界面。In this way, the first terminal can control the second terminal to display the second interface.

进一步地,第一终端在显示第一界面的过程中,控制第二终端显示第二界面,包括:第一终端在显示第一界面且响应到用户的触发操作的情况下,向第二终端发送第一控制指令。第二终端响应于第一控制指令,显示第二界面。Furthermore, the first terminal controls the second terminal to display the second interface during the process of displaying the first interface, including: the first terminal sends a first control instruction to the second terminal when displaying the first interface and responding to a trigger operation of the user. The second terminal displays the second interface in response to the first control instruction.

这样,当第一终端被用户触发时,才控制第二终端显示第二界面。如此,可以避免第一终端误控制第二终端显示第二界面。In this way, when the first terminal is triggered by the user, the second terminal is controlled to display the second interface, so that the first terminal can be prevented from mistakenly controlling the second terminal to display the second interface.

更进一步地,响应到用户的触发操作为响应到用户对目标按键的长按操作。和/或识别到用户输入的用于指示打开数字键盘的语音信息。和/或响应到用户对目标快捷键的触发操作。Furthermore, responding to the user's triggering operation is responding to the user's long press operation on the target key, and/or recognizing the voice information input by the user for instructing to open the numeric keypad, and/or responding to the user's triggering operation on the target shortcut key.

或者,进一步地,第一终端在显示第一界面的过程中,控制第二终端显示第二界面,包括:第一终端在打开第一界面时,向第二终端发送第一界面的界面标识。第二终端在识别到第一界面的界面标识后,显示第二界面。Alternatively, further, the first terminal controls the second terminal to display the second interface during the process of displaying the first interface, including: when the first terminal opens the first interface, the first terminal sends the interface identifier of the first interface to the second terminal. After the second terminal recognizes the interface identifier of the first interface, it displays the second interface.

这样,当第一终端在打开第一界面时,第二终端自动显示第二界面,无需用户操作。进一步地提高了效率。In this way, when the first terminal opens the first interface, the second terminal automatically displays the second interface without user operation, further improving efficiency.

在一种可能的实施方式中,第二终端显示第二界面,包括:第二终端响应于用户的数字键盘的图标的触发操作,显示第二界面。In a possible implementation, the second terminal displays the second interface, including: the second terminal displays the second interface in response to a triggering operation of an icon on a numeric keyboard of a user.

这样,用户可以通过触发第二终端,使得第二终端显示第二界面。In this way, the user can trigger the second terminal to cause the second terminal to display the second interface.

进一步地,第二界面包括第一控件,本申请提供的方法还包括:第二终端响应于对第一控件的触发操作,向第一终端发送第二控制指令。第一终端响应于第二控制指令,进入预设模式。其中,在预设模式下,第一终端用于识别来自第一终端的第一目标数据,第一目标数据是第二终端的虚拟数字按键被触发时产生的。Furthermore, the second interface includes a first control, and the method provided by the present application further includes: the second terminal sends a second control instruction to the first terminal in response to a triggering operation on the first control. The first terminal enters a preset mode in response to the second control instruction. Wherein, in the preset mode, the first terminal is used to identify first target data from the first terminal, and the first target data is generated when the virtual digital key of the second terminal is triggered.

如此,用户可以触发第二终端,实现控制第一终端在第一界面显示数字。In this way, the user can trigger the second terminal to control the first terminal to display numbers on the first interface.

在一种可能的实施方式中,第一终端与第二终端建立通信连接。在第一终端显示第一界面的过程中,第二终端显示第二界面,包括:在第一终端显示第一界面的过程中,第一终端响应于目标操作,进行设备发现。第一终端在发现第二终端的情况下,与第二终端建立通信连接。In a possible implementation, the first terminal establishes a communication connection with the second terminal. During the process of the first terminal displaying the first interface, the second terminal displays the second interface, including: during the process of the first terminal displaying the first interface, the first terminal performs device discovery in response to the target operation. When the first terminal discovers the second terminal, the first terminal establishes a communication connection with the second terminal.

如此,第一终端在响应到目标操作时,才与第二终端建立通信连接,避免了第一终端与第二终端的误连接。In this way, the first terminal establishes a communication connection with the second terminal only when responding to the target operation, thereby avoiding an erroneous connection between the first terminal and the second terminal.

在一种可能的实施方式中,第二界面还包括第二控件,本申请提供的方法还包括:第二终端响应于对第二控件的触发操作,调用计算器应用并显示计算器应用的第三界面。其中,在第三界面中包括虚拟运算按键和虚拟数字按键。第二终端响应于对虚拟运算按键和虚拟数字按键的触发操作,向第一终端发送第二目标数据。其中,第二目标数据为虚拟运算按键和虚拟数字按键被触发时产生的。第一终端显示第二目标数据对应的计算结果。In a possible implementation, the second interface further includes a second control, and the method provided in the present application further includes: the second terminal, in response to a trigger operation on the second control, calls a calculator application and displays a third interface of the calculator application. The third interface includes a virtual operation key and a virtual number key. The second terminal, in response to a trigger operation on the virtual operation key and the virtual number key, sends second target data to the first terminal. The second target data is generated when the virtual operation key and the virtual number key are triggered. The first terminal displays the calculation result corresponding to the second target data.

这样,可以实现用户在第一终端的第三界面输入触发操作,在第一终端的第二界面显示与触发操作对应的计算结果。进而,由于第三界面属于虚拟用户界面UI(userinterface)中,更符合用户的使用习惯,可以提高用户的工作效率。且无需购买外设键盘,且没有额外的成本。In this way, the user can input a trigger operation on the third interface of the first terminal, and the calculation result corresponding to the trigger operation can be displayed on the second interface of the first terminal. Furthermore, since the third interface belongs to the virtual user interface UI (user interface), it is more in line with the user's usage habits and can improve the user's work efficiency. There is no need to purchase an external keyboard and there is no additional cost.

在一种可能的实施方式中,数字键盘中的虚拟数字按键呈矩阵式排布。In a possible implementation, the virtual numeric keys in the numeric keyboard are arranged in a matrix.

由于虚拟运算按键呈矩阵式排列,更符合用户的使用习惯。进而,可以进一步地提高用户的操作效率。Since the virtual operation keys are arranged in a matrix, it is more in line with the user's usage habits, thereby further improving the user's operating efficiency.

第二方面,本申请还提供一种终端设备,包括:通信单元,用于与第一终端建立通信连接。显示单元,用于在第一终端显示第一界面的过程中,显示第二界面。其中,第一界面包括可输入数字的焦点位置,第二界面包括数字键盘,数字键盘包括虚拟数字按键。处理单元,用于在第二界面中接收对虚拟数字按键的触发操作,控制第一终端在焦点位置显示虚拟数字按键对应的数字。In a second aspect, the present application further provides a terminal device, comprising: a communication unit, configured to establish a communication connection with a first terminal. A display unit, configured to display a second interface while the first terminal is displaying a first interface. The first interface includes a focus position where numbers can be input, and the second interface includes a numeric keypad, which includes virtual numeric keys. A processing unit, configured to receive a trigger operation on a virtual numeric key in the second interface, and control the first terminal to display the number corresponding to the virtual numeric key at the focus position.

在一种可能的实施方式中,通信单元,还用于向第一终端发送第一目标数据。其中,第一目标数据是虚拟数字按键被触发时生成的。In a possible implementation, the communication unit is further configured to send first target data to the first terminal, wherein the first target data is generated when the virtual digital key is triggered.

进一步地,第一目标数据为键盘标识。处理单元,具体用于在第二界面中接收对虚拟数字按键的触发操作,查找与被触发的虚拟数字按键对应的键盘标识。通信单元,具体用于向第一终端发送键盘标识。Further, the first target data is a keyboard identifier. The processing unit is specifically configured to receive a triggering operation on a virtual digital key in the second interface, and search for a keyboard identifier corresponding to the triggered virtual digital key. The communication unit is specifically configured to send the keyboard identifier to the first terminal.

或者,进一步地,第一目标数据为包含有数字的数据包。通信单元,还用于向第一终端的发送数据包。其中,数据包是虚拟数字按键被触发时生成的。Alternatively, further, the first target data is a data packet containing numbers. The communication unit is further configured to send a data packet to the first terminal, wherein the data packet is generated when the virtual digital key is triggered.

在一种可能的实施方式中,数字键盘还包括虚拟运算按键和/或虚拟换行按键。处理单元还用于在第二界面中接收对虚拟运算按键的触发操作,并控制第一终端在焦点位置显示虚拟运算按键对应的运算符号。和/或,处理单元还用于在第二界面中接收对虚拟换行按键的触发操作,并第一终端在第一界面中移动焦点位置。In a possible implementation, the numeric keypad further includes a virtual operation key and/or a virtual line break key. The processing unit is further configured to receive a trigger operation on the virtual operation key in the second interface, and control the first terminal to display the operation symbol corresponding to the virtual operation key at the focus position. And/or, the processing unit is further configured to receive a trigger operation on the virtual line break key in the second interface, and the first terminal moves the focus position in the first interface.

在一种可能的实施方式中,通信单元,还用于接收来自第一终端的第一控制指令。In a possible implementation manner, the communication unit is further configured to receive a first control instruction from the first terminal.

显示单元,还用于响应于第一控制指令,显示第二界面。The display unit is further used to display the second interface in response to the first control instruction.

或者,在另一种可能的实施方式中,通信单元,还用于接收来自第一终端的第一界面的界面标识。显示单元,具体用于在识别到第一界面的界面标识后,显示第二界面。Alternatively, in another possible implementation, the communication unit is further configured to receive an interface identifier of the first interface from the first terminal. The display unit is specifically configured to display the second interface after identifying the interface identifier of the first interface.

或者,在另一种可能的实施方式中,显示单元,具体用于响应于用户的数字键盘的图标的触发操作,显示第二界面。Alternatively, in another possible implementation, the display unit is specifically configured to display the second interface in response to a triggering operation of an icon on a numeric keyboard of the user.

进一步地,第二界面包括第一控件,通信单元,还用于响应于对第一控件的触发操作,向第一终端发送第二控制指令;第二控制指令用于指示第一终端进入预设模式,其中,在预设模式下,第一终端用于识别来自第一终端的第一目标数据,第一目标数据是虚拟数字按键被触发时产生的。Furthermore, the second interface includes a first control, a communication unit, and is also used to send a second control instruction to the first terminal in response to a trigger operation on the first control; the second control instruction is used to instruct the first terminal to enter a preset mode, wherein, in the preset mode, the first terminal is used to identify first target data from the first terminal, and the first target data is generated when the virtual digital key is triggered.

或者,在一种可能的实施方式中,数字键盘中的虚拟数字按键呈矩阵式排布。Alternatively, in a possible implementation, the virtual numeric keys in the numeric keyboard are arranged in a matrix.

第三方面,本申请还提供一种数据输入装置,包括处理器和存储器,存储器用于存储代码指令;处理器用于运行代码指令,使得第二终端以执行如第一方面或第一方面的任一种实现方式中描述的第二终端执行的数据输入方法。In a third aspect, the present application also provides a data input device, comprising a processor and a memory, the memory being used to store code instructions; the processor being used to run the code instructions so that the second terminal executes the data input method executed by the second terminal as described in the first aspect or any one of the implementations of the first aspect.

第四方面,本申请还提供一种计算机可读存储介质,计算机可读存储介质存储有指令,当指令被执行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述的第二终端执行的数据输入方法。In a fourth aspect, the present application also provides a computer-readable storage medium, which stores instructions. When the instructions are executed, the computer executes the data input method executed by the second terminal as described in the first aspect or any implementation of the first aspect.

第五方面,本申请还提供一种计算机程序产品,包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面或第一方面的任一种实现方式中描述第二终端执行的数据输入方法。In a fifth aspect, the present application further provides a computer program product, including a computer program, which, when executed, enables a computer to execute a data input method executed by a second terminal as described in the first aspect or any one of the implementations of the first aspect.

应当理解的是,本申请的第二方面至第五方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为一种数字输入方法的场景示意图;FIG1 is a schematic diagram of a scenario of a digital input method;

图2为本申请实施例提供的第一终端和第二终端的硬件系统架构示意图;FIG2 is a schematic diagram of a hardware system architecture of a first terminal and a second terminal provided in an embodiment of the present application;

图3为本申请实施例提供的第一终端和第二终端的软件系统架构示意图;FIG3 is a schematic diagram of a software system architecture of a first terminal and a second terminal provided in an embodiment of the present application;

图4为本申请实施例提供的笔记本电脑100和手机200建立通信连接的示意图;FIG4 is a schematic diagram of establishing a communication connection between a notebook computer 100 and a mobile phone 200 provided in an embodiment of the present application;

图5为本申请实施例提供的笔记本电脑100响应于用户的触发操作,控制手机200显示第二界面203的示意图;5 is a schematic diagram of the notebook computer 100 provided in an embodiment of the present application controlling the mobile phone 200 to display the second interface 203 in response to a trigger operation by a user;

图6为本申请实施例提供的手机200响应于触发操作,显示第二界面的示意图;FIG6 is a schematic diagram of a mobile phone 200 provided in an embodiment of the present application displaying a second interface in response to a trigger operation;

图7为本申请实施例提供的手机200响应于对第二界面203中的数字按键的触发操作,在笔记本电脑100的第一界面101中输入数字的示意图;7 is a schematic diagram of a mobile phone 200 inputting numbers in the first interface 101 of the notebook computer 100 in response to a triggering operation on a number key in the second interface 203 provided by an embodiment of the present application;

图8为本申请实施例提供的手机200响应于用户的对计算器功能的触发,使得笔记本电脑100在第一界面101中显示计算结果的示意图之一;FIG8 is a schematic diagram of a mobile phone 200 according to an embodiment of the present application, which responds to a user triggering a calculator function, so that the notebook computer 100 displays a calculation result in the first interface 101;

图9为本申请实施例提供的手机200响应于用户的对计算器功能的触发,使得笔记本电脑100在第一界面101中显示计算结果的示意图之二;FIG9 is a second schematic diagram of the mobile phone 200 according to an embodiment of the present application responding to the user triggering the calculator function so that the notebook computer 100 displays the calculation result in the first interface 101;

图10为本申请实施例提供的数据输入方法的流程图;FIG10 is a flow chart of a data input method provided in an embodiment of the present application;

图11为本申请实施例提供的第一终端1100的结构框图;FIG11 is a structural block diagram of a first terminal 1100 provided in an embodiment of the present application;

图12为本申请实施例提供的第一终端或第二终端的硬件结构示意图;FIG12 is a schematic diagram of the hardware structure of a first terminal or a second terminal provided in an embodiment of the present application;

图13为本申请实施例提供的一种芯片的结构示意图。FIG. 13 is a schematic diagram of the structure of a chip provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first value and the second value are only used to distinguish different values, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" means one or more, and "plurality" means two or more. "And/or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character "/" generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple.

目前,随着计算机技术的发展,移动终端(笔记本电脑或平板电脑)已经成为人们工作的一部分。例如,移动终端可以被人们用于编辑文档、绘制统计报表、撰写工作报告等。At present, with the development of computer technology, mobile terminals (laptops or tablet computers) have become a part of people's work. For example, mobile terminals can be used by people to edit documents, draw statistical reports, write work reports, etc.

如图1所示,以移动终端为笔记本电脑100为例,笔记本电脑100显示第一界面101,在第一界面101包括处于编辑中的财务工作报告的文档。若用户需要在财务工作报告的文档中输入一系列的数字,则需要连续触发笔记本电脑100的数字键盘102中的多个数字按键。由于笔记本电脑100的数字键盘102中所有的数字按键位于同一行,不符合用户的使用习惯。如此,会影响用户的工作效率。As shown in FIG1 , taking the mobile terminal as a laptop computer 100 as an example, the laptop computer 100 displays a first interface 101, and the first interface 101 includes a document of a financial work report being edited. If the user needs to enter a series of numbers in the document of the financial work report, it is necessary to continuously trigger multiple numeric keys in the numeric keypad 102 of the laptop computer 100. Since all the numeric keys in the numeric keypad 102 of the laptop computer 100 are located in the same row, it does not conform to the user's usage habits. This will affect the user's work efficiency.

有鉴于此,本申请实施例提供了一种数据输入方法,若用户需要第一终端的第一界面中,输入一系列的数字时,则第一终端可以与第二终端建立通信连接。第二终端可以显示第二界面。其中,第二界面包括数字键盘。第二终端可以响应于对数字键盘的触发操作,通过通信连接在第一终端的第一界面输入与触发操作对应的数据。如此,可以满足用户在第一界面输入数字的使用需求,而且由于用户触发的是第二终端上的数字键盘,更符合用户的使用习惯。进而,可以提高用户工作效率,且没有额外的成本。In view of this, an embodiment of the present application provides a data input method. If a user needs to input a series of numbers in a first interface of a first terminal, the first terminal can establish a communication connection with a second terminal. The second terminal can display a second interface. Among them, the second interface includes a numeric keypad. The second terminal can respond to a trigger operation on the numeric keypad and input data corresponding to the trigger operation in the first interface of the first terminal through a communication connection. In this way, the user's use needs of inputting numbers in the first interface can be met, and because the user triggers the numeric keypad on the second terminal, it is more in line with the user's usage habits. Furthermore, the user's work efficiency can be improved without additional costs.

可以理解的是,上述的第一终端又可以称为终端,(terminal)、用户设备(userequipment,UE)、移动台(mobile station,MS)等。第一终端可以是笔记本电脑、平板电脑(Pad)等,第二终端可以是手机(mobile phone)、穿戴式设备、平板电脑(Pad)、智慧家庭(smart home)中的无线终端等等。本申请的实施例对第一终端荷第二终端所采用的具体技术和具体设备形态不做限定。It is understandable that the first terminal mentioned above can also be called a terminal, user equipment (UE), mobile station (MS), etc. The first terminal can be a laptop, a tablet computer (Pad), etc., and the second terminal can be a mobile phone, a wearable device, a tablet computer (Pad), a wireless terminal in a smart home, etc. The embodiments of the present application do not limit the specific technology and specific device form used by the first terminal and the second terminal.

为了能够更好地理解本申请实施例,下面对本申请实施例的第一终端和第二终端的结构进行介绍。示例性的,图2为本申请实施例提供的一种第一终端和第二终端的结构示意图。In order to better understand the embodiment of the present application, the structures of the first terminal and the second terminal of the embodiment of the present application are introduced below. For example, FIG2 is a schematic diagram of the structure of the first terminal and the second terminal provided in the embodiment of the present application.

第一终端和第二终端可以包括处理器110,内部存储器121,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,麦克风170C,传感器模块180,按键190,以及显示屏194等。The first terminal and the second terminal may include a processor 110, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a microphone 170C, a sensor module 180, a button 190, and a display screen 194, etc.

可以理解的是,本申请实施例示意的结构并不构成对第一终端和第二终端的具体限定。在本申请另一些实施例中,第一终端和第二终端可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the first terminal and the second terminal. In other embodiments of the present application, the first terminal and the second terminal may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器110中还可以设置存储器,用于存储指令和数据。The processor 110 may include one or more processing units. Different processing units may be independent devices or integrated into one or more processors. The processor 110 may also be provided with a memory for storing instructions and data.

第一终端和第二终端的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the first terminal and the second terminal can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.

天线1和天线2用于发射和接收电磁波信号。第一终端和第二终端中的天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The antennas in the first terminal and the second terminal can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas.

移动通信模块150可以提供应用在第一终端和第二终端上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。The mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the first terminal and the second terminal. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.

无线通信模块160可以提供应用在第一终端和第二终端上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM)等无线通信的解决方案。The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), etc. for application on the first terminal and the second terminal.

第一终端和第二终端通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。The first terminal and the second terminal realize display functions through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,第一终端和第二终端可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the first terminal and the second terminal may include 1 or N display screens 194, where N is a positive integer greater than 1.

内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。例如,内部存储器121可以存储目标表格。其中,目标表格可以用于指示数字按键与键盘标识的关联关系。具体地,目标表格的具体内容和介绍可以参考下述实施例中对表1和表2的介绍,在此不作阐述。The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. For example, the internal memory 121 may store a target table. Among them, the target table can be used to indicate the association relationship between the numeric keys and the keyboard identifiers. Specifically, the specific content and introduction of the target table can refer to the introduction of Table 1 and Table 2 in the following embodiments, which will not be elaborated here.

第一终端和第二终端可以通过音频模块170,麦克风170C,以及应用处理器等实现音频功能。麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号,可以显示例如语音采集等功能。The first terminal and the second terminal can implement audio functions through the audio module 170, the microphone 170C, and the application processor, etc. The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals, and can display functions such as voice collection.

按键190包括开机键,音量键以及数字按键等。按键190可以是机械按键。也可以是在显示屏194中显示的触摸式按键。第一终端和第二终端可以接收按键输入,产生与第一终端和第二终端的用户设置以及功能控制有关的键信号输入。The key 190 includes a power key, a volume key, and a numeric key, etc. The key 190 may be a mechanical key, or a touch key displayed on the display screen 194. The first terminal and the second terminal may receive key inputs and generate key signal inputs related to user settings and function control of the first terminal and the second terminal.

本申请实施例以分层架构的Android系统为例,示例性说明第一终端和第二终端的软件结构。图3为本申请实施例适用的第一终端和第二终端的一种软件结构框图。分层架构将第一终端和第二终端的软件系统分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,可以将Android系统分为五层,分别为应用程序层(applications)、应用程序框架层(application framework)、安卓运行时(Androidruntime)和系统库、硬件抽象层(hardware abstract layer,HAL)以及内核层(kernel)。The embodiment of the present application takes the Android system of layered architecture as an example to exemplify the software structure of the first terminal and the second terminal. Figure 3 is a software structure block diagram of the first terminal and the second terminal applicable to the embodiment of the present application. The layered architecture divides the software system of the first terminal and the second terminal into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into five layers, namely, application layer (applications), application framework layer (application framework), Android runtime (Android runtime) and system library, hardware abstract layer (hardware abstract layer, HAL) and kernel layer (kernel).

应用程序层可以包括一系列应用程序包,应用程序层通过调用应用程序框架层所提供的应用程序接口(application programming interface,API)运行应用程序。如图3所示,第二终端的应用程序包可以包括数字键盘,计算器,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。The application layer may include a series of application packages, and the application layer runs the application by calling the application programming interface (API) provided by the application framework layer. As shown in FIG3 , the application package of the second terminal may include applications such as a numeric keyboard, a calculator, a gallery, a calendar, a call, a map, a navigation, a WLAN, a Bluetooth, a music, a video, and a short message.

应用程序框架层为应用程序层的应用程序提供API和编程框架。应用程序框架层包括一些预先定义的函数。如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。The application framework layer provides API and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 3, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。电话管理器用于提供第一终端和第二终端的通信功能。例如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data can include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying pictures. The phone manager is used to provide communication functions between the first terminal and the second terminal. For example, the management of call status (including connected, hung up, etc.). The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction.

安卓运行时包括核心库和虚拟机。安卓运行时负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection. The system library can include multiple functional modules. For example: surface manager, media library, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成和图层处理等。2D图形引擎是2D绘图的绘图引擎。The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of multiple common audio and video formats, as well as static image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.

硬件抽象层,可以包含多个库模块,库模块如可以为摄像头库模块、马达库模块等。Android系统可以为设备硬件加载相应的库模块,进而实现应用程序框架层访问设备硬件的目的。设备硬件可以包括如第一终端和第二终端中的马达、摄像头等。The hardware abstraction layer may include multiple library modules, such as a camera library module, a motor library module, etc. The Android system may load the corresponding library module for the device hardware, thereby enabling the application framework layer to access the device hardware. The device hardware may include a motor, a camera, etc. in the first terminal and the second terminal.

内核层是硬件和软件之间的层。内核层用于驱动硬件,使得硬件工作。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,马达驱动等,本申请实施例对此不做限制。The kernel layer is a layer between hardware and software. The kernel layer is used to drive the hardware to make the hardware work. The kernel layer at least includes display driver, camera driver, audio driver, sensor driver, motor driver, etc., which are not limited in the embodiments of the present application.

下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The following specific embodiments are used to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

下面,以第一终端为笔记本电脑100、第二终端为手机200为例,对本申请实施例提供的数据输入方法进行说明,该示例并不构成对本申请实施例的限定。下述实施例可以相互结合,对于相同或相似的概念或过程不再赘述。Below, the data input method provided by the embodiment of the present application is described by taking the first terminal as a laptop computer 100 and the second terminal as a mobile phone 200 as an example, and this example does not constitute a limitation on the embodiment of the present application. The following embodiments can be combined with each other, and the same or similar concepts or processes will not be repeated.

如图4所示,当用户利用笔记本电脑100编辑目标文件时,笔记本电脑100显示第一界面101。其中,第一界面101包括处于编辑中的目标文件。目标文件中包括可以输入数字的焦点位置,其中,焦点位置可以为光标的位置。若用户想要在目标文件的焦点位置输入数字,则笔记本电脑100和手机200之间可以建立通信连接。其中,通信连接可以是蓝牙连接、Wi-Fi连接或者NFC连接等,在此不作限定。As shown in FIG4 , when a user uses a laptop computer 100 to edit a target file, the laptop computer 100 displays a first interface 101. The first interface 101 includes a target file being edited. The target file includes a focus position where a number can be input, wherein the focus position can be the position of a cursor. If the user wants to input a number at the focus position of the target file, a communication connection can be established between the laptop computer 100 and the mobile phone 200. The communication connection can be a Bluetooth connection, a Wi-Fi connection, or an NFC connection, etc., which is not limited here.

下面,以笔记本电脑100和手机200之间通过蓝牙连接为例,说明笔记本电脑100与手机200建立通信连接的过程(附图中未示)。Next, the process of establishing a communication connection between the laptop computer 100 and the mobile phone 200 is described by taking the Bluetooth connection between the laptop computer 100 and the mobile phone 200 as an example (not shown in the drawings).

手机200可以响应于输入的对蓝牙功能的打开操作,发射蓝牙信号。其中,蓝牙信号携带有手机200的标识“HONOR50”。The mobile phone 200 can transmit a Bluetooth signal in response to the input operation of turning on the Bluetooth function, wherein the Bluetooth signal carries the logo “HONOR50” of the mobile phone 200 .

笔记本电脑100可以显示蓝牙搜索对话框。笔记本电脑100可以搜索附近的蓝牙信号,笔记本电脑100在蓝牙搜索对话框,显示搜索到蓝牙名称列表。其中,蓝牙名称列表中包括手机200的标识“HONOR50”。笔记本电脑100可以响应于对标识“HONOR50”的触发操作,显示密钥输入区域和加入按钮。笔记本电脑100可以接收在密钥输入区域输入的用于连接手机200的蓝牙的密钥。进而,笔记本电脑100可以响应于对加入按钮的触发操作,向手机200发送连接请求。其中,连接请求携带有笔记本电脑100的通信地址“192.168.1.101”和标识“HONOR-Computer”。The laptop computer 100 may display a Bluetooth search dialog box. The laptop computer 100 may search for nearby Bluetooth signals, and the laptop computer 100 may display a list of Bluetooth names found in the Bluetooth search dialog box. The Bluetooth name list includes the identifier "HONOR50" of the mobile phone 200. In response to a trigger operation on the identifier "HONOR50", the laptop computer 100 may display a key input area and a join button. The laptop computer 100 may receive a key for connecting to the Bluetooth of the mobile phone 200 entered in the key input area. Furthermore, the laptop computer 100 may send a connection request to the mobile phone 200 in response to a trigger operation on the join button. The connection request carries the communication address "192.168.1.101" of the laptop computer 100 and the identifier "HONOR-Computer".

手机200接收来自笔记本电脑100的连接请求,显示第一提示信息。在第一提示信息内显示有文字信息“要与以下设备连接:“HONOR-Computer”、取消按钮、以及确认按钮。手机200可以响应于用户对确认按钮的触发操作,根据笔记本电脑100的通信地址与笔记本电脑100建立通信连接。在连接成功后,手机200取消显示第一提示信息,而是显示第二提示信息“已经与“HONOR-Computer”连接成功”,以提示用户连接成功。The mobile phone 200 receives a connection request from the laptop computer 100 and displays a first prompt message. The first prompt message displays a text message "To connect to the following device: "HONOR-Computer", a cancel button, and a confirmation button. The mobile phone 200 can establish a communication connection with the laptop computer 100 according to the communication address of the laptop computer 100 in response to the user's triggering operation of the confirmation button. After the connection is successful, the mobile phone 200 cancels the display of the first prompt message and instead displays a second prompt message "Connected successfully with "HONOR-Computer"" to prompt the user that the connection is successful.

需要说明的是,上述的在笔记本电脑100与手机200通信连接的具体实现方式还可以替换为下述的方式:笔记本电脑100显示第一界面101。笔记本电脑100识别到显示的界面为第一界面101且可以响应到用户的目标操作时,进行设备发现。当笔记本电脑100发现手机200的情况下,与手机200建立通信连接,如此可以实现笔记本电脑100与手机200的通信。其中,目标操作可以是对目标按键(如空格键,“ctrl”键等)的长按操作。当然地,目标操作还可以替换为用户输入的用于指示通信连接的语音信息,如可以是但不限于“请连接附近的设备”的语音信息。其中,发现手机200的方式可以是识别NFC标识、蓝牙标识以及Wi-Fi标识等,在此不做限定。It should be noted that the above-mentioned specific implementation method of the communication connection between the laptop computer 100 and the mobile phone 200 can also be replaced by the following method: the laptop computer 100 displays the first interface 101. When the laptop computer 100 recognizes that the displayed interface is the first interface 101 and can respond to the user's target operation, the device is discovered. When the laptop computer 100 discovers the mobile phone 200, it establishes a communication connection with the mobile phone 200, so that the communication between the laptop computer 100 and the mobile phone 200 can be realized. Among them, the target operation can be a long press operation on the target key (such as the space bar, the "ctrl" key, etc.). Of course, the target operation can also be replaced by a voice message input by the user to indicate the communication connection, such as but not limited to the voice message of "Please connect to nearby devices". Among them, the way to discover the mobile phone 200 can be to identify NFC tags, Bluetooth tags, and Wi-Fi tags, etc., which are not limited here.

在笔记本电脑100与手机200连接成功后,手机200可以显示第二界面203。其中,第二界面203包括数字键盘204。下面,结合图5和图6分两种情况说明,手机200如何显示第二界面203。After the notebook computer 100 is successfully connected to the mobile phone 200, the mobile phone 200 can display the second interface 203. The second interface 203 includes a numeric keyboard 204. Next, how the mobile phone 200 displays the second interface 203 is described in two cases in conjunction with FIG. 5 and FIG. 6.

第一种情况:笔记本电脑100可以响应于用户的触发操作,控制手机200显示第二界面203。The first case: the notebook computer 100 can control the mobile phone 200 to display the second interface 203 in response to a trigger operation of the user.

如图5中的(a)所示,笔记本电脑100可以响应于用户对目标按键的长按操作,识别用户输入的语音信息。在图5中的(a)中,目标按键可以为空格键103。需要说明的是,目标按键还可以为Ctrl键、或Shift键等,在此不作限定。当笔记本电脑100识别到用户输入的语音信息用于指示打开数字键盘的情况下,向手机200发送第一控制指令,第一控制指令用于指示手机200显示第二界面203。在图5中的(a)中,用于指示打开数字键盘的语音信息可以为“打开数字键盘”。需要说明的是,用于指示打开数字键盘的语音信息还可以是“请共享数字键盘”等语音信息,在此不作限定。另外,笔记本电脑100还可以在单独响应到用户对目标按键(如空格键103)的长按操作或者单独识别到用户输入的语音信息时,向手机200发送第一控制指令,在此不作限定。As shown in (a) of FIG. 5 , the laptop computer 100 can recognize the voice information input by the user in response to the user's long press operation on the target key. In (a) of FIG. 5 , the target key can be the space key 103. It should be noted that the target key can also be the Ctrl key, the Shift key, etc., which are not limited here. When the laptop computer 100 recognizes that the voice information input by the user is used to indicate the opening of the numeric keypad, the first control instruction is sent to the mobile phone 200, and the first control instruction is used to instruct the mobile phone 200 to display the second interface 203. In (a) of FIG. 5 , the voice information for indicating the opening of the numeric keypad can be "Open the numeric keypad". It should be noted that the voice information for indicating the opening of the numeric keypad can also be voice information such as "Please share the numeric keypad", which is not limited here. In addition, the laptop computer 100 can also send the first control instruction to the mobile phone 200 when it responds to the user's long press operation on the target key (such as the space key 103) or recognizes the voice information input by the user alone, which is not limited here.

如图5中的(b)所示,手机200在接收到来自笔记本电脑100的第一控制指令之后,手机200响应于第一控制指令,显示第二界面203。其中,第二界面203包括数字键盘204。As shown in FIG5( b ), after receiving the first control instruction from the notebook computer 100 , the mobile phone 200 displays the second interface 203 in response to the first control instruction. The second interface 203 includes a numeric keyboard 204 .

结合图5(b)可知,数字键盘204位于第二界面203中,即位于虚拟用户界面UI(userinterface)中,更符合用户的使用习惯,可以提高用户的工作效率。进一步地,图5(b)中的数字键盘204呈矩阵式的排列方式,也更符合用户的使用习惯,可以更进一步地提高用户的工作效率。当然地,数字键盘204的排列方式不仅限于矩阵式,还可以为其他符合用户使用习惯的排列方式,在此不作限定。As shown in FIG. 5( b ), the numeric keypad 204 is located in the second interface 203 , that is, in the virtual user interface UI (user interface), which is more in line with the user's usage habits and can improve the user's work efficiency. Furthermore, the numeric keypad 204 in FIG. 5( b ) is arranged in a matrix, which is also more in line with the user's usage habits and can further improve the user's work efficiency. Of course, the arrangement of the numeric keypad 204 is not limited to the matrix, and can also be other arrangements that meet the user's usage habits, which are not limited here.

可选地,上述的“笔记本电脑100可以响应于用户对目标按键的长按操作,识别用户输入的语音信息,当笔记本电脑100识别到用户输入的语音信息用于指示打开数字键盘的情况下,向手机200发送第一控制指令”,可以被替换为:笔记本电脑100响应于用户对目标快捷键的触发操作,向手机200发送第一控制指令。其中,目标快捷键可以为“Ctrl+Alt+P”、或“Ctrl+F1”等,在此不作限定。Optionally, the above “the laptop computer 100 can respond to the user's long press operation on the target key, recognize the voice information input by the user, and when the laptop computer 100 recognizes that the voice information input by the user is used to instruct to open the numeric keypad, send a first control instruction to the mobile phone 200” can be replaced by: the laptop computer 100 responds to the user's trigger operation on the target shortcut key, and sends the first control instruction to the mobile phone 200. The target shortcut key can be "Ctrl+Alt+P" or "Ctrl+F1", etc., which is not limited here.

另外,上述的手机200在接收到来自笔记本电脑100的第一控制指令之前,手机200手机200不仅可以是显示系统主界面201,还可以显示其他任意的界面,在此不作限定。In addition, before the mobile phone 200 receives the first control instruction from the notebook computer 100 , the mobile phone 200 may display not only the system main interface 201 , but also any other interface, which is not limited here.

第二种情况:手机200可以响应于用户的触发操作,显示第二界面203。The second situation: the mobile phone 200 can display the second interface 203 in response to a triggering operation of the user.

如图6中的(a)所示,手机200显示系统主界面201,在系统主界面中201中包括数字键盘204的图标。如图6中的(b)所示,手机200响应于用户对数字键盘204的图标的触发操作,显示第二界面203,第二界面203包括数字键盘204。As shown in (a) of FIG6 , the mobile phone 200 displays a system main interface 201, which includes an icon of a numeric keyboard 204. As shown in (b) of FIG6 , the mobile phone 200 displays a second interface 203 in response to a user triggering operation on the icon of the numeric keyboard 204, and the second interface 203 includes a numeric keyboard 204.

另外,在第二界面203中还包括第一控件205。如图6中的(b)-图6中的(c)所示,手机200还可以响应于用户对第一控件205的触发操作,向笔记本电脑100发送第二控制指令。笔记本电脑100响应于第二控制指令,进入预设模式。在预设模式下,笔记本电脑100用于识别来自手机200的第一目标数据。其中,第一目标数据是手机200的虚拟数字按键被触发时产生的。In addition, the second interface 203 also includes a first control 205. As shown in (b) to (c) of FIG. 6, the mobile phone 200 can also send a second control instruction to the laptop computer 100 in response to the user's triggering operation on the first control 205. The laptop computer 100 enters the preset mode in response to the second control instruction. In the preset mode, the laptop computer 100 is used to identify the first target data from the mobile phone 200. The first target data is generated when the virtual digital key of the mobile phone 200 is triggered.

另外,上述使得手机200显示第二界面203的方式,不仅限于上述的两种方式,还可以是手机200接收来自笔记本电脑100发送的第一界面101的界面标识,手机200识别到第一界面101的界面标识后,显示第二界面203。可以理解地,在手机200中,第一界面101的界面标识与第二界面203存在映射关系。如此,可以实现笔记本电脑100与手机200建立通信连接后,手机200自动跳转显示第二界面203。In addition, the above-mentioned method of making the mobile phone 200 display the second interface 203 is not limited to the above-mentioned two methods, and the mobile phone 200 may also receive the interface identifier of the first interface 101 sent from the laptop computer 100, and after the mobile phone 200 recognizes the interface identifier of the first interface 101, it displays the second interface 203. It can be understood that in the mobile phone 200, there is a mapping relationship between the interface identifier of the first interface 101 and the second interface 203. In this way, it can be achieved that after the laptop computer 100 and the mobile phone 200 establish a communication connection, the mobile phone 200 automatically jumps to display the second interface 203.

下面结合图7说明,手机200在显示第二界面203后,如何响应于用户对第二界面203中的虚拟数字按键的触发操作,在笔记本电脑100的第一界面101的目标文件的焦点位置输入数字。示例性地,在笔记本电脑100的第一界面101中的目标文件的焦点位置输入数字包括但不限于以下两种情况:The following describes, in conjunction with FIG. 7 , how the mobile phone 200, after displaying the second interface 203, responds to the user's triggering operation of the virtual numeric keypad in the second interface 203 to input a number at the focus position of the target file in the first interface 101 of the notebook computer 100. Exemplarily, inputting a number at the focus position of the target file in the first interface 101 of the notebook computer 100 includes but is not limited to the following two situations:

第一种情况:如图7中的(a)所示,手机200可以响应于用户对数字键盘204中的虚拟数字按键“1”的触发操作,向笔记本电脑100发送包括有数字“1”的数据包。如图7中的(b)所示,笔记本电脑100接收来自手机200的包括数字“1”的数据包,在笔记本电脑100的第一界面101的目标文件的焦点位置显示数字“1”。可以理解地,数字“1”即上述的第一目标数据。当然地,上述的数字“1”还可以替换其他数字,如数字“2”、数字“3”、运算符号“+”以及运算符号“-”等,在此不做限定。The first case: As shown in (a) of FIG. 7 , the mobile phone 200 can send a data packet including the number "1" to the laptop computer 100 in response to the user's triggering operation on the virtual number key "1" in the numeric keypad 204. As shown in (b) of FIG. 7 , the laptop computer 100 receives the data packet including the number "1" from the mobile phone 200, and displays the number "1" at the focus position of the target file of the first interface 101 of the laptop computer 100. It can be understood that the number "1" is the first target data mentioned above. Of course, the number "1" mentioned above can also be replaced by other numbers, such as the number "2", the number "3", the operation symbol "+" and the operation symbol "-", etc., which are not limited here.

第二种情况:笔记本电脑100和手机200均存储有目标表格,其中,目标表格用于指示虚拟数字按键与键盘标识的关联关系。其中,键盘标识可以为第一键控代码或者第二键控代码。当键盘标识为第一键控代码的情况下,上述的关联关系为第一映射关系;当键盘标识为第二键控代码的情况下,上述的关联关系为第二映射关系。The second case: the laptop computer 100 and the mobile phone 200 both store a target table, wherein the target table is used to indicate the association relationship between the virtual numeric keys and the keyboard identifier. The keyboard identifier can be a first key code or a second key code. When the keyboard identifier is the first key code, the above association relationship is a first mapping relationship; when the keyboard identifier is the second key code, the above association relationship is a second mapping relationship.

示例性地,一方面,当键盘标识为第一键控代码时,目标表格的内容可以如下表1所示:Exemplarily, on one hand, when the keyboard identifier is the first key code, the content of the target table may be as shown in Table 1 below:

虚拟数字按键Virtual number keys 第一键控代码First key code 虚拟数字按键“0”Virtual number key "0" 9696 虚拟数字按键“1”Virtual number key "1" 9797 虚拟数字按键“2”Virtual number key "2" 9898 虚拟数字按键“3”Virtual number key "3" 9999 虚拟数字按键“4”Virtual number key "4" 100100 虚拟数字按键“5”Virtual number key "5" 101101 虚拟数字按键“6”Virtual number key "6" 102102 虚拟数字按键“7”Virtual number key "7" 103103 虚拟数字按键“8”Virtual number key "8" 104104 虚拟数字按键“9”Virtual number key "9" 105105 虚拟运算按键“+”Virtual operation key "+" 107107 换行按键“Enter”Line break key "Enter" 1313 虚拟运算按键“-”Virtual operation key "-" 109109 按键“.”button"." 110110 虚拟运算按键“/”Virtual operation key "/" 111111 虚拟运算按键“*”Virtual operation key "*" 106106

表1Table 1

如图7中的(a)所示,手机200可以响应于用户对数字键盘204中的虚拟数字按键“1”的触发操作,从手机200存储的目标表格中,查找出与虚拟数字按键“1”存在关联关系的第一键控代码“97”。手机200向笔记本电脑100发送第一键控代码“97”。可以理解地,第一键控代码“97”即上述的第一目标数据。笔记本电脑100接收来自手机200的第一键控代码“97”,从笔记本电脑100的目标表格中,查找到与第一键控代码“97”对应的虚拟数字按键“1”。如图7中的(b)所示,进而,笔记本电脑100在第一界面101的目标文件的焦点位置显示数字“1”。As shown in (a) of FIG7 , in response to the user triggering the virtual numeric key “1” in the numeric keypad 204, the mobile phone 200 can find out the first key code “97” associated with the virtual numeric key “1” from the target table stored in the mobile phone 200. The mobile phone 200 sends the first key code “97” to the laptop computer 100. It can be understood that the first key code “97” is the first target data mentioned above. The laptop computer 100 receives the first key code “97” from the mobile phone 200, and finds out the virtual numeric key “1” corresponding to the first key code “97” from the target table of the laptop computer 100. As shown in (b) of FIG7 , the laptop computer 100 then displays the number “1” at the focus position of the target file of the first interface 101.

另外,上述的虚拟数字按键“1”还可以替换为其他的虚拟数字按键。例如,虚拟数字按键“1”还可以被替换为虚拟数字按键“5”。手机200可以响应于用户对数字键盘204中的虚拟数字按键“5”的触发操作,从手机200存储的目标表格中,查找出与虚拟数字按键“5”存在关联关系的第一键控代码“101”。手机200向笔记本电脑100发送第一键控代码“101”。可以理解地,第一键控代码“101”即上述的第一目标数据。笔记本电脑100接收来自手机200的第一键控代码“101”,从笔记本电脑100的目标表格中,查找到与第一键控代码“101”对应的虚拟数字按键“5”。进而,笔记本电脑100在第一界面101显示的目标文件中数字“5”(附图中未示)。In addition, the above-mentioned virtual number key "1" can also be replaced by other virtual number keys. For example, the virtual number key "1" can also be replaced by the virtual number key "5". In response to the user's triggering operation on the virtual number key "5" in the numeric keypad 204, the mobile phone 200 can find out the first key code "101" associated with the virtual number key "5" from the target table stored in the mobile phone 200. The mobile phone 200 sends the first key code "101" to the laptop computer 100. It can be understood that the first key code "101" is the first target data mentioned above. The laptop computer 100 receives the first key code "101" from the mobile phone 200, and finds the virtual number key "5" corresponding to the first key code "101" from the target table of the laptop computer 100. Furthermore, the laptop computer 100 displays the number "5" (not shown in the accompanying drawings) in the target file on the first interface 101.

另外,数字键盘204还可以包括虚拟运算按键和换行按键。示例性地,仍如图7中的(a)所示,虚拟运算按键可以包括虚拟运算按键“+”、虚拟运算按键“-”以及换行按键“Enter”。而且,虚拟运算按键“+”、虚拟运算按键“-”以及换行按键“Enter”在数字键盘204中排列成一行,与虚拟数字按键“0-9”结合起来呈矩阵式排列。In addition, the numeric keyboard 204 may also include virtual operation keys and line feed keys. For example, as still shown in (a) of FIG. 7 , the virtual operation keys may include a virtual operation key “+”, a virtual operation key “-”, and a line feed key “Enter”. Moreover, the virtual operation key “+”, the virtual operation key “-”, and the line feed key “Enter” are arranged in a row in the numeric keyboard 204, and are combined with the virtual numeric keys “0-9” to form a matrix arrangement.

目标表格中还可以包括虚拟运算按键、换行按键分别与第一键控代码的第一映射关系。例如,在目标表格中,虚拟运算按键“+”与第一键控代码“107”映射,换行按键“Enter”与第一键控代码“108”映射,虚拟运算按键“-”与第一键控代码“109”映射(表1中未示意出)。如此,手机200可以响应于用户对数字键盘204中的虚拟数字按键和虚拟运算按键的触发操作,在笔记本电脑100的第一界面101的目标文件的焦点位置输入数字、运算符号以及运算结果。如此,实现了手机200向笔记本电脑100共享计算器的功能;另外,手机200还可以响应于对换行按键的触发操作,在第一界面101中移动焦点位置。而且,由于虚拟运算按键与虚拟数字按键“0-9”结合起来呈矩阵式排列,更符合用户的使用习惯,可以提高用户的工作效率。另外,虚拟运算按键、换行按键与虚拟数字按键“0-9”结合起来还可以是其他的符合用户习惯的排列方式,在此不作限定。The target table may also include a first mapping relationship between a virtual operation key and a line feed key and a first key code. For example, in the target table, the virtual operation key "+" is mapped to the first key code "107", the line feed key "Enter" is mapped to the first key code "108", and the virtual operation key "-" is mapped to the first key code "109" (not shown in Table 1). In this way, the mobile phone 200 can respond to the user's triggering operation of the virtual numeric keys and the virtual operation keys in the numeric keypad 204, and input numbers, operation symbols and operation results at the focus position of the target file of the first interface 101 of the notebook computer 100. In this way, the function of the mobile phone 200 sharing a calculator with the notebook computer 100 is realized; in addition, the mobile phone 200 can also move the focus position in the first interface 101 in response to the triggering operation of the line feed key. Moreover, since the virtual operation keys and the virtual numeric keys "0-9" are combined in a matrix arrangement, it is more in line with the user's usage habits and can improve the user's work efficiency. In addition, the virtual operation keys, line feed keys and virtual number keys "0-9" may be combined in other arrangements that conform to user habits, which are not limited here.

示例性地,另一方面,当键盘标识为第二键控代码时,目标表格的内容还可以如下表2所示:Exemplarily, on the other hand, when the keyboard identifier is the second key code, the content of the target table may also be as shown in the following Table 2:

表2Table 2

仍如图7中的(a)所示,手机200可以响应于用户对数字键盘204中的虚拟数字按键“1”的触发操作,从手机200存储的目标表格中,查找出与虚拟数字按键“1”对应的第二键控代码“49”。手机200向笔记本电脑100发送第二键控代码“49”。可以理解地,第二键控代码“49”即上述的第一目标数据。笔记本电脑100接收来自手机200的第二键控代码“49”,从笔记本电脑100的目标表格中,查找到第二键控代码“49”对应的虚拟数字按键“1”。仍如图7中的(b)所示,进而,笔记本电脑100在第一界面101的目标文件的焦点位置显示数字“1”。Still as shown in (a) of FIG7 , the mobile phone 200 can respond to the user's triggering operation on the virtual numeric key "1" in the numeric keypad 204, and find the second key code "49" corresponding to the virtual numeric key "1" from the target table stored in the mobile phone 200. The mobile phone 200 sends the second key code "49" to the laptop computer 100. It can be understood that the second key code "49" is the first target data mentioned above. The laptop computer 100 receives the second key code "49" from the mobile phone 200, and finds the virtual numeric key "1" corresponding to the second key code "49" from the target table of the laptop computer 100. Still as shown in (b) of FIG7 , the laptop computer 100 then displays the number "1" at the focus position of the target file of the first interface 101.

与上述的第一种情况中类似地,上述的虚拟数字按键“1”还可以替换为其他的虚拟数字按键。例如,虚拟数字按键“1”还可以被替换为虚拟数字按键“5”。手机200可以响应于用户对数字键盘204中的虚拟数字按键“5”的触发操作,从手机200存储的目标表格中,查找出与虚拟数字按键“5”对应的第二键控代码“53”。可以理解地,第二键控代码“53”即上述的第一目标数据。手机200向笔记本电脑100发送第二键控代码“53”。笔记本电脑100接收来自手机200的第二键控代码“53”,从笔记本电脑100的目标表格中,查找到与第二键控代码“101”对应的虚拟数字按键“5”。进而,笔记本电脑100在第一界面101的目标文件的焦点位置显示数字“5”(附图中未示)。Similar to the first case mentioned above, the virtual number key "1" can also be replaced by other virtual number keys. For example, the virtual number key "1" can also be replaced by the virtual number key "5". In response to the user's triggering operation on the virtual number key "5" in the numeric keypad 204, the mobile phone 200 can find out the second key code "53" corresponding to the virtual number key "5" from the target table stored in the mobile phone 200. It can be understood that the second key code "53" is the first target data mentioned above. The mobile phone 200 sends the second key code "53" to the laptop computer 100. The laptop computer 100 receives the second key code "53" from the mobile phone 200, and finds the virtual number key "5" corresponding to the second key code "101" from the target table of the laptop computer 100. Furthermore, the laptop computer 100 displays the number "5" at the focus position of the target file of the first interface 101 (not shown in the accompanying drawings).

与上述的第一种情况中类似地,仍如图7中的(a)所示,数字键盘204还可以包括虚拟运算按键和换行按键。示例性地,虚拟运算按键可以包括虚拟运算按键“+”、虚拟运算按键“-”以及换行按键“Enter”。而且,虚拟运算按键“+”、虚拟运算按键“-”以及换行按键“Enter”在数字键盘204排列成一行,与虚拟数字按键“0-9”结合起来呈矩阵式排列。Similar to the first case described above, as still shown in (a) of FIG. 7 , the numeric keyboard 204 may further include virtual operation keys and line feed keys. Exemplarily, the virtual operation keys may include a virtual operation key “+”, a virtual operation key “-”, and a line feed key “Enter”. Moreover, the virtual operation key “+”, the virtual operation key “-”, and the line feed key “Enter” are arranged in a row on the numeric keyboard 204, and are combined with the virtual numeric keys “0-9” to form a matrix arrangement.

与上述的第一种情况中类似地,目标表格中还可以包括虚拟运算按键、换行按键分别与第二键控代码的第一映射关系。例如,在目标表格中,虚拟运算按键“+”与第二键控代码“43”映射,虚拟运算按键“-”与第二键控代码“45”映射,换行按键“Enter”与第二键控代码“44”映射(表1中未示意出)。如此,手机200可以响应于用户对数字键盘204中的虚拟数字按键和虚拟运算按键的触发操作,在笔记本电脑100的第一界面101的目标文件的焦点位置输入数字、运算符号以及运算结果。如此,实现了手机200向笔记本电脑100共享计算器的功能;另外,手机200还可以响应于对换行按键的触发操作,在第一界面101中移动焦点位置。而且,由于虚拟运算按键、换行按键与虚拟数字按键“0-9”结合起来呈矩阵式排列,更符合用户的使用习惯,可以提高用户的工作效率。另外,虚拟运算按键与虚拟数字按键“0-9”结合起来还可以是其他的符合用户习惯的排列方式,在此不作限定。可以理解地,上述的第二键控代码为美国信息交换标准代码,即ASCLL(american standard code forinformation interchange)代码。Similar to the first case described above, the target table may also include a first mapping relationship between a virtual operation key and a line feed key and a second key code. For example, in the target table, the virtual operation key "+" is mapped to the second key code "43", the virtual operation key "-" is mapped to the second key code "45", and the line feed key "Enter" is mapped to the second key code "44" (not shown in Table 1). In this way, the mobile phone 200 can respond to the user's triggering operation of the virtual numeric keys and virtual operation keys in the numeric keyboard 204, and input numbers, operation symbols and operation results at the focus position of the target file of the first interface 101 of the notebook computer 100. In this way, the function of the mobile phone 200 sharing a calculator with the notebook computer 100 is realized; in addition, the mobile phone 200 can also move the focus position in the first interface 101 in response to the triggering operation of the line feed key. Moreover, since the virtual operation keys, line feed keys and virtual numeric keys "0-9" are combined in a matrix arrangement, it is more in line with the user's usage habits and can improve the user's work efficiency. In addition, the virtual operation keys and the virtual number keys "0-9" can be combined in other arrangements that meet user habits, which is not limited here. It can be understood that the second key code is the American Standard Code for Information Interchange, namely, the ASCII code.

综上所述,手机200可以与笔记本电脑100建立通信连接。在笔记本电脑100与手机200连接成功后,手机200可以获取控制指令(如第一控制指令或第二控制指令)并显示第二界面203。其中,第二界面203包括数字键盘204。手机200在显示第二界面203后,可以响应于用户对第二界面203中的数字键盘204的触发操作,在笔记本电脑100的第一界面101输入数字。进而,由于数字键盘204位于虚拟用户界面UI(user interface)中,即位于第二界面203中,更符合用户的使用习惯,可以提高用户的工作效率。进一步地,图5中的(b)的数字键盘204呈矩阵式的排列方式,更符合用户的使用习惯,可以更进一步地提高用户的工作效率。且无需购买外设键盘,且没有额外的成本。In summary, the mobile phone 200 can establish a communication connection with the laptop computer 100. After the laptop computer 100 is successfully connected to the mobile phone 200, the mobile phone 200 can obtain a control instruction (such as a first control instruction or a second control instruction) and display the second interface 203. Among them, the second interface 203 includes a numeric keyboard 204. After displaying the second interface 203, the mobile phone 200 can respond to the user's triggering operation on the numeric keyboard 204 in the second interface 203 and input numbers in the first interface 101 of the laptop computer 100. Furthermore, since the numeric keyboard 204 is located in the virtual user interface UI (user interface), that is, located in the second interface 203, it is more in line with the user's usage habits and can improve the user's work efficiency. Further, the numeric keyboard 204 in (b) of Figure 5 is arranged in a matrix, which is more in line with the user's usage habits and can further improve the user's work efficiency. And there is no need to purchase an external keyboard, and there is no additional cost.

可以理解地,基于上述的图7中介绍的笔记本电脑100的第一界面101输入数字的原理。手机200可以响应于用户对数字键盘204中的多个虚拟数字按键的连续触发操作,在笔记本电脑100的在第一界面101的目标文件的焦点位置显示多个数字(附图中未示意出)。It can be understood that based on the principle of inputting numbers on the first interface 101 of the notebook computer 100 described in FIG. 7 , the mobile phone 200 can display multiple numbers (not shown in the drawings) at the focus position of the target file on the first interface 101 of the notebook computer 100 in response to the user's continuous triggering operation on multiple virtual numeric keys in the numeric keyboard 204.

另外,通常地,当用户在第一界面101中输入数字的同时,可能具有使用计算器的功能的需求。下面结合图8和图9分别两种方式说明,手机200如何响应于用户的对计算器功能的触发,使得笔记本电脑100在第一界面101中显示计算结果。In addition, generally, when the user inputs numbers in the first interface 101, he may have a need to use the calculator function. The following two methods are respectively described in conjunction with FIG8 and FIG9 to illustrate how the mobile phone 200 responds to the user's triggering of the calculator function so that the notebook computer 100 displays the calculation result in the first interface 101.

第一种方式:如图8中的(a)所示,手机200的第二界面203还显示有用于控制计算器功能打开/关闭的第二控件207。手机200响应于用户对第二控件207的触发操作,在第二界面203中显示第一目标键盘208。仍如图8中的(a)所示,第一目标键盘208包括呈矩阵式分布的虚拟运算按键和虚拟数字按键。The first method: As shown in (a) of FIG8 , the second interface 203 of the mobile phone 200 further displays a second control 207 for controlling the opening/closing of the calculator function. In response to the user's triggering operation on the second control 207, the mobile phone 200 displays a first target keyboard 208 in the second interface 203. Still as shown in (a) of FIG8 , the first target keyboard 208 includes virtual operation keys and virtual number keys distributed in a matrix.

手机200可以响应于用户对第一目标键盘208的虚拟运算按键和虚拟数字按键的触发操作,向笔记本电脑100第二目标数据,其中,第二目标数据是虚拟运算按键和虚拟数字按键被触发时产生的。笔记本电脑100根据接收到第二目标数据,在第一界面101显示第二目标数据和第二目标数据对应的计算结果。当然地,也可以只显示计算结果,在此不作限定。The mobile phone 200 can respond to the user's triggering operation on the virtual operation key and the virtual number key of the first target keyboard 208, and send the second target data to the laptop computer 100, wherein the second target data is generated when the virtual operation key and the virtual number key are triggered. The laptop computer 100 displays the second target data and the calculation result corresponding to the second target data on the first interface 101 according to the received second target data. Of course, only the calculation result can also be displayed, which is not limited here.

示例性地,如图8中的(b)和(c)所示,手机200可以响应于用户对第一目标键盘208中的虚拟数字按键“1”、“5”;虚拟运算按键“×”;虚拟数字按键“8”、“2”以及虚拟运算按键“=”的触发操作,在第一界面101输入150×82=1230。其中,“1230”为笔记本电脑100生成的计算结果。另外,“1230”也可以是笔记本电脑100接收来自手机200的计算结果。如此,实现了手机200向笔记本电脑100共享计算器的功能。由于虚拟运算按键与虚拟数字按键“0-9”结合起来呈矩阵式排列,更符合用户的使用习惯。For example, as shown in (b) and (c) of FIG8 , the mobile phone 200 can respond to the user's triggering operation on the virtual numeric keys "1", "5"; the virtual operation key "×"; the virtual numeric keys "8", "2" and the virtual operation key "=" in the first target keyboard 208, and input 150×82=1230 on the first interface 101. Among them, "1230" is the calculation result generated by the notebook computer 100. In addition, "1230" can also be the calculation result received by the notebook computer 100 from the mobile phone 200. In this way, the function of sharing the calculator from the mobile phone 200 to the notebook computer 100 is realized. Since the virtual operation keys are combined with the virtual numeric keys "0-9" in a matrix arrangement, it is more in line with the user's usage habits.

第二种方式:如图9中的(a)所示,手机200的第二界面203还显示有用于控制计算器功能打开/关闭的第二控件207。手机200响应于用户对第二控件207的触发操作,调用计算器应用并显示计算器应用的第三界面209。在第三界面209中包括第二目标键盘210,且第二目标键盘210包括呈矩阵式分布的虚拟运算按键和虚拟数字按键。另外,虚拟运算按键与虚拟数字按键“0-9”的结合,还可以是其他的符合用户习惯的排列方式,在此不作限定。The second method: As shown in (a) of FIG. 9 , the second interface 203 of the mobile phone 200 also displays a second control 207 for controlling the opening/closing of the calculator function. In response to the user's triggering operation on the second control 207, the mobile phone 200 calls the calculator application and displays the third interface 209 of the calculator application. The third interface 209 includes a second target keyboard 210, and the second target keyboard 210 includes virtual operation keys and virtual number keys distributed in a matrix. In addition, the combination of the virtual operation keys and the virtual number keys "0-9" can also be other arrangements that conform to the user's habits, which are not limited here.

与上述的第一种方式类似地,手机200可以响应于用户对第二目标键盘210的虚拟运算按键和虚拟数字按键的触发操作,向笔记本电脑100第二目标数据,其中,第二目标数据是虚拟运算按键和虚拟数字按键被触发时产生的。笔记本电脑100根据接收到的第二目标数据,在第一界面101显示第二目标数据对应的计算结果。当然地,也可以只显示计算结果,在此不作限定。Similar to the first method described above, the mobile phone 200 can respond to the user's triggering operation of the virtual operation key and the virtual number key of the second target keyboard 210, and send the second target data to the laptop computer 100, wherein the second target data is generated when the virtual operation key and the virtual number key are triggered. The laptop computer 100 displays the calculation result corresponding to the second target data on the first interface 101 according to the received second target data. Of course, only the calculation result can also be displayed, which is not limited here.

示例性地,如图9中的(b)和(c)所示,手机200可以响应于用户对目标键盘208中的虚拟数字按键“1”、“5”;虚拟运算按键“×”;虚拟数字按键“8”、“2”以及虚拟运算按键“=”的触发操作,在第一界面101输入15×82=1230。其中,“1230”为笔记本电脑100生成的计算结果;另外,“1230”也可以是笔记本电脑100接收来自手机200的计算结果。如此,实现了手机200向笔记本电脑100共享计算器的功能。由于虚拟运算按键与虚拟数字按键“0-9”结合起来呈矩阵式排列,更符合用户的使用习惯。另外,虚拟运算按键与虚拟数字按键“0-9”的结合,还可以是其他的符合用户习惯的排列方式,在此不作限定。For example, as shown in (b) and (c) of FIG. 9 , the mobile phone 200 can respond to the user's triggering operation on the virtual numeric keys "1", "5"; the virtual operation key "×"; the virtual numeric keys "8", "2" and the virtual operation key "=" in the target keyboard 208, and input 15×82=1230 on the first interface 101. Among them, "1230" is the calculation result generated by the notebook computer 100; in addition, "1230" can also be the calculation result received by the notebook computer 100 from the mobile phone 200. In this way, the function of sharing the calculator from the mobile phone 200 to the notebook computer 100 is realized. Since the virtual operation keys are combined with the virtual numeric keys "0-9" in a matrix arrangement, it is more in line with the user's usage habits. In addition, the combination of the virtual operation keys and the virtual numeric keys "0-9" can also be other arrangement methods that conform to the user's habits, which are not limited here.

另外,在上述的两种方式中,笔记本电脑100也可以不在第一界面101输入被触发的虚拟运算按键对应的运算符号、被触发的虚拟数字按键对应的数字,而是仅在第一界面101中输入计算结果。In addition, in the above two methods, the notebook computer 100 may not input the operation symbol corresponding to the triggered virtual operation key and the number corresponding to the triggered virtual number key in the first interface 101 , but only input the calculation result in the first interface 101 .

下面,仍然以第一终端为笔记本电脑100、第二终端为手机200为例,结合图10说明上述的图4-图9的数据输入方法的流程。Next, still taking the first terminal being the notebook computer 100 and the second terminal being the mobile phone 200 as an example, the flow of the data input method of FIGS. 4 to 9 described above will be described in conjunction with FIG. 10 .

图10为本申请实施例提供的一种数据输入方法的流程示意图。如图10所示,本申请实施例提供的数据输入方法可以包括如下步骤:FIG10 is a flow chart of a data input method provided in an embodiment of the present application. As shown in FIG10 , the data input method provided in an embodiment of the present application may include the following steps:

S1001:笔记本电脑100与手机200建立通信连接。S1001: The notebook computer 100 establishes a communication connection with the mobile phone 200.

其中,笔记本电脑100与手机200建立通信连接的具体过程,可以参照上述实施例中对图4的介绍,在此不作阐述。The specific process of establishing a communication connection between the laptop computer 100 and the mobile phone 200 may refer to the introduction of FIG. 4 in the above embodiment, and will not be elaborated here.

S1002:笔记本电脑100显示第一界面101。其中,第一界面101包括待编辑的目标文件,目标文件中包括焦点位置。S1002: The notebook computer 100 displays the first interface 101. The first interface 101 includes a target file to be edited, and the target file includes a focus position.

其中,S1001和S1002之间没有先后顺序。例如,S1001可以替换为笔记本电脑100显示第一界面101。其中,第一界面101包括目标文件。S1002可以替换为笔记本电脑与手机200建立通信连接。示例性地,笔记本电脑100识别到显示的界面为第一界面101且可以响应到用户的目标操作时,进行设备发现。当笔记本电脑100发现手机200的情况下,与手机200建立通信连接(图10中未示)。There is no order between S1001 and S1002. For example, S1001 can be replaced by the laptop computer 100 displaying the first interface 101. The first interface 101 includes the target file. S1002 can be replaced by the laptop computer establishing a communication connection with the mobile phone 200. Exemplarily, when the laptop computer 100 recognizes that the displayed interface is the first interface 101 and can respond to the user's target operation, device discovery is performed. When the laptop computer 100 discovers the mobile phone 200, a communication connection is established with the mobile phone 200 (not shown in FIG. 10 ).

其中,目标文件可以是处于编辑中的统计报表、财务报告文档等,在此不作限定。The target file may be a statistical report, financial report document, etc., which is not limited here.

S1003:手机200可以显示第二界面203。其中,第二界面203包括数字键盘204,数字键盘204包括多个虚拟数字按键。S1003: The mobile phone 200 may display a second interface 203. The second interface 203 includes a numeric keyboard 204, and the numeric keyboard 204 includes a plurality of virtual numeric keys.

其中,S1003的具体实现分为以下三种情况:Among them, the specific implementation of S1003 is divided into the following three cases:

第一种情况:笔记本电脑100可以响应于用户的触发操作,向手机200发送第一控制指令。其中,第一控制指令用于指示手机200显示第二界面203。手机200响应于第一控制指令,显示第二界面203。The first case: the notebook computer 100 can send a first control instruction to the mobile phone 200 in response to a trigger operation of the user. The first control instruction is used to instruct the mobile phone 200 to display the second interface 203. The mobile phone 200 displays the second interface 203 in response to the first control instruction.

示例性地,上述用户的触发操作可以为对目标按键的长按操作,和/或识别用户输入的语音信息。其中,语音信息用于指示打开数字键盘。另外,上述的用户的触发操作还可以为对目标快捷键的触发操作,在此不作限定。Exemplarily, the trigger operation of the user may be a long press operation on the target key, and/or recognition of voice information input by the user. The voice information is used to indicate opening the numeric keypad. In addition, the trigger operation of the user may also be a trigger operation on the target shortcut key, which is not limited here.

其中,上述的数字键盘204中的虚拟数字按键可以是呈矩阵式的排列方式,更符合用户的使用习惯,可以更进一步地提高用户的工作效率。当然地,数字键盘204中的虚拟数字按键的排列方式不仅限于矩阵式,还可以为其他符合用户使用习惯的排列方式,在此不作限定。The virtual numeric keys in the numeric keypad 204 may be arranged in a matrix, which is more in line with the user's usage habits and can further improve the user's work efficiency. Of course, the arrangement of the virtual numeric keys in the numeric keypad 204 is not limited to the matrix, but may also be other arrangements that are in line with the user's usage habits, which is not limited here.

需要说明的是,此处第一种情况的具体实现方式,可以具体参照上述实施例中对图5的介绍,在此不再赘述。It should be noted that the specific implementation of the first situation here can refer to the introduction of Figure 5 in the above embodiment, and will not be repeated here.

第二种情况:手机200可以响应于用户的触发操作,显示第二界面203。The second situation: the mobile phone 200 can display the second interface 203 in response to a triggering operation of the user.

示例性地,手机200可以响应于用户对数字键盘204的图标的触发操作,显示第二界面203,第二界面203包括数字键盘204,数字键盘204包括多个虚拟数字按键。Exemplarily, the mobile phone 200 may display the second interface 203 in response to a user triggering operation on an icon of the numeric keyboard 204 , where the second interface 203 includes a numeric keyboard 204 , and the numeric keyboard 204 includes a plurality of virtual numeric keys.

另外,手机200还可以响应于用户对第二界面203中的第一控件205的触发操作,向笔记本电脑100发送第二控制指令。其中,第二控制指令用于指示笔记本电脑100进入预设模式。在预设模式下,笔记本电脑100用于识别来自手机200的第一目标数据。In addition, the mobile phone 200 can also send a second control instruction to the laptop computer 100 in response to the user's triggering operation on the first control 205 in the second interface 203. The second control instruction is used to instruct the laptop computer 100 to enter a preset mode. In the preset mode, the laptop computer 100 is used to identify the first target data from the mobile phone 200.

需要说明的是,此处第二种情况的具体实现方式,可以具体参照上述实施例中对图6的介绍,在此不再赘述。It should be noted that the specific implementation of the second situation here can refer to the introduction of Figure 6 in the above embodiment, and will not be repeated here.

第三种情况:手机200在与笔记本电脑100建立通信连接后,自动跳转到第二界面203。如此,可以减少用户的操作步骤。The third situation: after the mobile phone 200 establishes a communication connection with the notebook computer 100, it automatically jumps to the second interface 203. In this way, the operation steps of the user can be reduced.

S1004:手机200响应于对第二界面203中的虚拟数字按键的触发操作,向笔记本电脑100发送与被触发的虚拟数字按键对应的第一目标数据。S1004 : In response to the triggering operation on the virtual number key in the second interface 203 , the mobile phone 200 sends the first target data corresponding to the triggered virtual number key to the notebook computer 100 .

S1005:笔记本电脑100在第一界面101的焦点位置显示与第一目标数据对应的数字。S1005 : The notebook computer 100 displays a number corresponding to the first target data at a focus position of the first interface 101 .

其中,S1004-S1005的具体实现可以分为以下两种情况:Among them, the specific implementation of S1004-S1005 can be divided into the following two cases:

第一种情况:手机200响应于对数字键盘204中的虚拟数字按键的触发操作,向笔记本电脑100发送包括数字的数据包。笔记本电脑100解析数据包括,在第一界面101显示数据包中的数字。可以理解地,第一种情况中的数字,即上述的第一目标数据。另外,上述的数字还可以被替换为运算符号,在此不作限定。In the first case, the mobile phone 200 sends a data packet including numbers to the laptop computer 100 in response to a trigger operation on a virtual number key in the numeric keypad 204. The laptop computer 100 parses the data including displaying the numbers in the data packet on the first interface 101. It can be understood that the numbers in the first case are the first target data mentioned above. In addition, the numbers mentioned above can also be replaced by operation symbols, which is not limited here.

需要说明的是,此处第一种情况的实现方式,可以参照上述实施例中对图7的介绍,在此不再阐述。It should be noted that the implementation method of the first situation here can refer to the introduction of Figure 7 in the above embodiment, and will not be elaborated here.

第二种情况:手机200响应于对数字键盘204中的虚拟数字按键的触发操作,向笔记本电脑100发送与被触发的虚拟数字按键对应的键盘标识。笔记本电脑100根据接收到的键盘标识,在第一界面101显示与键盘标识对应的数字。另外,上述的数字还可以被替换为运算符号,在此不作限定。The second case: in response to the triggering operation of the virtual numeric key in the numeric keypad 204, the mobile phone 200 sends the keyboard identifier corresponding to the triggered virtual numeric key to the laptop computer 100. Based on the received keyboard identifier, the laptop computer 100 displays the number corresponding to the keyboard identifier on the first interface 101. In addition, the above numbers can also be replaced by operation symbols, which is not limited here.

其中,上述的键盘标识可以是第一键控代码,第一键控代码与虚拟数字按键存在第一映射关系。第一映射关系的具体内容可以参照上述实施例中对表1的介绍,在此不赘述。The keyboard identifier may be a first key code, and a first mapping relationship exists between the first key code and the virtual numeric key. The specific content of the first mapping relationship can refer to the introduction of Table 1 in the above embodiment, which will not be repeated here.

另外,上述的键盘标识还可以是第二键控代码,第二键控代码与虚拟数字按键存在第二映射关系。第二映射关系的具体内容可以参照上述实施例中对表2的介绍,在此不赘述。In addition, the keyboard identifier may also be a second key code, and a second mapping relationship exists between the second key code and the virtual numeric key. The specific content of the second mapping relationship can refer to the introduction of Table 2 in the above embodiment, which will not be repeated here.

需要说明的是,此处第二种情况的实现方式,可以参照上述实施例中对图7的介绍,在此不再阐述。It should be noted that the implementation method of the second situation here can refer to the introduction of Figure 7 in the above embodiment, and will not be elaborated here.

通常地,当用户在第一界面101中输入数字的同时,可能具有使用计算器的功能的需求。下面,结合S1006-S1008说明手机200如何响应于用户的对计算器功能的触发,使得笔记本电脑100在第一界面101中显示计算结果。Generally, when the user inputs numbers in the first interface 101, he may need to use the calculator function. In the following, how the mobile phone 200 responds to the user's triggering of the calculator function so that the notebook computer 100 displays the calculation result in the first interface 101 is described in conjunction with S1006-S1008.

S1006:手机200响应于对第二界面203中的第二控件207的触发操作,显示目标键盘。其中,目标键盘包括呈矩阵式分布的虚拟运算按键和虚拟数字按键。S1006: The mobile phone 200 displays a target keyboard in response to the triggering operation on the second control 207 in the second interface 203. The target keyboard includes virtual operation keys and virtual number keys distributed in a matrix.

其中,S1006的具体实现可以包括以下两种情况:The specific implementation of S1006 may include the following two cases:

第一种情况:手机200响应于对第二界面203中的第二控件207的触发操作,在第二界面203中显示第一目标键盘208。可以理解地,此处的第一目标键盘208即上述的目标键盘。The first case: the mobile phone 200 displays the first target keyboard 208 in the second interface 203 in response to the triggering operation on the second control 207 in the second interface 203. It can be understood that the first target keyboard 208 here is the target keyboard mentioned above.

需要说明的是,此处第一种情况的实现方式,可以参照上述实施例中对图8的介绍,在此不再阐述。It should be noted that the implementation method of the first situation here can refer to the introduction of Figure 8 in the above embodiment, and will not be elaborated here.

第二种情况:手机200响应于对第二界面203中的第二控件207的触发操作,显示计算器应用的第三界面209。在第三界面209中包括第二目标键盘210,且第二目标键盘210包括呈矩阵式分布的虚拟运算按键和虚拟数字按键。可以理解地,此处的第二目标键盘210即上述的目标键盘。The second case: the mobile phone 200 displays the third interface 209 of the calculator application in response to the triggering operation of the second control 207 in the second interface 203. The third interface 209 includes a second target keyboard 210, and the second target keyboard 210 includes virtual operation keys and virtual number keys distributed in a matrix. It can be understood that the second target keyboard 210 here is the target keyboard mentioned above.

需要说明的是,此处第二种情况的实现方式,可以参照上述实施例中对图9的介绍,在此不再阐述。It should be noted that the implementation method of the second situation here can refer to the introduction of Figure 9 in the above embodiment, and will not be elaborated here.

S1007:手机200响应于对虚拟运算按键和虚拟数字按键的触发操作,向笔记本电脑100发送第二目标数据。其中,第二目标数据是虚拟运算按键和虚拟数字按键被触发时产生的。S1007: In response to the triggering operation of the virtual operation key and the virtual number key, the mobile phone 200 sends the second target data to the notebook computer 100. The second target data is generated when the virtual operation key and the virtual number key are triggered.

S1008:笔记本电脑100在第一界面101显示与第二目标数据对应的计算结果。S1008 : The notebook computer 100 displays the calculation result corresponding to the second target data on the first interface 101 .

另外,上述的介绍本申请实施例提供的数据输入方法中,提到的触发操作可以包括:点击操作、长按操作、以及手势触发操作等,在此不做限定。In addition, in the above-mentioned data input method provided in the embodiment of the present application, the trigger operation mentioned may include: click operation, long press operation, and gesture trigger operation, etc., which are not limited here.

请参阅图11,本申请还提供一种终端设备,包括:通信单元1101、显示单元1102以及处理单元1103。Please refer to FIG. 11 . The present application further provides a terminal device, including: a communication unit 1101 , a display unit 1102 , and a processing unit 1103 .

其中,通信单元1101,用于与第一终端建立通信连接。显示单元1102,用于在第一终端显示第一界面的过程中,显示第二界面。其中,第一界面包括可输入数字的焦点位置,第二界面包括数字键盘,数字键盘包括虚拟数字按键。处理单元1103,用于在第二界面中接收对虚拟数字按键的触发操作,控制第一终端在焦点位置显示虚拟数字按键对应的数字。The communication unit 1101 is used to establish a communication connection with the first terminal. The display unit 1102 is used to display the second interface while the first terminal is displaying the first interface. The first interface includes a focus position where numbers can be input, and the second interface includes a numeric keyboard, which includes virtual numeric keys. The processing unit 1103 is used to receive a trigger operation on the virtual numeric key in the second interface, and control the first terminal to display the number corresponding to the virtual numeric key at the focus position.

在一种可能的实施方式中,通信单元1101,还用于向第一终端发送第一目标数据。其中,第一目标数据是虚拟数字按键被触发时生成的。In a possible implementation, the communication unit 1101 is further configured to send first target data to the first terminal, wherein the first target data is generated when the virtual digital key is triggered.

进一步地,第一目标数据为键盘标识。处理单元1103,具体用于在第二界面中接收对虚拟数字按键的触发操作,查找与被触发的虚拟数字按键对应的键盘标识。通信单元1101,具体用于向第一终端发送键盘标识。Further, the first target data is a keyboard identifier. The processing unit 1103 is specifically configured to receive a triggering operation on a virtual numeric key in the second interface, and search for a keyboard identifier corresponding to the triggered virtual numeric key. The communication unit 1101 is specifically configured to send the keyboard identifier to the first terminal.

或者,进一步地,第一目标数据为包含有数字的数据包。通信单元1101,还用于向第一终端的发送数据包。其中,数据包是虚拟数字按键被触发时生成的。Alternatively, further, the first target data is a data packet containing numbers. The communication unit 1101 is further configured to send a data packet to the first terminal, wherein the data packet is generated when the virtual digital key is triggered.

在一种可能的实施方式中,数字键盘还包括虚拟运算按键和/或虚拟换行按键。处理单元1103还用于在第二界面中接收对虚拟运算按键的触发操作,并控制第一终端在焦点位置显示虚拟运算按键对应的运算符号。和/或,处理单元1103还用于在第二界面中接收对虚拟换行按键的触发操作,并第一终端在第一界面中移动焦点位置。In a possible implementation, the numeric keypad further includes a virtual operation key and/or a virtual line break key. The processing unit 1103 is further configured to receive a trigger operation on the virtual operation key in the second interface, and control the first terminal to display the operation symbol corresponding to the virtual operation key at the focus position. And/or, the processing unit 1103 is further configured to receive a trigger operation on the virtual line break key in the second interface, and the first terminal moves the focus position in the first interface.

在一种可能的实施方式中,通信单元1101,还用于接收来自第一终端的第一控制指令。In a possible implementation, the communication unit 1101 is further configured to receive a first control instruction from the first terminal.

显示单元1102,还用于响应于第一控制指令,显示第二界面。The display unit 1102 is further configured to display a second interface in response to the first control instruction.

或者,在另一种可能的实施方式中,通信单元1101,还用于接收来自第一终端的第一界面的界面标识。显示单元1102,具体用于在识别到第一界面的界面标识后,显示第二界面。Alternatively, in another possible implementation, the communication unit 1101 is further configured to receive an interface identifier of the first interface from the first terminal. The display unit 1102 is specifically configured to display the second interface after identifying the interface identifier of the first interface.

或者,在另一种可能的实施方式中,显示单元1102,具体用于响应于用户的数字键盘的图标的触发操作,显示第二界面。Alternatively, in another possible implementation, the display unit 1102 is specifically configured to display the second interface in response to a triggering operation of an icon on a numeric keyboard of the user.

进一步地,第二界面包括第一控件,通信单元1101,还用于响应于对第一控件的触发操作,向第一终端发送第二控制指令;第二控制指令用于指示第一终端进入预设模式,其中,在预设模式下,第一终端用于识别来自第一终端的第一目标数据,第一目标数据是虚拟数字按键被触发时产生的。Furthermore, the second interface includes a first control, a communication unit 1101, and is also used to send a second control instruction to the first terminal in response to a triggering operation on the first control; the second control instruction is used to instruct the first terminal to enter a preset mode, wherein, in the preset mode, the first terminal is used to identify first target data from the first terminal, and the first target data is generated when the virtual digital key is triggered.

或者,在一种可能的实施方式中,数字键盘中的虚拟数字按键呈矩阵式排布。Alternatively, in a possible implementation, the virtual numeric keys in the numeric keyboard are arranged in a matrix.

示例性的,图12为本申请实施例提供的一种第一终端或第二终端的硬件结构示意图,如图12所示,该第一终端或第二终端包括处理器1201,通信线路1204以及至少一个通信接口(图12中示例性的以通信接口1203为例进行说明)。Exemplarily, Figure 12 is a schematic diagram of the hardware structure of a first terminal or a second terminal provided in an embodiment of the present application. As shown in Figure 12, the first terminal or the second terminal includes a processor 1201, a communication line 1204 and at least one communication interface (the communication interface 1203 is exemplarily used as an example in Figure 12).

处理器1201可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The processor 1201 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

通信线路1204可包括在上述组件之间传送信息的电路。Communications link 1204 may include circuitry to transmit information between the above-described components.

通信接口1203,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线局域网(wireless local area networks,WLAN)等。The communication interface 1203 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.

可能的,该第一终端或第二终端还可以包括存储器1202。Possibly, the first terminal or the second terminal may further include a memory 1202 .

存储器1202可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compactdisc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路1204与处理器相连接。存储器也可以和处理器集成在一起。The memory 1202 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a communication line 1204. The memory may also be integrated with the processor.

其中,存储器1202用于存储执行本申请方案的计算机执行指令,并由处理器1201来控制执行。处理器1201用于执行存储器1202中存储的计算机执行指令,从而实现本申请实施例所提供的第一终端或第二终端执行的数据输入方法。The memory 1202 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 1201. The processor 1201 is used to execute the computer-executable instructions stored in the memory 1202, thereby implementing the data input method executed by the first terminal or the second terminal provided in the embodiment of the present application.

可能的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Possibly, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, and the embodiments of the present application do not specifically limit this.

在具体实现中,作为一种实施例,处理器1201可以包括一个或多个CPU,例如图12中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 1201 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 12 .

在具体实现中,作为一种实施例,第一终端或第二终端可以包括多个处理器,例如图12中的处理器1201和处理器1205。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the first terminal or the second terminal may include multiple processors, such as processor 1201 and processor 1205 in Figure 12. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, and/or processing cores for processing data (such as computer program instructions).

示例性的,图13为本申请实施例提供的一种芯片的结构示意图。芯片130包括一个或两个以上(包括两个)处理器1310和通信接口1330。13 is a schematic diagram of the structure of a chip provided in an embodiment of the present application. The chip 130 includes one or more (including two) processors 1310 and a communication interface 1330 .

在一些实施方式中,存储器1340存储了如下的元素:可执行模块或者数据结构,或者他们的子集,或者他们的扩展集。In some embodiments, the memory 1340 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.

本申请实施例中,存储器1340可以包括只读存储器和随机存取存储器,并向处理器1310提供指令和数据。存储器1340的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。In the embodiment of the present application, the memory 1340 may include a read-only memory and a random access memory, and provide instructions and data to the processor 1310. A portion of the memory 1340 may also include a non-volatile random access memory (NVRAM).

本申请实施例中,存储器1340、通信接口1330以及存储器1340通过总线系统1320耦合在一起。其中,总线系统1320除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。为了便于描述,在图13中将各种总线都标为总线系统1320。In the embodiment of the present application, the memory 1340, the communication interface 1330 and the memory 1340 are coupled together through the bus system 1320. In addition to the data bus, the bus system 1320 may also include a power bus, a control bus and a status signal bus. For ease of description, various buses are labeled as the bus system 1320 in FIG. 13 .

上述本申请实施例描述的方法可以应用于处理器1310中,或者由处理器1310实现。处理器1310可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1310中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1310可以是通用处理器(例如,微处理器或常规处理器)、数字信号处理器(digitalsignal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门、晶体管逻辑器件或分立硬件组件,处理器1310可以实现或者执行本发明实施例中的公开的第一终端或第二终端执行的各方法、步骤及逻辑框图。The method described in the above embodiment of the present application can be applied to the processor 1310, or implemented by the processor 1310. The processor 1310 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the processor 1310. The above processor 1310 can be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components. The processor 1310 can implement or execute the methods, steps and logic block diagrams performed by the first terminal or the second terminal disclosed in the embodiment of the present invention.

结合本申请实施例所公开的第一终端或第二终端执行的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。其中,软件模块可以位于随机存储器、只读存储器、可编程只读存储器或带电可擦写可编程存储器(electrically erasable programmable read only memory,EEPROM)等本领域成熟的存储介质中。该存储介质位于存储器1340,处理器1310读取存储器1340中的信息,结合其硬件完成上述第一终端或第二终端执行的方法的步骤。The steps of the method executed by the first terminal or the second terminal disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 1340, and the processor 1310 reads the information in the memory 1340, and completes the steps of the method executed by the first terminal or the second terminal in combination with its hardware.

在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product, wherein the computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in the form of software.

计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。例如,可用介质可以包括磁性介质(例如,软盘、硬盘或磁带)、光介质(例如,数字通用光盘(digital versatiledisc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium can include magnetic media (e.g., floppy disk, hard disk or tape), optical media (e.g., digital versatile disc (digital versatiledisc, DVD)), or semiconductor media (e.g., solid state disk (solid state disk, SSD)), etc.

本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的第一终端或第二终端执行的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。The embodiment of the present application also provides a computer-readable storage medium. The method performed by the first terminal or the second terminal described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. The computer-readable medium may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.

作为一种可能的设计,计算机可读介质可以包括紧凑型光盘只读储存器(compactdisc read-only memory,CD-ROM)、RAM、ROM、EEPROM或其它光盘存储器;计算机可读介质可以包括磁盘存储器或其它磁盘存储设备。而且,任何连接线也可以被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,DSL或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(digital versatiledisc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。As one possible design, the computer readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer readable medium may include a magnetic disk storage or other magnetic disk storage device. Moreover, any connection line may also be appropriately referred to as a computer readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while optical discs reproduce data optically using lasers.

上述的组合也应包括在计算机可读介质的范围内。以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above combinations should also be included in the scope of computer-readable media. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims (7)

1. A data input method, applied to a data input system, the data input system including a first terminal and a second terminal, the method comprising:
the first terminal displays a first interface, wherein the first interface comprises a focus position capable of inputting numbers;
in the process that the first terminal displays a first interface, the first terminal responds to target operation to perform equipment discovery; the first terminal establishes communication connection with the second terminal under the condition that the second terminal is found, and sends an interface identifier of the first interface to the second terminal; after the second terminal identifies the interface identification of the first interface, automatically skipping to display a second interface; wherein, the mark of the first interface and the second interface have a mapping relation; the second interface comprises a numeric keyboard, wherein the numeric keyboard comprises virtual numeric keys and/or virtual line feed keys; wherein, the arrangement mode of the keys in the numeric keyboard is arranged according to the use habit of the user;
The second terminal receives triggering operation of the virtual line changing key in the second interface, and the first terminal moves the focus position in the first interface according to the triggering operation of the virtual line changing key;
the second interface also comprises a first control and a second control; the first control is used for sending a second control instruction for indicating the first terminal to enter a preset mode to the first terminal; the second control is used for controlling the opening or closing of the calculator function;
the second terminal responds to the triggering operation of the first control and sends a second control instruction to the first terminal; the first terminal responds to the second control instruction and enters a preset mode, wherein in the preset mode, the first terminal is used for identifying first target data from the second terminal, and the first target data are generated when the virtual digital key of the second terminal is triggered; or the first terminal receives first target data from the second terminal, wherein the first target data is generated when the virtual digital key is triggered;
the first terminal displays the number corresponding to the first target data at the focus position;
The second terminal responds to the triggering operation of the second control, invokes a calculator application and displays a third interface of the calculator application, wherein the third interface comprises a virtual operation key and a virtual number key;
the second terminal responds to the triggering operation of the virtual operation key and the virtual number key and sends second target data to the first terminal, wherein the second target data are generated when the virtual operation key and the virtual number key are triggered;
and the first terminal displays a calculation result corresponding to the second target data.
2. The method of claim 1, wherein the first target data is a keyboard identification,
the second terminal receives triggering operation of the virtual digital key in the second interface, and the triggering operation comprises the following steps: the second terminal receives triggering operation of the virtual digital key in the second interface, searches a keyboard identifier corresponding to the triggered virtual digital key, and sends the keyboard identifier to the first terminal;
the first terminal displaying the number corresponding to the first target data at the focus position, including: the first terminal searches numbers corresponding to the keyboard identifications; the first terminal displays the number at the focus position.
3. The method of claim 1, wherein the first target data is a data packet including the number, and the first terminal displaying the number corresponding to the first target data at the focal position, comprising:
the first terminal receives the data packet from the second terminal, wherein the data packet is generated when the virtual digital key is triggered;
and the first terminal displays the numbers in the data packet at the focus position.
4. A terminal device, comprising:
the communication unit is used for establishing communication connection with the first terminal in the process of displaying the first interface by the first terminal, and receiving an interface identifier of the first interface sent by the first terminal; wherein the first interface includes a focus position at which a number can be input;
the display unit is used for automatically jumping to display a second interface after communication connection is established with the first terminal and the interface identifier of the first interface is identified, wherein the identifier of the first interface and the second interface have a mapping relation; the second interface comprises a numeric keyboard, wherein the numeric keyboard comprises virtual numeric keys and/or virtual line feed keys; wherein, the arrangement mode of the keys in the numeric keyboard is arranged according to the use habit of the user;
The processing unit is used for receiving triggering operation of the virtual digital key in the second interface and controlling the first terminal to display a number corresponding to the virtual digital key at the focus position;
the second interface also comprises a first control and a second control; the first control is used for sending a second control instruction for indicating the first terminal to enter a preset mode to the first terminal; the second control is used for controlling the opening or closing of the calculator function;
the communication unit is further used for responding to the triggering operation of the first control and sending a second control instruction to the first terminal; the second control instruction is used for indicating the first terminal to enter a preset mode, wherein in the preset mode, the first terminal is used for identifying first target data from the first terminal, and the first target data are generated when the virtual digital key is triggered; or the communication unit is further configured to send first target data to the first terminal, where the first target data is generated when the virtual number key is triggered;
the communication unit is further used for responding to the triggering operation of the second control, calling a calculator application and displaying a third interface of the calculator application, wherein the third interface comprises a virtual operation key and a virtual number key; and responding to triggering operations of the virtual operation key and the virtual number key, and sending second target data to the first terminal, wherein the second target data is generated when the virtual operation key and the virtual number key are triggered.
5. The terminal device of claim 4, wherein the first target data is a keyboard identification,
the processing unit is specifically configured to receive a triggering operation on the virtual number key in the second interface, and search a keyboard identifier corresponding to the triggered virtual number key;
the communication unit is specifically configured to send the keyboard identifier to the first terminal.
6. The terminal device of claim 4, wherein the first destination data is a data packet containing the number,
the communication unit is further configured to send the data packet to the first terminal, where the data packet is generated when the virtual number key is triggered.
7. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, causes the computer to perform the method performed by the second terminal as claimed in any of claims 1 to 4.
CN202110939706.4A 2021-08-16 2021-08-16 Data input method and terminal equipment Active CN114201103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110939706.4A CN114201103B (en) 2021-08-16 2021-08-16 Data input method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110939706.4A CN114201103B (en) 2021-08-16 2021-08-16 Data input method and terminal equipment

Publications (2)

Publication Number Publication Date
CN114201103A CN114201103A (en) 2022-03-18
CN114201103B true CN114201103B (en) 2023-11-21

Family

ID=80645933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110939706.4A Active CN114201103B (en) 2021-08-16 2021-08-16 Data input method and terminal equipment

Country Status (1)

Country Link
CN (1) CN114201103B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117270700A (en) * 2022-06-13 2023-12-22 荣耀终端有限公司 Method for establishing connection of equipment and terminal equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102439952A (en) * 2011-07-26 2012-05-02 华为终端有限公司 Input method for communication terminals and communication terminals
CN102455778A (en) * 2010-10-21 2012-05-16 上海三旗通信科技股份有限公司 Method for using mobile phone as computer input device
CN102999167A (en) * 2012-11-14 2013-03-27 广东欧珀移动通信有限公司 A method for operating a virtual keyboard application in a mobile terminal with keys on a PC
CN103607779A (en) * 2013-11-13 2014-02-26 四川长虹电器股份有限公司 Multi-screen coordination intelligent input system and realization method thereof
CN103858083A (en) * 2011-10-13 2014-06-11 Lg电子株式会社 Input interface controlling apparatus and method thereof
CN104615369A (en) * 2015-01-22 2015-05-13 深圳市乐翔电气有限公司 Method and system for controlling device with calculator and numeric keyboard dual-mode function
CN105573649A (en) * 2015-12-15 2016-05-11 小米科技有限责任公司 Screen combining method for multiple terminals and terminal device
CN106126104A (en) * 2016-06-28 2016-11-16 北京小米移动软件有限公司 Keyboard emulation method and apparatus
CN112558825A (en) * 2019-09-26 2021-03-26 华为技术有限公司 Information processing method and electronic equipment
CN112827163A (en) * 2021-03-17 2021-05-25 四川酷赛科技有限公司 Game handle simulation method and mobile device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102455778A (en) * 2010-10-21 2012-05-16 上海三旗通信科技股份有限公司 Method for using mobile phone as computer input device
CN102439952A (en) * 2011-07-26 2012-05-02 华为终端有限公司 Input method for communication terminals and communication terminals
CN103858083A (en) * 2011-10-13 2014-06-11 Lg电子株式会社 Input interface controlling apparatus and method thereof
CN102999167A (en) * 2012-11-14 2013-03-27 广东欧珀移动通信有限公司 A method for operating a virtual keyboard application in a mobile terminal with keys on a PC
CN103607779A (en) * 2013-11-13 2014-02-26 四川长虹电器股份有限公司 Multi-screen coordination intelligent input system and realization method thereof
CN104615369A (en) * 2015-01-22 2015-05-13 深圳市乐翔电气有限公司 Method and system for controlling device with calculator and numeric keyboard dual-mode function
CN105573649A (en) * 2015-12-15 2016-05-11 小米科技有限责任公司 Screen combining method for multiple terminals and terminal device
CN106126104A (en) * 2016-06-28 2016-11-16 北京小米移动软件有限公司 Keyboard emulation method and apparatus
CN112558825A (en) * 2019-09-26 2021-03-26 华为技术有限公司 Information processing method and electronic equipment
CN112827163A (en) * 2021-03-17 2021-05-25 四川酷赛科技有限公司 Game handle simulation method and mobile device

Also Published As

Publication number Publication date
CN114201103A (en) 2022-03-18

Similar Documents

Publication Publication Date Title
US20220075518A1 (en) Fast Data Copying Method and Electronic Device
CN115048642B (en) Communication method between trusted applications in multi-trusted execution environment and electronic equipment
US11736149B2 (en) Data transmission method for Bluetooth card reader and electronic device
EP4195623B1 (en) Application interface migration system, method, and related device
CN115802516A (en) Wi-Fi direct communication method and device
CN113835569A (en) Terminal device, quick start method for internal function of application and storage medium
CN114201103B (en) Data input method and terminal equipment
US20120117024A1 (en) Method for updating media database in portable terminal
CN117149476B (en) Fault reporting method and related device
CN116737037B (en) Stack management method in interface display and related device
CN116700552B (en) Application connection method and terminal device
CN116055617B (en) Message notification method, electronic device, computer storage medium and chip system
CN116088724B (en) Card display method and electronic equipment
CN117176850A (en) Interface display method and related device
CN118295968A (en) File search method and related device
CN114007117B (en) Control display method and device
CN114356477B (en) Terminal equipment and application program calling method
CN117857646B (en) Data network sharing method, electronic device and storage medium
CN117714271B (en) Message processing method and related device
CN116090032B (en) Display method and related device
CN117270700A (en) Method for establishing connection of equipment and terminal equipment
CN119166381A (en) Method and terminal equipment for application connection
CN117827473A (en) Content continuation method and related device
CN120216045A (en) Input event processing method and related device
CN117827043A (en) A content continuation method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address