WO2020107231A1 - 触摸键盘调整方法、电子设备及计算机可读存储介质 - Google Patents

触摸键盘调整方法、电子设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2020107231A1
WO2020107231A1 PCT/CN2018/117751 CN2018117751W WO2020107231A1 WO 2020107231 A1 WO2020107231 A1 WO 2020107231A1 CN 2018117751 W CN2018117751 W CN 2018117751W WO 2020107231 A1 WO2020107231 A1 WO 2020107231A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
touch keyboard
preset
keyboard
position information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2018/117751
Other languages
English (en)
French (fr)
Inventor
袁洪烈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Royole Technologies Co Ltd
Original Assignee
Shenzhen Royole Technologies 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 Shenzhen Royole Technologies Co Ltd filed Critical Shenzhen Royole Technologies Co Ltd
Priority to CN201880096029.0A priority Critical patent/CN112703473A/zh
Priority to PCT/CN2018/117751 priority patent/WO2020107231A1/zh
Publication of WO2020107231A1 publication Critical patent/WO2020107231A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Definitions

  • the present application relates to the technical field of display control, in particular to a touch keyboard adjustment method, an electronic device, and a computer-readable storage medium.
  • the electronic device may provide a touch keyboard containing several keys as user input.
  • the size of the keys included in the key layout of the touch keyboard is generally designed according to the size of the hands of ordinary adults.
  • the key layout of the keyboard may bring user operation Certain inconvenience.
  • the present application provides a touch keyboard adjustment method, electronic device, and computer-readable storage medium that are easy to operate.
  • a first aspect of an embodiment of the present application provides a touch keyboard adjustment method, including:
  • the adjusted touch keyboard is displayed.
  • a second aspect of the embodiments of the present application provides an electronic device, including:
  • Touch display screen for displaying preset touch keyboard
  • a processor connected to the touch display screen, is configured to detect a touch operation on the touch keyboard by a preset number of fingers at the same time, and the processor is further configured to determine that the preset number of fingers are on the touch screen in response to the touch operation.
  • the first width information corresponding to the touch area on the touch display screen; the processor is further used to adjust the key layout of the preset touch keyboard according to the first width information, and the processor is also used to control the The touch screen displays the adjusted touch keyboard.
  • a third aspect of the embodiments of the present application provides a computer-readable storage medium that stores computer instructions, which is characterized in that, when the computer instructions are executed by a processor, a part of or the touch keyboard adjustment method provided in the first aspect of the present application is implemented. All steps.
  • the embodiments of the present application provide a touch keyboard adjustment method, an electronic device, and a computer-readable storage medium.
  • the trigger keyboard is triggered according to the first width information corresponding to a preset number of fingers during a touch operation
  • the adjustment operation makes the key layout of the trigger keyboard after the adjustment operation suitable for the user's usage habits, which is beneficial to improve the convenience of the user operation.
  • FIG. 1 is a flowchart of steps of a touch keyboard adjustment method in an embodiment provided by the present application.
  • FIG. 2 is a schematic diagram of a key layout of a preset trigger keyboard displayed in a display screen in an embodiment provided by the present application.
  • FIG. 3 is a schematic diagram of the key layout of the touch keyboard before adjustment in an embodiment provided by the present application.
  • FIG. 4 is a schematic diagram of acquiring first width information corresponding to a touch area of a preset number of fingers in an embodiment provided by the present application.
  • FIG. 5 is a schematic diagram of acquiring first width information corresponding to a touch area of a preset number of fingers in another embodiment provided by the present application.
  • FIG. 6 is a schematic diagram of position information of keys in an embodiment provided by the present application.
  • FIG. 7 is a schematic diagram of the layout of the adjusted trigger keyboard displayed in the display screen in an embodiment provided by the present application.
  • FIG. 8 is a schematic block diagram of an electronic device in an embodiment provided by this application.
  • FIG. 1 shows a flowchart of steps of the touch keyboard adjustment method in an embodiment provided by the present application.
  • the touch keyboard adjustment method includes the following steps:
  • Step 100 Display a preset touch keyboard on the touch display screen, and detect a touch operation of a preset number of fingers on the touch keyboard at the same time.
  • the electronic device has an operating system and can run one or more application programs.
  • the electronic device may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), a mobile Internet device (Mobile Internet Device, MID) and other mobile terminals, which are not limited in the embodiments of the present application.
  • PDA Personal Digital Assistant
  • MID Mobile Internet Device
  • the electronic device 50 includes a display screen 500 with a touch function, and the display screen 500 can be used to display an application program interface.
  • An input box 60 may be included in the application program interface.
  • the electronic device 50 can display the touch keyboard 40 in the display screen 500 to facilitate input of numbers, letters, etc. into the input box 60 through the touch keyboard 40 .
  • the touch keyboard 40 includes several keys 400.
  • the touch keyboard 40 may be a 26-key keyboard or a 9-key keyboard, wherein the 26-key keyboard includes keys corresponding to 26 letters, each letter is located on a key, and the 26-key keyboard may also include other keys (such as a symbol switching key, Digital switching keys, Chinese and English switching keys, etc.); 9-key keyboard includes keys corresponding to 26 letters, each key can have multiple letters (such as 3 or 4 letters on a key), 9-key keyboard It can also include other buttons (such as symbol switching buttons, number switching buttons, Chinese and English switching buttons, etc.).
  • the keys 400 of the touch keyboard 40 are substantially rectangular, and the size of each key 400 may be approximately the same. In this embodiment, the size of each key 400 of the touch keyboard is preset to be the same. Based on general user usage habits, when the user's fingers are initially placed, the four fingers of the user's left hand will be placed in the area corresponding to the four buttons "A”, “S”, “D” and “F", that is, the user's left hand The initial placement position is the area corresponding to the four keys "A”, “S", “D” and "F".
  • the electronic device 50 can adjust the key layout of the displayed touch keyboard 40.
  • the electronic device 50 may set an adjustment button. When the adjustment button is clicked or triggered, it indicates that the touch keyboard 40 needs to be adjusted.
  • the user can place a preset number of fingers on the display screen 500 according to his own usage habits, wherein the preset number can be 4, 3 or other values. At this time, the electronic device 50 can obtain the trigger of the preset number of fingers operating. In one embodiment, the preset number can be set by the electronic device 50. At this time, the electronic device 50 may not be provided with an adjustment button.
  • the electronic device 50 sets the preset number to 4, when the user touches 4 fingers at the same time to display When the screen 500 reaches the preset time, the electronic device 50 can detect the touch operation of the preset number of fingers on the display screen 40 to adjust the key layout of the touch keyboard 400 according to the preset number of fingers.
  • FIG. 3 is a schematic diagram of adjusting the key layout of the touch keyboard in an embodiment provided by the present application.
  • the electronic device 50 determines that there are four unconnected touch areas formed on the display screen 40 corresponding to the touch operation, that is, the electronic device 50 may determine the Set the number to 4; if the user places three fingers on the display screen 500 at the same time, the electronic device 50 determines that the number of unconnected touch areas corresponding to the touch operation is 3, that is, the electronic device 50 can determine the preset number to be 3.
  • Step 102 In response to the touch operation, determine the first width information corresponding to the touch area of the preset number of fingers on the touch display screen.
  • the electronic device 50 may determine the first width information D f corresponding to the touch area of the preset number of fingers.
  • FIG. 4 is a schematic diagram of acquiring first width information corresponding to a touch area of a preset number of fingers in an embodiment provided by the present application.
  • the electronic device 50 determines the first width information corresponding to the touch areas of the four fingers according to the four touch areas.
  • the display screen 500 is substantially rectangular, and may include a first side 600 (shown in FIG. 6), a second side 602 (shown in FIG. 6), a third side 604 (shown in FIG. 6), and a fourth side 606 (Shown in Figure 6).
  • the electronic device 50 takes the position of the upper left corner of the display screen 500 as the origin of the coordinate system, takes the direction parallel to the first side 600 of the display screen 500 as the X axis, and parallels the second side 602 of the display screen 500 The direction is the Y axis, and the plane rectangular coordinate system XoY is established.
  • each touch area includes a number of sensing points, and each sensing point has a coordinate value (x, y) in a rectangular coordinate system on the plane.
  • the electronic device 50 determines the distance of each touch area from the coordinate origin o, for example, the distance from the center point of each touch area to the coordinate origin o is the distance of the touch area from the coordinate origin o to determine the distance from the coordinate origin o
  • the touch area corresponding to the minimum distance and the touch area corresponding to the maximum distance.
  • the electronic device 50 may determine that the distance from the fourth touch area 706 to the origin o is the smallest, and the distance from the first touch area 700 to the origin o is the largest.
  • the electronic device 50 may determine the coordinate point containing the minimum value projected in the X-axis direction in the touch area with the smallest distance, and may also determine the coordinate point containing the maximum value projected in the X-axis direction in the touch area with the largest distance.
  • the electronic device 50 can determine the position of the fourth touch region 706 in the X-axis direction
  • the first coordinate point A of the minimum value x min can also determine the second coordinate point B of the maximum value x max in the X-axis direction in the first touch area 700.
  • the electronic device 50 determines whether the connection AB between the first coordinate point A and the second coordinate point B is substantially parallel to the X axis or the angle between the X axis and the X axis is within a preset range, if the first coordinate point A and the second coordinate
  • the connection line AB of the point B is substantially parallel to the X axis or the angle between the X axis and the X axis is within a preset range.
  • FIG. 5 is a schematic diagram of acquiring first width information corresponding to a touch area of a preset number of fingers in another embodiment provided by the present application.
  • the electronic device 50 may determine the third coordinate point C of the minimum value in the X-axis direction within the fourth touch area 706 and the fourth coordinate point of the maximum value in the X-axis direction within the first touch area 700 D. Since the user may place four fingers on the touch display screen 500 arbitrarily, the angle between the connection line CD of the third coordinate point C and the fourth coordinate point D and the X axis may not be within the preset range.
  • the electronic device 50 may compare the coordinate value (x min , y 1 ) corresponding to the third coordinate point C with the coordinate value (x max , y 2 ) corresponding to the fourth coordinate point D ) Is the distance of the connection line CD as the first width information D f , in this case, the first width information D f can be expressed as:
  • the electronic device 50 may directly determine that the length between two points having the largest coordinate value and the smallest coordinate value on the X axis or the Y axis in the multiple touch areas is the first width information D f .
  • Step 104 Adjust the key layout of the preset touch keyboard according to the first width information.
  • the electronic device 50 can obtain the second width information D k corresponding to the preset number of keys in the touch keyboard.
  • the electronic device can obtain the width information of four consecutive buttons 400 in the X-axis direction, such as the “A”, “S”, “D”, and “F” buttons on the X-axis.
  • the size of each button 400 may be approximately equal. Therefore, the electronic device may obtain the size of a button and determine the length value of the button in the X-axis direction, which can be obtained according to the product of the length value and the preset number
  • the second width information D k .
  • the electronic device also determines the scaling factor S according to the first width information D f , the second width information D k and the preset parameter d.
  • the scaling factor can be expressed as:
  • the preset parameter d is related to the difference ⁇ d between the length value of the key in the X axis direction and the width value of the touch area corresponding to the finger in the X axis direction.
  • the preset parameter d is equal to the product of ⁇ d and the preset number.
  • the preset parameter d can dynamically adjust the size of the preset parameter d according to the user's input characteristics.
  • the input feature is the change in the width value of the touch area corresponding to the user's finger in the X-axis direction.
  • the width value of the touch area corresponding to the user's finger in the X-axis direction is detected and the average value is taken as the user's input feature.
  • the electronic device can also obtain the first position information of each key 400 in the touch keyboard 40.
  • FIG. 6 is a schematic diagram of position information of buttons in an embodiment provided by the present application.
  • Each key 400 includes a substantially rectangular area composed of a first side 410, a second side 412, a third side 414, and a fourth side 416.
  • Each key 400 in the touch keyboard 40 has first position information.
  • the first position information (F l , F t , Fr , F b ) of the “F” button 400 includes: the first coordinate value F t of the first side 410 in the Y-axis direction, and the second side 412 at X The second coordinate value F l in the axis direction, the third coordinate value F b of the third side 414 in the Y axis direction, and the fourth coordinate value F r of the fourth side 416 in the X axis direction, where the first side 410
  • the distance from the first side 600 of the display screen 500 is F t
  • the distance from the second side 412 to the second side 602 of the display screen 500 is F l
  • the distance from the third side 414 to the first side 600 of the display screen 500 is F b,
  • the width information in the X-axis direction of the four keys "A”, “S”, “D”, and “F” can be expressed as the second key of the "A” key
  • the electronic device 50 may perform a zoom operation on the touch keyboard 40 with a reference point as a reference according to the first width information, wherein when zooming the touch keyboard, the position of the reference point does not change and the keys on the keyboard are touched The distance from the reference point increases or decreases according to the first width information.
  • the touch keyboard 400 includes a reference key and a non-reference key.
  • the electronic device 50 can use a key 400 in the trigger keyboard 40 as a reference key (such as the "F" key) when changing the position information of the non-reference key. All are reference keys.
  • the electronic device uses the center point 420 of the first position information of the reference button "F” as a reference point to zoom the reference button "F” and the non-reference button.
  • the center point of the first position information of the reference button before zooming coincides with the center point of the second position information of the reference button after zooming, wherein the center point 420 of the first position information of the reference button may be the geometric center of the reference button A point, such as the intersection of two corresponding corners of a rectangular reference button, is the center position.
  • the electronic device 50 can perform scaling processing on the first position information of the reference button according to the scaling factor of formula (1) to obtain second position information (F l ′, F t of the corresponding reference button) ', F r ', F b '), where the second position information (F l ', F t ', F r ', F b ') can be expressed as:
  • FIG. 7 shows a schematic diagram of the key layout of the adjusted touch keyboard displayed in the display screen in an embodiment provided by the present application.
  • the electronic device 50 calculates the third position information of each non-reference button according to the first position information of the reference button, the second position information of the reference button, and the zoom factor.
  • the first position information corresponding to the non-reference button "Q" can be expressed as (Q l , Q t , Q r , Q b )
  • the third position information (Q l ', corresponding to the non-reference button "Q" Q t ', Q r ', Q b ') can be expressed as:
  • the value of the preset parameter d may be 0, may be greater than 0, or may be less than 0, and may be set according to actual needs.
  • the key is zoomed; when the zoom factor S is greater than 1, it indicates that the reference button and other non-reference buttons are zoomed in; when the zoom factor S is less than 1, it indicates that the reference button and other non-reference buttons are zoomed out.
  • FIG. 7 is a schematic diagram of performing reduction processing on a reference button and other non-reference buttons.
  • the trigger keyboard 40 (such as the “F” button) after the reduction process is farther from the second side 602 of the display screen 500 than before the reduction process The corresponding distance.
  • the touch keyboard 500 may include at least two sub-touch keyboards.
  • the at least two sub-touch keyboards are located in different areas of the display screen 500.
  • Each sub-touch keyboard may include one reference key and one Or multiple non-reference keys.
  • the touch keyboard 500 may include a first sub-touch keyboard 560 located in the first area and a second sub-touch keyboard 562 located in the second area.
  • the reference key of the first sub-touch keyboard 560 is the "F" key
  • the second sub-touch The reference key of the keyboard 562 is the "J" key.
  • the electronic device 50 may adjust the at least two sub-touch keyboards according to the first width information of the touch area corresponding to the preset number of fingers detected in the respective areas of the at least two sub-touch keyboards. For example, when the user places the four fingers of the left hand at the initial placement position, such as the area corresponding to the four keys "A", “S", “D”, and “F", the electronic device 50 may be in the first position The first value of the first width information of the touch area corresponding to the preset number of fingers is detected in the first area where the sub-touch keyboard 560 is located, the electronic device 50 may adjust the key layout of the first sub-touch keyboard 560 according to the first value , That is, the first sub-touch keyboard 560 is adjusted.
  • the electronic device 50 touches the keyboard in the second sub
  • the electronic device 50 may adjust the key layout of the second sub-touch keyboard 562 according to the second value, that is Adjust the second sub-touch keyboard 562.
  • the electronic device 50 may simultaneously adjust at least two sub-touch keyboards according to the first width information of the touch area corresponding to the preset number of fingers.
  • the electronic device 50 may adjust the key layout of the first sub-touch keyboard 560 according to the first width information, and may also simultaneously according to the first width The information adjusts the key layout of the second sub-touch keyboard 562.
  • the electronic device 50 controls the keys in the first sub-touch keyboard 560 to use the reference key “F” as The reference performs zoom processing, and controls the keys in the second sub-touch keyboard 562 to perform zoom processing based on the reference key "J".
  • the keys between the first sub-touch keyboard 560 and the second sub-touch keyboard 562 after the reduction process may not be connected.
  • Step 106 Display the adjusted touch keyboard.
  • the electronic device 50 can adjust the key layout of the touch keyboard and control the display screen 500 to display the adjusted touch keyboard, such as according to the reference
  • the second position information of the key and the third position information of the non-reference key display the key layout of the touch keyboard.
  • the above touch keyboard adjustment method adjusts the trigger keyboard according to the first width information corresponding to the preset number of fingers during the touch operation, so that the key layout of the trigger keyboard after the adjustment operation is suitable for the user's usage habits, which is beneficial to improve the user The ease of operation.
  • FIG. 8 is a block diagram of an electronic device in an embodiment of the present application.
  • the electronic device 50 can apply the above embodiments.
  • the electronic device 50 provided in the present application will be described below.
  • the electronic device 50 may include a processor 504, a storage device 502 and a display screen 500, and stored in the The computer program (instructions) in the storage device 502 and available to the processor 504, the electronic device 50 may also include other hardware parts, such as buttons, fingerprint collection modules, communication devices, etc. Repeat again.
  • the processor 504 can exchange data with the storage device 502 and the display screen 500 through the bus 506.
  • the processor 502 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the processor 504 is a control center of the electronic device 50, and various interfaces and lines are used to connect the various electronic devices 50. section.
  • the storage device 502 may be used to store the computer program and/or module.
  • the processor 504 stores or stores the computer program and/or module stored in the storage device 502 by running or executing it. Data to realize various functions of touch keyboard adjustment method.
  • the storage device 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function, and the like.
  • the storage device 502 may include a high-speed random access storage device, and may also include a non-volatile storage device, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart, Media, Card, SMC), and a secure digital (Secure Digital) , SD) card, flash memory card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • a non-volatile storage device such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart, Media, Card, SMC), and a secure digital (Secure Digital) , SD) card, flash memory card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • a non-volatile storage device such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart, Media, Card, SMC), and a secure digital
  • the display screen 500 can display a user interface (UI) or a graphical user interface (GUI), including data such as photos, videos, and chat content.
  • UI user interface
  • GUI graphical user interface
  • the display screen 500 can also be used as an input device and an output device.
  • the display screen can include a liquid crystal display (LCD), thin-film transistor LCD (TFT-LCD), organic light-emitting diode (OLED) touch display, flexible touch display, three-dimensional (3D) touch display, ink screen display, etc.
  • Control modules (such as inductive touch modules and capacitive touch modules) are used to detect user touch operations.
  • the processor 500 runs the program corresponding to the executable program code by reading the executable program code stored in the storage device 502, for performing the touch keyboard adjustment method performed by the electronic device in any of the foregoing embodiments .

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)
  • User Interface Of Digital Computer (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

一种触摸键盘调整方法、电子设备及计算机可读存储介质。该触摸键盘调整方法及包括:在触摸显示屏上显示预设触摸键盘,检测预设数量手指同时在所述触摸键盘上的触摸操作(100);响应所述触摸操作,确定所述预设数量手指在所述触摸显示屏上的触摸区域所对应的第一宽度信息(102);根据所述第一宽度信息调整所述预设触摸键盘的按键布局(104);显示调整后的触摸键盘(106)。通过根据触摸操作时预设数量的手指所对应的第一宽度信息对触发键盘进行调整操作,以使得调整操作后的触发键盘的按键布局适合用户的使用习惯,有利于提高用户操作的方便性。

Description

触摸键盘调整方法、电子设备及计算机可读存储介质 技术领域
本申请涉及显示控制技术领域,尤其涉及一种触摸键盘调整方法、电子设备及计算机可读存储介质。
背景技术
随着科技的发展,电子设备的功能越来越多且体验越来越丰富因此,电子设备将成为人们日常生活中不可或缺的部分。在使用电子设备的过程中,电子设备可提供包含若干按键的触摸键盘作为用户的输入。然而,触摸键盘的按键布局所包含的按键的尺寸一般是按照普通成人的双手的大小设计的,对于双手较小的用户,如小孩、女性而言,键盘的按键布局可能给用户的操作带来一定的不便。
发明内容
本申请基于上述的技术问题至少之一,提供一种操作方便的触摸键盘调整方法、电子设备及计算机可读存储介质。
本申请实施例第一方面提供一种触摸键盘调整方法,包括:
在触摸显示屏上显示预设触摸键盘,检测预设数量手指同时在所述触摸键盘上的触摸操作;
响应所述触摸操作,确定所述预设数量手指在所述触摸显示屏上的触摸区域所对应的第一宽度信息;
根据所述第一宽度信息调整所述预设触摸键盘的按键布局;以及
显示调整后的触摸键盘。
本申请实施例第二方面提供一种电子设备,包括:
触摸显示屏,用于显示预设触摸键盘;
处理器,连接于所述触摸显示屏,用于检测预设数量手指同时在所述触摸键盘上的触摸操作,所述处理器还用于响应所述触摸操作确定所述预设数量手指在所述触摸显示屏上的触摸区域所对应的第一宽度信息;所述处理器还用于根据所述第一宽度信息调整所述预设触摸键盘的按键布局,所述处理器还用于控制所述 触摸显示屏显示调整后的触摸键盘。
本申请实施例第三方面提供一种计算机可读存储介质,存储有计算机指令,其特征在于,所述计算机指令被处理器执行时实现如本申请第一方面提供的触摸键盘调整方法中部分或全部的步骤。
相较于现有技术,本申请实施方式提供了一种触摸键盘调整方法、电子设备及计算机可读存储介质,通过根据触摸操作时预设数量的手指所对应的第一宽度信息对触发键盘进行调整操作,以使得调整操作后的触发键盘的按键布局适合用户的使用习惯,有利于提高用户操作的方便性。
附图说明
为了更清楚地说明本申请实施方式或现有技术中的技术方案,下面将对实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请提供的一实施例中的触摸键盘调整方法的步骤流程图。
图2是本申请提供的一实施例中的显示屏内显示的预设的触发键盘的按键布局的示意图。
图3是本申请提供的一实施例中的调整前的触摸键盘的按键布局的示意图。
图4是本申请提供的一实施例中获取预设数量手指的触摸区域对应的第一宽度信息的示意图。
图5是本申请提供的另一实施例中获取预设数量手指的触摸区域对应的第一宽度信息的示意图。
图6是本申请提供的一实施例中的按键的位置信息的示意图。
图7是本申请提供的一实施例中的显示屏内显示的调整后的触发键盘的布局示意图。
图8是本申请提供的一实施例中的电子设备的模块示意图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施 例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
下面对本申请实施例进行详细介绍。
请参阅图1,所示为本申请提供的一实施例中的触摸键盘调整方法的步骤流程图。该触摸键盘调整方法包括如下步骤:
步骤100,在触摸显示屏上显示预设触摸键盘,检测预设数量手指同时在所述触摸键盘上的触摸操作。
电子设备具有操作系统,可运行一个或多个应用程序。电子设备可为移动手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、移动互联网设备(Mobile Internet Device,MID)等移动终端,本申请实施例对此不作限定。
请一并参考图2,所示为一实施例中的触摸显示屏内显示的调整前的预设触摸键盘的按键布局的示意图。电子设备50包括具有触摸功能的显示屏500,显示屏500可用于显示应用程序界面。应用程序界面内可包括输入框60。当输入框60被触发(如用户点击输入框60所在的区域)时,电子设备50可在显示屏500内显示触摸键盘40,以方便通过触摸键盘40输入数字、字母等内容至输入框60内。触摸键盘40包括若干按键400。触摸键盘40可为26键键 盘或是9键键盘,其中,26键键盘包括26个字母所对应的按键,每一字母位于一按键上,26键键盘还可包括其他按键(如符号切换按键、数字切换按键、中英文切换按键等);9键键盘包括26个字母所对应的按键,每一按键上可具有多个字母(如一个按键上设置有3个或4个字母),9键键盘还可包括其他按键(如符号切换按键、数字切换按键、中英文切换按键等)。
触摸键盘40的按键400大致呈矩形,每一按键400的尺寸可大致相同。在本实施例中,预设触摸键盘的每一按键400的尺寸大小一样。基于一般的用户使用习惯,用户手指在初始放置时,用户左手的四个手指会放在“A”、“S”、“D”及“F”四个按键所对应的区域,即用户左手的初始放置位置为“A”、“S”、“D”及“F”四个按键所对应的区域。由于现有技术中的触摸键盘40中的按键400的尺寸(如按键图标所对应的区域的大小)是固定的,而每个用户的使用习惯不同,可能会导致用户左手的四个手指并不会完全位于对应的按键所在区域,进而使得用户在使用触发键盘40输入时带来一定的不便。因此,为了适合不同用户的使用习惯,电子设备50可对显示的触摸键盘40的按键布局进行调整。
在一实施例中,电子设备50可设置调整按键,当调整按键被点击或触发时,表示需要对触摸键盘40进行调整操作。用户可根据自己的使用习惯将预设数量的手指同时放在显示屏500上,其中,预设数量可为4、3或其他的数值,此时,电子设备50可获取预设数量手指的触发操作。在一实施例中,预设数量可由电子设备50进行设定,此时,电子设备50可不设有调整按键,如电子设备50设定预设数量为4,在用户同时将4个手指触摸显示屏500达到预设时间时,电子设备50可检测到显示屏40上预设数量手指的触摸操作,以根据预设数量手指调整触摸键盘400的按键布局。
请一并参阅图3,所示为本申请提供的一实施例中的调整触摸键盘的按键布局的示意图。在本实施例中,若用户将四个手指同时放在显示屏500上,电子设备50确定对应触摸操作在显示屏40上形成了具有4个不相连的触摸区域,即电子设备50可确定预设数量为4;若用户将同时三个手指放在显示屏500上,电子设备50确定触摸操作所对应的不相连的触摸区域的数量为3,即电子设备50可确定预设数量为3。
步骤102,响应所述触摸操作,确定所述预设数量手指在所述触摸显示屏上的触摸区域所对应的第一宽度信息。
在本实施例中,电子设备50在接收到预设数量手指的触摸操作时可确定预设数量手指的触摸区域所对应的第一宽度信息D f
请一并参阅图4,所示为本申请提供的一实施例中获取预设数量手指的触摸区域对应的第一宽度信息的示意图。
在本实施例中,用户在将四个手指放置于初始放置位置时,电子设备50的显示屏500上可产生了不相连的四个触摸区域,可分别表示为第一触摸区域700、第二触摸区域702、第三触摸区域704及第四触摸区域706,如此,电子设备50根据四个触摸区域确定四个手指的触摸区域所对应的第一宽度信息。
显示屏500大致呈矩形,可包括第一侧边600(示于图6)、第二侧边602(示于图6)、第三侧边604(示于图6)及第四侧边606(示于图6)。在本实施例中,电子设备50以显示屏500的左上角的位置为坐标系的原点,以平行显示屏500第一侧边600的方向为X轴,以平行显示屏500第二侧边602的方向为Y轴,建立平面直角坐标系XoY。
在本实施例中,每一触摸区域包含若干感测点,每一感测点具有位于平面直角坐标系统的坐标值(x,y)。电子设备50确定每一触摸区域距离坐标原点o的距离,如以每一触摸区域的中心点至坐标原点o的距离为该触摸区域距离坐标原点o的距离,以确定距离坐标原点o的距离中最小距离所对应的触摸区域及最大距离所对应触摸区域。在本实施例中,电子设备50可确定第四触摸区域706到原点o的距离最小,第一触摸区域700到原点o的距离最大。
电子设备50可确定距离最小的触摸区域中包含在X轴方向上投影的最小值的坐标点,还可确定距离最大的触摸区域中包含在X轴方向上投影的最大值的坐标点。
在本实施例中,由于第四触摸区域706到原点o的距离最小,第一触摸区域700到原点o的距离最大,因此,电子设备50可确定第四触摸区域706内位于X轴方向上的最小值x min的第一坐标点A,还可确定第一触摸区域700内位于X轴方向上的最大值x max的第二坐标点B。
电子设备50判断第一坐标点A与第二坐标点B的连线AB是否与X轴 大致平行或与X轴之间的夹角在预设范围内,若第一坐标点A与第二坐标点B的连线AB与X轴大致平行或与X轴之间的夹角在预设范围内,电子设备50可将第二坐标点B与第一坐标点A在X轴方向的差值作为第一宽度信息D f(即D f=x max-x min)。
请一并参阅图5,所示为本申请提供的另一实施例中获取预设数量手指的触摸区域对应的第一宽度信息的示意图。
在一实施例中,用户可能将四个手指任意放置于触摸显示屏500上时产生了不相连的第一触摸区域700、第二触摸区域702、第三触摸区域704及第四触摸区域706。此时,电子设备50可确定第四触摸区域706内位于X轴方向上的最小值的第三坐标点C,及确定第一触摸区域700内位于X轴方向上的最大值的第四坐标点D。由于用户可能将四个手指任意放置于触摸显示屏500上,可能导致第三坐标点C与第四坐标点D的连线CD与X轴之间的夹角不在预设范围内,因此,为提高第一宽度信息D f的准确度,电子设备50可将第三坐标点C所对应的坐标值(x min,y 1)与第四坐标点D所对应的坐标值(x max,y 2)的连线CD的距离作为第一宽度信息D f,此时,第一宽度信息D f可表示为:
Figure PCTCN2018117751-appb-000001
在另一实施例中,电子设备50可直接确定多个触摸区域内在X轴或Y轴上具有最大坐标值和最小坐标值的两个点之间的长度为第一宽度信息D f
步骤104,根据所述第一宽度信息调整所述预设触摸键盘的按键布局。
请再参阅图3,电子设备50可获取触摸键盘中具有所述预设数量的按键所对应的第二宽度信息D k。例如,当预设数量为4时,电子设备可获取连续四个按键400在X轴方向的宽度信息,如“A”、“S”、“D”及“F”四个按键的在X轴方向的宽度信息。在本实施例中,每一按键400的尺寸可大致相等,因此,电子设备可获取一个按键的尺寸,并确定该按键在X轴方向的长度值,根据长度值与预设数量的乘积可得到第二宽度信息D k
电子设备还根据第一宽度信息D f、第二宽度信息D k及预设参数d确定缩放系数S,缩放系数可表示为:
S=(D f+d)/D k                 公式(1)
预设参数d与按键在X轴方向的长度值和手指对应的触摸区域在X轴方向的宽度值之差Δd有关。在本实施例中,预设参数d等于Δd与预设数量的乘积。在某些实施例中,预设参数d可根据用户的输入特征动态调整预设参数d的大小,所述输入特征为用户手指对应的触摸区域在X轴方向的宽度值的变化,可以通过多次检测用户手指对应的触摸区域在X轴方向的宽度值并取平均值作为用户的输入特征。
电子设备还可获取触摸键盘40中每一按键400的第一位置信息。
请一并参阅图6,所示为本申请提供的一实施例中的按键的位置信息的示意图。
每一按键400包括第一边410、第二边412、第三边414及第四边416所组成的大致呈矩形区域,触摸键盘40中的每一按键400具有第一位置信息。例如,“F”按键400的第一位置信息(F l,F t,F r,F b)包括:第一边410在Y轴方向上的第一坐标值F t,第二边412在X轴方向上的第二坐标值F l,第三边414在Y轴方向上的第三坐标值F b及第四边416在X轴方向上的第四坐标值F r,其中第一边410距离显示屏500第一侧边600的距离为F t,第二边412距离显示屏500第二侧边602的距离为F l,第三边414距离显示屏500第一侧边600的距离为F b,第四边416距离显示屏500第二侧边602的距离为F r。在本实施例中,若预设数量为4,获取“A”、“S”、“D”及“F”四个按键的在X轴方向的宽度信息可表示为“A”按键的第二边412与“F”按键第四边416在X轴上的坐标值的差值。
本实施例中,电子设备50可根据第一宽度信息以一基准点为参考对触摸键盘40执行缩放操作,其中,在缩放所述触摸键盘时,基准点的位置不变,触摸键盘上的按键与基准点之间的距离根据第一宽度信息增大或减小。
在本实施例中,触摸键盘400包括基准按键及非基准按键,电子设备50可以将触发键盘40中的一按键400为基准按键(如“F”按键),对非基准按键位置信息进行改变时均为基准按键为参考。在本实施例中,电子设备以基准按键“F”的第一位置信息的中心点420为基准点,以对基准按键“F”及非基准按键进行缩放处理。因此,缩放前基准按键的第一位置信息的中心点与缩放后基准按键的第二位置信息的中心点相重合,其中,基准按键的第 一位置信息的中心点420可为基准按键的几何中心点,如为矩形的基准按键的两对应角的交点处为中心位置。
当对触发键盘40进行操作时,电子设备50可根据公式(1)的缩放系数对基准按键的第一位置信息进行缩放处理,以得到对应基准按键的第二位置信息(F l’,F t’,F r’,F b’),其中,第二位置信息(F l’,F t’,F r’,F b’)可表示为:
Figure PCTCN2018117751-appb-000002
请一并参阅图7,所示为本申请提供的一实施例中的显示屏内显示的调整后的触摸键盘的按键布局示意图。
电子设备50根据基准按键的第一位置信息、基准按键的第二位置信息及缩放系数计算每一非基准按键的第三位置信息。例如,非基准按键“Q”所对应的第一位置信息可表示为(Q l,Q t,Q r,Q b),非基准按键“Q”所对应的第三位置信息(Q l’,Q t’,Q r’,Q b’)可表示为:
Figure PCTCN2018117751-appb-000003
在一实施例中,根据公式(1)可知,预设参数d的值可为0、可大于0或可小于0,具体可根据实际需要进行设定。根据公式(2)可知,当缩放系数S为1时,F l’=F l,F r’=F r,F t’=F t,F b’=F b,表示不对基准按键及非基准按键进行缩放处理;当缩放系数S大于1时,表示对基准按键及其他非基准按键进行放大处理;当缩放系数S小于1时,表示对基准按键及其他非基准按键进行缩小处理。图7所示的为对基准按键及其他非基准按键进行缩小处理的示意图,缩小处理后的触发键盘40(如“F”按键)距离显示屏500的第二侧边602的距离大于缩小处理前所对应的距离。
请再参阅图3,本实施例中,触摸键盘500可包括至少两个子触摸键盘, 所述至少两个子触摸键盘位于显示屏500内的不同区域,每一子触摸键盘可包括一个基准按键及一个或多个非基准按键。例如,触摸键盘500可包括位于第一区域的第一子触摸键盘560及位于第二区域的第二子触摸键盘562,第一子触摸键盘560的基准按键为“F”按键,第二子触摸键盘562的基准按键为“J”按键。电子设备50可根据至少两个子触摸键盘位于各自区域内检测到的预设数量的手指对应的触摸区域的第一宽度信息,对应调整所述至少两个子触摸键盘。例如,当用户将左手的四个手指放置于初始放置位置,如“A”、“S”、“D”及“F”四个按键所对应的区域,此时,电子设备50可在第一子触摸键盘560位于的第一区域内检测到预设数量的手指所对应的触摸区域的第一宽度信息的第一值,电子设备50可根据第一值调整第一子触摸键盘560的按键布局,即对第一子触摸键盘560进行调整。当用户将左手的四个手指放置于初始放置位置,如“H”、“J”、“K”及“L”四个按键所对应的区域,此时,电子设备50在第二子触摸键盘562位于的第二区域内检测到预设数量的手指所对应的触摸区域的第一宽度信息的第二值时,电子设备50可根据第二值调整第二子触摸键盘562的按键布局,即对第二子触摸键盘562进行调整。在其他实施例中,电子设备50可根据预设数量的手指所对应的触摸区域的第一宽度信息同时调整至少两子触摸键盘。例如,当在检测到预设数量的手指所对应的触摸区域的第一宽度信息时,电子设备50可根据第一宽度信息调整第一子触摸键盘560的按键布局,还可同时根据第一宽度信息调整第二子触摸键盘562的按键布局。
当确定第一宽度信息D f、第二宽度信息D k及预设参数d所对应的缩放系数S小于1时,电子设备50控制第一子触摸键盘560内的按键以基准按键“F”为基准进行缩放处理,并控制第二子触摸键盘562内的按键以基准按键“J”为基准进行缩放处理。对于缩小处理后的第一子触摸键盘560与第二子触摸键盘562按键之间的可能并不相连。
步骤106,显示调整后的触摸键盘。
当电子设备50计算得到基准按键的第二位置信息及非基准按键的第三位置信息时,电子设备50可调整触摸键盘的按键布局,并控制显示屏500显示调整后的触摸键盘,如根据基准按键的第二位置信息及非基准按键的第三位 置信息显示该触摸键盘的按键布局。
上述触摸键盘调整方法通过根据触摸操作时预设数量的手指所对应的第一宽度信息对触发键盘进行调整操作,以使得调整操作后的触发键盘的按键布局适合用户的使用习惯,有利于提高用户操作的方便性。
请参阅图8,所示为本申请一实施方式中的电子设备的方框图。如图8所示,电子设备50可应用上述的各实施方式,下面对本申请所提供的电子设备50进行描述,电子设备50可包括处理器504、存储装置502及显示屏500,以及存储在所述存储装置502中并可向所述处理器504上运行的计算机程序(指令),所述电子设备50还可以包括其他的硬件部分,例如按键、指纹采集模组、通信装置等,在此不再赘述。所述处理器504可通过总线506与存储装置502及显示屏500进行数据交换。
所述处理器502可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器504是所述电子设备50的控制中心,利用各种接口和线路连接整个电子设备50的各个部分。
所述存储装置502可用于存储所述计算机程序和/或模块,所述处理器504通过运行或执行存储在所述存储装置502内的计算机程序和/或模块,以及调用存储在存储装置502内的数据,实现触摸键盘调整方法的各种功能。所述存储装置502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等。此外,存储装置502可以包括高速随机存取存储装置,还可以包括非易失性存储装置,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储装置件、闪存器件、或其他易失性固态存储装置件。
所述显示屏500,可以显示用户界面(UI)或图形用户界面(GUI),包括照片、视频、聊天内容等数据,显示屏500还可以用作输入装置和输出装置,显 示屏可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)触摸显示器、柔性触摸显示器、三维(3D)触摸显示器、墨水屏显示器等中的至少一种,可在显示屏500内置触控模组(如电感式触控模组、电容式触摸模组),以用于检测用户的触摸操作。
所述处理器500通过读取存储装置502中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行前面任一实施例中电子设备所执行的触摸键盘调整方法。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种触摸键盘调整方法,其特征在于,所述触摸键盘调整方法包括:
    在触摸显示屏上显示预设触摸键盘,检测预设数量手指同时在所述触摸键盘上的触摸操作;
    响应所述触摸操作,确定所述预设数量手指在所述触摸显示屏上的触摸区域所对应的第一宽度信息;
    根据所述第一宽度信息调整所述预设触摸键盘的按键布局;以及
    显示调整后的触摸键盘。
  2. 如权利要求1所述的触摸键盘调整方法,其特征在于,所述根据所述第一宽度信息调整所述预设触摸键盘的按键布局,具体包括:
    根据所述第一宽度信息以一基准点为参考缩放所述预设触摸键盘;其中,在缩放所述预设触摸键盘时,所述基准点的位置不变,所述预设触摸键盘上的按键与所述基准点之间的距离根据第一宽度信息增大或减小。
  3. 如权利要求2所述的触摸键盘调整方法,其特征在于,所述根据所述第一宽度信息以一基准点为参考缩放所述预设触摸键盘,具体包括:
    获取所述预设触摸键盘中具有所述预设数量的按键所对应的第二宽度信息;
    根据所述第一宽度信息、所述第二宽度信息及预设参数确定缩放系数;
    根据所述缩放系数计算所述预设触摸键盘中每一按键的位置信息,以根据每一按键的位置信息调整所述预设触摸键盘的按键布局。
  4. 如权利要求3所述的触摸键盘调整方法,其特征在于,所述预设触摸键盘包括基准按键及非基准按键,所述根据所述缩放系数计算所述预设触摸键盘中每一按键的位置信息,具体包括:
    获取所述基准按键在所述预设触摸键盘上的第一位置信息;
    根据所述缩放系数及所述第一位置信息计算所述基准按键的第二位置信息;
    根据所述基准按键的第一位置信息、第二位置信息及所述缩放系数计算所述非基准按键的第三位置信息。
  5. 如权利要求4所述的触摸键盘调整方法,其特征在于,所述基准按键的第一位置信息的中心点为所述基准点,所述第一位置信息的中心点与所述第二位 置信息的中心点重合。
  6. 如权利要求4所述的触摸键盘调整方法,其特征在于,所述基准按键包括第一边、第二边、第三边及第四边,所述第一位置信息包括所述第一边在第一坐标轴上的第一坐标值,所述第二边在第二坐标轴上的第二坐标值,所述第三边在第一坐标轴上的第三坐标值及所述第四边在第二坐标轴上的第四坐标值。
  7. 如权利要求4所述的触摸键盘调整方法,其特征在于,所述预设触摸键盘包括至少两个子触摸键盘,所述至少两个子触摸键盘位于所述触摸显示屏内的不同区域;所述根据所述第一宽度信息调整所述预设触摸键盘的按键布局,具体包括:
    根据所述至少两个子触摸键盘位于各自区域内检测到的预设数量的手指对应的触摸区域的第一宽度信息,对应调整所述至少两个子触摸键盘。
  8. 如权利要求7所述的触摸键盘调整方法,其特征在于,所述至少两个子触摸键盘中每一子触摸键盘包括一个基准按键及一个或多个非基准按键,所述根据所述至少两个子触摸键盘位于各自区域内检测到的预设数量的手指对应的触摸区域的第一宽度信息,对应调整所述至少两个子触摸键盘,具体包括:
    获取每一子触摸键盘内基准按键的第一位置信息;
    根据缩放系数及每一子触摸键盘内基准按键的第一位置信息计算每一子触摸键盘内的基准按键的第二位置信息;
    根据每一子触摸键盘内基准按键的第一位置信息、第二位置信息及所述缩放系数计算所述基准按键所在的子触摸键盘内的非基准按键的第三位置信息。
  9. 如权利要求8所述的触摸键盘调整方法,其特征在于,每一子触摸键盘内基准按键的第一位置信息的中心点为所述基准点。
  10. 如权利要求1所述的触摸键盘调整方法,其特征在于,所述确定所述预设数量手指在所述触摸显示屏上的触摸区域所对应的第一宽度信息,具体包括:
    获取所述预设数量手指在所述触摸显示屏上的触摸区域在预设坐标轴上的具有最小坐标值的第一坐标及具有最大坐标值的第二坐标;
    根据所述第一坐标及所述第二坐标确定所述第一宽度信息。
  11. 如权利要求10所述的触摸键盘调整方法,其特征在于,所述第一坐标及所述第二坐标之间连线的长度为所述第一宽度信息;或者
    所述第二坐标在所述预设坐标轴上的坐标值与所述第一坐标在所述预设坐标轴上的坐标值之差为所述第一宽度信息。
  12. 一种电子设置,其特征在于,所述电子设备包括:
    触摸显示屏,用于显示预设触摸键盘;
    处理器,连接于所述触摸显示屏,用于检测预设数量手指同时在所述触摸键盘上的触摸操作,所述处理器还用于响应所述触摸操作确定所述预设数量手指在所述触摸显示屏上的触摸区域所对应的第一宽度信息;所述处理器还用于根据所述第一宽度信息调整所述预设触摸键盘的按键布局,所述处理器还用于控制所述触摸显示屏显示调整后的触摸键盘。
  13. 如权利要求12所述的电子设置,其特征在于,所述处理器用于根据所述第一宽度信息以一基准点为参考缩放所述预设触摸键盘;其中,在缩放所述预设触摸键盘时,所述基准点的位置不变,所述预设触摸键盘上的按键与所述基准点之间的距离根据第一宽度信息增大或减小。
  14. 如权利要求13所述的电子设备,其特征在于,所述处理器用于获取所述预设触摸键盘中具有所述预设数量的按键所对应的第二宽度信息,还用于根据所述第一宽度信息、所述第二宽度信息及预设参数确定缩放系数;所述处理器还用于根据所述缩放系数计算所述预设触摸键盘中每一按键的位置信息,以根据每一按键的位置信息调整所述预设触摸键盘的按键布局。
  15. 如权利要求14所述的电子设置,其特征在于,所述预设触摸键盘包括基准按键及非基准按键,所述处理器用于获取所述基准按键在所述预设触摸键盘上的第一位置信息,并根据所述缩放系数及所述第一位置信息计算所述基准按键的第二位置信息;所述处理器还用于根据所述基准按键的第一位置信息、第二位置信息及所述缩放系数计算所述非基准按键的第三位置信息,其中,所述基准按键的第一位置信息的中心点为所述基准点。
  16. 如权利要求15所述的电子设备,其特征在于,所述基准按键包括第一边、第二边、第三边及第四边,所述第一位置信息包括所述第一边在第一坐标轴上的第一坐标值,所述第二边在第二坐标轴上的第二坐标值,所述第三边在第一坐标轴上的第三坐标值及所述第四边在第二坐标轴上的第四坐标值。
  17. 如权利要求13所述的电子设置,其特征在于,所述预设触摸键盘包括 至少两个子触摸键盘,所述至少两个子触摸键盘位于所述触摸显示屏内的不同区域,所述处理器用于根据所述至少两个子触摸键盘位于各自区域内检测到的预设数量的手指对应的触摸区域的第一宽度信息,对应调整所述至少两个子触摸键盘。
  18. 如权利要求17所述的电子设置,其特征在于,所述至少两个子触摸键盘中每一子触摸键盘包括一个基准按键及一个或多个非基准按键,所述处理器用于获取每一子触摸键盘内基准按键的第一位置信息,并根据缩放系数及每一子触摸键盘内基准按键的第一位置信息计算每一子触摸键盘内的基准按键的第二位置信息;所述处理器还用于根据每一子触摸键盘内基准按键的第一位置信息、第二位置信息及所述缩放系数计算所述基准按键所在的子触摸键盘内的非基准按键的第三位置信息,其中,每一子触摸键盘内基准按键的第一位置信息的中心点为所述基准点。
  19. 如权利要求12所述的电子设置,其特征在于,所述处理器用于获取所述预设数量手指在所述显示屏上触摸区域在预设坐标轴上的具有最小坐标值的第一坐标及具有最大坐标值的第二坐标,并根据所述第一坐标及所述第二坐标确定所述第一宽度信息。
  20. 一种计算机可读存储介质,存储有计算机指令,其特征在于,所述计算机指令被处理器执行时实现如权利要求1至12中任意一项所述的触摸键盘调整方法。
PCT/CN2018/117751 2018-11-27 2018-11-27 触摸键盘调整方法、电子设备及计算机可读存储介质 Ceased WO2020107231A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880096029.0A CN112703473A (zh) 2018-11-27 2018-11-27 触摸键盘调整方法、电子设备及计算机可读存储介质
PCT/CN2018/117751 WO2020107231A1 (zh) 2018-11-27 2018-11-27 触摸键盘调整方法、电子设备及计算机可读存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/117751 WO2020107231A1 (zh) 2018-11-27 2018-11-27 触摸键盘调整方法、电子设备及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2020107231A1 true WO2020107231A1 (zh) 2020-06-04

Family

ID=70852475

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/117751 Ceased WO2020107231A1 (zh) 2018-11-27 2018-11-27 触摸键盘调整方法、电子设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN112703473A (zh)
WO (1) WO2020107231A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463014A (zh) * 2020-11-23 2021-03-09 科大讯飞股份有限公司 输入面板展示方法、相关设备及可读存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20250190105A1 (en) * 2023-12-12 2025-06-12 Wei Li Methods and systems for a user-adaptive virtual keyboard

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467330A (zh) * 2010-11-16 2012-05-23 吉易高科股份有限公司 一种虚拟键盘装置及其操作方法
CN104777978A (zh) * 2015-03-28 2015-07-15 深圳市金立通信设备有限公司 一种终端
CN105653116A (zh) * 2015-07-31 2016-06-08 宇龙计算机通信科技(深圳)有限公司 一种软键盘布局调整方法、装置及电子设备
WO2017052761A1 (en) * 2015-09-22 2017-03-30 Qualcomm Incorporated Automatic customization of keypad key appearance

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541420A (zh) * 2010-12-31 2012-07-04 上海优熠电子科技有限公司 一种自适应虚拟键盘系统
TWI524218B (zh) * 2011-10-05 2016-03-01 廣達電腦股份有限公司 觸覺回饋式虛擬鍵盤之提供方法及其電子裝置
JP5520273B2 (ja) * 2011-10-11 2014-06-11 ヤフー株式会社 情報入力装置、方法及びプログラム
CN103488400A (zh) * 2013-09-27 2014-01-01 京东方科技集团股份有限公司 一种虚拟键盘的构建方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467330A (zh) * 2010-11-16 2012-05-23 吉易高科股份有限公司 一种虚拟键盘装置及其操作方法
CN104777978A (zh) * 2015-03-28 2015-07-15 深圳市金立通信设备有限公司 一种终端
CN105653116A (zh) * 2015-07-31 2016-06-08 宇龙计算机通信科技(深圳)有限公司 一种软键盘布局调整方法、装置及电子设备
WO2017052761A1 (en) * 2015-09-22 2017-03-30 Qualcomm Incorporated Automatic customization of keypad key appearance

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463014A (zh) * 2020-11-23 2021-03-09 科大讯飞股份有限公司 输入面板展示方法、相关设备及可读存储介质

Also Published As

Publication number Publication date
CN112703473A (zh) 2021-04-23

Similar Documents

Publication Publication Date Title
JP5507494B2 (ja) タッチ・スクリーンを備える携帯式電子機器および制御方法
CN103365599B (zh) 基于滑屏轨迹的移动终端操作优化方法及装置
CN103488419B (zh) 通信终端的操作方法及通信终端
US20150185953A1 (en) Optimization operation method and apparatus for terminal interface
US20140380209A1 (en) Method for operating portable devices having a touch screen
CN106662978A (zh) 用于改善设备的单手操作的用户界面
WO2015161653A1 (zh) 一种终端操作方法及终端设备
CN103365541B (zh) 展示窗口的方法及终端
CN106095185B (zh) 一种单手操作方法及移动终端
WO2020199723A1 (zh) 移动终端显示画面的控制方法、装置、设备和存储介质
CN104731496A (zh) 解锁方法与电子装置
WO2017059734A1 (zh) 一种图片缩放方法及电子设备
US10514802B2 (en) Method for controlling display of touchscreen, and mobile device
WO2016082330A1 (zh) 调整虚拟按键布局的方法、装置及移动终端
CN106911897A (zh) 一种拍摄焦点的确定方法及移动终端
WO2020118491A1 (zh) 基于指纹识别的交互方法、电子设备及相关装置
CN103365401B (zh) 手势控制方法及装置
CN108491152B (zh) 基于虚拟光标的触屏终端操控方法、终端及介质
WO2020107231A1 (zh) 触摸键盘调整方法、电子设备及计算机可读存储介质
CN110851048A (zh) 一种调整控件的方法和电子设备
CN104516594B (zh) 光学触控装置及其手势检测方法
TW202238339A (zh) 電子裝置及控制方法
CN103713840B (zh) 可携式装置及其按键点击范围调整方法
TW201504929A (zh) 電子裝置及其手勢控制方法
EP3936993A1 (en) Mobile terminal control method and mobile terminal

Legal Events

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

Ref document number: 18941646

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18941646

Country of ref document: EP

Kind code of ref document: A1