WO2018196277A1 - 光标移动方法及系统 - Google Patents
光标移动方法及系统 Download PDFInfo
- Publication number
- WO2018196277A1 WO2018196277A1 PCT/CN2017/103775 CN2017103775W WO2018196277A1 WO 2018196277 A1 WO2018196277 A1 WO 2018196277A1 CN 2017103775 W CN2017103775 W CN 2017103775W WO 2018196277 A1 WO2018196277 A1 WO 2018196277A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- cursor
- axis
- acceleration
- preset
- angle
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72436—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Definitions
- the present invention relates to the field of electronic device control technologies, and in particular, to a cursor moving method and system.
- smart terminals such as smart phones
- the portability and intelligence of smart terminals have changed the way people live and work.
- the embodiment of the invention provides a cursor moving method with convenient positioning.
- a cursor moving method is applied to an intelligent terminal, where the smart terminal includes at least an acceleration sensor, and the method includes:
- the cursor is moved according to a cursor movement rule corresponding to the direction and size of the acceleration.
- the smart terminal when the user edits the text using the smart terminal, the smart terminal only needs to be shaken, and the acceleration generated by the user acquired by the acceleration sensor in the smart terminal shakes the smart terminal, and then according to the acceleration
- the cursor movement rule corresponding to the direction and size of the acceleration realizes the movement of the cursor, thereby moving the cursor to the corresponding position in the text, and the cursor positioning is more convenient, and no additional hardware cost is required.
- the cursor moving method according to the above embodiment of the present invention may further have the following additional technical features:
- the vector of acceleration Satisfy among them, The acceleration vector for the x-axis direction, The acceleration vector for the y-axis direction, An acceleration vector for the z-axis direction;
- the preset cursor movement rule includes:
- the direction is toward the negative x-axis direction
- the angle ⁇ 1 between the direction of the x-axis and the negative direction of the x-axis satisfies 0° ⁇ ⁇ 1 ⁇ a first preset angle, and When the acceleration value is greater than or equal to the first preset value, the cursor is moved to the beginning of the line where the cursor is located;
- the direction is toward the positive direction of the x-axis
- the angle ⁇ 2 between the direction of the x-axis and the positive direction of the x-axis satisfies 0° ⁇ ⁇ 2 ⁇ a second preset angle, and When the acceleration value is greater than or equal to the second preset value, the cursor is moved to the end of the line where the cursor is located.
- the vector of acceleration Satisfy among them, The acceleration vector for the x-axis direction, The acceleration vector for the y-axis direction, An acceleration vector for the z-axis direction;
- the preset cursor movement rule includes:
- the direction is toward the negative direction of the z-axis
- the angle ⁇ 3 between the direction of the z-axis and the negative direction of the z-axis satisfies 0° ⁇ ⁇ 3 ⁇ a third preset angle, and When the acceleration value is greater than or equal to the third preset value, the cursor is moved to the text tail of the current text;
- the direction is toward the positive direction of the z-axis
- the angle ⁇ 4 between the direction of the z-axis and the positive direction of the z-axis satisfies 0° ⁇ ⁇ 4 ⁇ a fourth preset angle
- the acceleration value is greater than or equal to the fourth preset value, the cursor is moved to the text header of the current text.
- the vector of acceleration Satisfy among them, The acceleration vector for the x-axis direction, The acceleration vector for the y-axis direction, An acceleration vector for the z-axis direction;
- the preset cursor movement rule includes:
- the acceleration value is greater than or equal to a fifth preset value, in the When the direction is toward the positive direction of the x-axis, The angle ⁇ 6 between the direction of the x-axis and the positive direction of the x-axis satisfies 0° ⁇ ⁇ 6 ⁇ a sixth preset angle, The acceleration value is greater than or equal to a sixth preset value, and the cursor is moved to the middle of the line where the cursor is located;
- the second preset time when said The direction of switching back and forth between the negative direction toward the z-axis and the positive direction toward the z-axis for a second predetermined number of times, and When the direction is toward the negative direction of the z-axis, The angle ⁇ 7 between the direction of the z-axis and the negative direction of the z-axis satisfies 0° ⁇ ⁇ 7 ⁇ a seventh preset angle, The acceleration value is greater than or equal to the seventh preset value, in the When the direction is toward the positive direction of the z-axis, The angle ⁇ 8 between the direction of the z-axis and the positive direction of the z-axis satisfies 0° ⁇ ⁇ 8 ⁇ an eighth preset angle, The acceleration value is greater than or equal to the eighth preset value, and the cursor is moved to the middle of the text of the current text.
- the step of moving the cursor to the beginning of the line where the cursor is located includes:
- the step of moving the cursor to the end of the line where the cursor is located includes:
- the cursor is moved to the end of the text of the current text.
- the step of moving the cursor to the middle of a row of the line where the cursor is located includes:
- pos1 is 0 when the last newline closest to the current position of the cursor does not exist, when the next position closest to the current position of the cursor When the newline does not exist, pos2 is the total length of the current text.
- Another embodiment of the present invention provides a cursor moving system that is convenient to locate.
- a cursor moving system is applied to an intelligent terminal, where the smart terminal is Included less acceleration sensors, the cursor movement system includes:
- a receiving module configured to receive, when the smart terminal is in a text editing mode, an acceleration generated when the user acquired by the acceleration sensor shakes the smart terminal;
- a judging module configured to determine, according to the direction and size of the acceleration, whether the preset cursor movement rule is met
- a moving module configured to: when the determining module determines that the direction and size of the acceleration conform to a preset cursor movement rule, move the cursor according to a cursor movement rule corresponding to the direction and size of the acceleration.
- cursor movement system may further have the following additional technical features:
- the vector of acceleration Satisfy among them, The acceleration vector for the x-axis direction, The acceleration vector for the y-axis direction, An acceleration vector for the z-axis direction;
- the preset cursor movement rule includes:
- the direction is toward the negative x-axis direction
- the angle ⁇ 1 between the direction of the x-axis and the negative direction of the x-axis satisfies 0° ⁇ ⁇ 1 ⁇ a first preset angle, and When the acceleration value is greater than or equal to the first preset value, the cursor is moved to the beginning of the line where the cursor is located;
- the direction is toward the positive direction of the x-axis
- the angle ⁇ 2 between the direction of the x-axis and the positive direction of the x-axis satisfies 0° ⁇ ⁇ 2 ⁇ a second preset angle, and When the acceleration value is greater than or equal to the second preset value, the cursor is moved to the end of the line where the cursor is located.
- the vector of acceleration Satisfy among them, The acceleration vector for the x-axis direction, The acceleration vector for the y-axis direction, An acceleration vector for the z-axis direction;
- the preset cursor movement rule includes:
- the direction is toward the negative direction of the z-axis
- the angle ⁇ 3 between the direction of the z-axis and the negative direction of the z-axis satisfies 0° ⁇ ⁇ 3 ⁇ a third preset angle, and When the acceleration value is greater than or equal to the third preset value, the cursor is moved to the text tail of the current text;
- the direction is toward the positive direction of the z-axis
- the angle ⁇ 4 between the direction of the z-axis and the positive direction of the z-axis satisfies 0° ⁇ ⁇ 4 ⁇ a fourth preset angle
- the acceleration value is greater than or equal to the fourth preset value, the cursor is moved to the text header of the current text.
- the vector of acceleration Satisfy among them, The acceleration vector for the x-axis direction, The acceleration vector for the y-axis direction, An acceleration vector for the z-axis direction;
- the preset cursor movement rule includes:
- the acceleration value is greater than or equal to a fifth preset value, in the When the direction is toward the positive direction of the x-axis, The angle ⁇ 6 between the direction of the x-axis and the positive direction of the x-axis satisfies 0° ⁇ ⁇ 6 ⁇ a sixth preset angle, The acceleration value is greater than or equal to a sixth preset value, and the cursor is moved to the middle of the line where the cursor is located;
- the second preset time when said The direction of switching back and forth between the negative direction toward the z-axis and the positive direction toward the z-axis for a second predetermined number of times, and When the direction is toward the negative direction of the z-axis, The angle ⁇ 7 between the direction of the z-axis and the negative direction of the z-axis satisfies 0° ⁇ ⁇ 7 ⁇ a seventh preset angle, The acceleration value is greater than or equal to the seventh preset value, in the When the direction is toward the positive direction of the z-axis, The angle ⁇ 8 between the direction of the z-axis and the positive direction of the z-axis satisfies 0° ⁇ ⁇ 8 ⁇ an eighth preset angle, The acceleration value is greater than or equal to the eighth preset value, and the cursor is moved to the middle of the text of the current text.
- the mobile module is specifically configured to:
- the mobile module is also used to:
- the cursor is moved to the end of the text of the current text.
- the mobile module is further configured to:
- pos1 is 0 when the last newline closest to the current position of the cursor does not exist, when the next position closest to the current position of the cursor When the newline does not exist, pos2 is the total length of the current text.
- FIG. 1 is a flow chart of a cursor moving method according to a first embodiment of the present invention
- FIG. 2 is a schematic diagram of a positive direction and a negative direction of an x-axis, a y-axis, and a z-axis of a smartphone according to a specific example of the present invention
- FIG. 3 is a flow chart of a cursor moving method according to a second embodiment of the present invention.
- FIG. 4 is a schematic structural diagram of a cursor movement system according to another embodiment of the present invention.
- a cursor moving method is applied to an intelligent terminal, where the smart terminal includes at least an acceleration sensor, and the smart terminal may be a smart phone or a smart tablet, such as a common Android system. Or the touch smart phone of the IOS system, in the embodiment, the smart phone is taken as an example for description.
- the method includes:
- the smartphone When the smartphone is in the text editing mode, for example, when editing the text in the notebook, the cursor will appear in a certain position in the middle text. At this time, the user can shake the smartphone, and the processor of the smartphone starts to monitor the smart.
- the data of the acceleration sensor of the mobile phone is used to obtain the acceleration generated when the user shakes the smart terminal, and the sway detection is realized.
- S102 Determine, according to the direction and the size of the acceleration, whether the preset cursor movement rule is met;
- the acceleration acquired by the acceleration sensor includes a size and a direction.
- the acceleration is 5 m/s 2 and the direction is horizontal to the left.
- the preset cursor movement rule may be stored in the smart phone, and the accelerations of different directions and sizes are different.
- the cursor movement rule for example, the cursor movement rule corresponding to the horizontal leftward acceleration of the size is 5m/s 2 is to move the cursor to the middle of the current text, and then determine whether the current acceleration is based on the current acceleration acquired by the acceleration sensor. Matches the preset cursor movement rules.
- the acceleration conforms to the preset cursor movement rule, for example, the size is 5 m/s 2 and the direction is the horizontal left acceleration
- the acceleration conforms to the preset cursor movement rule
- the cursor is moved according to the corresponding cursor movement rule. Move, moving the cursor to the middle of the current text. It can be understood that if the current acceleration does not meet the preset cursor movement rule, for example, the size is 0.8 m/s 2 and the direction is the horizontal left acceleration, the acceleration does not conform to the preset cursor movement rule, and there is no corresponding cursor movement. Rules, the cursor movement will not be performed.
- the smart terminal when the user edits the text using the smart terminal, the smart terminal only needs to be shaken, and the acceleration generated by the user acquired by the acceleration sensor in the smart terminal shakes the smart terminal, and then according to the acceleration
- the cursor movement rule corresponding to the direction and size of the acceleration realizes the movement of the cursor, thereby moving the cursor to the corresponding position in the text, the cursor positioning is more convenient, and the existing intelligent terminal is equipped with an acceleration sensor, so there is no need to additionally increase Hardware cost.
- the acceleration vector obtained by the acceleration sensor of the smartphone Satisfy among them, The acceleration vector for the x-axis direction, The acceleration vector for the y-axis direction, The acceleration vector for the z-axis direction.
- the positive direction of the x-axis and the negative direction of the x-axis are respectively the left direction and the right direction in the horizontal plane of the smartphone
- the positive direction of the y-axis and the negative direction of the y-axis are respectively the upper direction and the lower direction in the horizontal plane of the smartphone.
- the direction, the positive direction of the z-axis and the negative direction of the z-axis are respectively perpendicular to the front and rear directions in the horizontal plane of the smartphone.
- the preset cursor movement rules in the smartphone include:
- the direction is toward the negative x-axis direction
- the angle ⁇ 1 between the direction of the x-axis and the negative direction of the x-axis satisfies 0° ⁇ ⁇ 1 ⁇ a first preset angle, and When the acceleration value is greater than or equal to the first preset value, the cursor is moved to the beginning of the line where the cursor is located;
- the direction is toward the positive direction of the x-axis
- the angle ⁇ 2 between the direction of the x-axis and the positive direction of the x-axis satisfies 0° ⁇ ⁇ 2 ⁇ a second preset angle, and When the acceleration value is greater than or equal to the second preset value, the cursor is moved to the end of the line where the cursor is located;
- the direction is toward the negative direction of the z-axis
- the angle ⁇ 3 between the direction of the z-axis and the negative direction of the z-axis satisfies 0° ⁇ ⁇ 3 ⁇ a third preset angle, and When the acceleration value is greater than or equal to the third preset value, the cursor is moved to the text tail of the current text;
- the direction is toward the positive direction of the z-axis
- the angle ⁇ 4 between the direction of the z-axis and the positive direction of the z-axis satisfies 0° ⁇ ⁇ 4 ⁇ a fourth preset angle
- the acceleration value is greater than or equal to the fourth preset value, the cursor is moved to the text header of the current text.
- the first preset angle is 30°
- the first preset value is 3 m/s 2
- only the acceleration generated by the acceleration sensor when the user shakes the smart phone The direction is toward the negative direction of the x-axis, that is, to the left in the horizontal plane of the smartphone, and 0° ⁇ ⁇ 1 ⁇ 30°
- the acceleration value is greater than or equal to 3m/s 2
- the operation of moving the cursor to the beginning of the line where the cursor is located is triggered.
- first preset angle, the second preset angle, the third preset angle, and the fourth preset angle may be the same or different, and the first preset value, the second preset value, and the third preset The value and the first preset value may be the same or different.
- the preset cursor movement rules in the smartphone include:
- the acceleration value is greater than or equal to a fifth preset value, in the When the direction is toward the positive direction of the x-axis, The angle ⁇ 6 between the direction of the x-axis and the positive direction of the x-axis satisfies 0° ⁇ ⁇ 6 ⁇ a sixth preset angle, The acceleration value is greater than or equal to a sixth preset value, and the cursor is moved to the middle of the line where the cursor is located;
- the second preset time when said The direction of switching back and forth between the negative direction toward the z-axis and the positive direction toward the z-axis for a second predetermined number of times, and When the direction is toward the negative direction of the z-axis, The angle ⁇ 7 between the direction of the z-axis and the negative direction of the z-axis satisfies 0° ⁇ ⁇ 7 ⁇ a seventh preset angle, The acceleration value is greater than or equal to the seventh preset value, in the When the direction is toward the positive direction of the z-axis, The angle ⁇ 8 between the direction of the z-axis and the positive direction of the z-axis satisfies 0° ⁇ ⁇ 8 ⁇ an eighth preset angle, The acceleration value is greater than or equal to the eighth preset value, and the cursor is moved to the middle of the text of the current text.
- the first preset time is 3 seconds
- the first preset number is two times
- the fifth preset angle and the sixth preset angle are both 30 degrees
- the fifth preset value and the sixth preset value are both 3m/s 2
- the acceleration generated by the acceleration sensor when the user shakes the smartphone is only within 3 seconds.
- the direction is switched back and forth between the negative direction of the x-axis and the positive direction of the x-axis, that is, within 3 seconds, shaking left and right in the horizontal plane of the smartphone twice, and in the When the direction is toward the negative direction of the x-axis, that is, when shaking to the left, 0° ⁇ ⁇ 5 ⁇ 30°,
- the acceleration value is greater than or equal to 3m/s 2 , in the When the direction is toward the positive direction of the x-axis, that is, when it is swaying to the right, 0° ⁇ ⁇ 6 ⁇ 30°,
- the acceleration value is greater than or equal to 3m/s 2 , at which point the operation of moving the cursor to the middle of the line of the cursor is triggered.
- the fifth preset angle, the sixth preset angle, the seventh preset angle, and the eighth preset angle may be the same as the first preset angle, or may be different, the fifth preset value, and the sixth preset.
- the value, the seventh preset value, and the eighth preset value and the first preset value may be the same or different.
- moving the cursor to the text header of the current text is specifically: moving the cursor to a position where the character position is 0.
- Move the cursor to the end of the text of the current text Specifically: Get the total length of the current text, and move the cursor to the position of length.
- Move the cursor to the middle of the text of the current text Specifically: Get the total length of the current text, and move the cursor to the position of length/2.
- the step of moving the cursor to the beginning of the line where the cursor is located includes:
- the step of moving the cursor to the end of the line where the cursor is located includes:
- the cursor is moved to the end of the text of the current text.
- the step of moving the cursor to the middle of the line of the line where the cursor is located includes:
- pos1 is 0 when the last newline closest to the current position of the cursor does not exist, when the next position closest to the current position of the cursor When the newline does not exist, pos2 is the total length of the current text.
- the user uses the smart phone to reply to the email, since the content of the email being edited is large, it needs to be quickly positioned to the end of the text.
- the user only needs to shake the mobile phone to make the acceleration
- the direction is toward the negative direction of the z-axis (the downward direction in the horizontal plane of the smartphone), ensuring that the angle of shaking is correct even if
- the angle ⁇ 3 between the direction of the z-axis and the negative direction of the z-axis satisfies 0° ⁇ ⁇ 3 ⁇ the third preset angle, and the sway is guaranteed to have a certain strength even if
- the acceleration value is greater than or equal to the third preset value, the cursor will automatically move at the end of the text, which is convenient and quick.
- a cursor moving method is applied to an intelligent terminal, where the smart terminal includes at least an acceleration sensor, and the smart terminal may be a smart phone or a smart tablet, such as a common Android system. Or the touch smart phone of the IOS system, in the embodiment, the smart phone is taken as an example for description.
- the method includes:
- the processor of the smartphone stops receiving the acceleration sensor.
- the data of the device stops the shaking detection.
- a cursor movement system is applied to an intelligent terminal, where the smart terminal includes at least an acceleration sensor, and the cursor movement system includes:
- the receiving module 10 is configured to receive, when the smart terminal is in the text editing mode, an acceleration generated when the user acquired by the acceleration sensor shakes the smart terminal;
- the determining module 20 is configured to determine, according to the direction and the size of the acceleration, whether the preset cursor movement rule is met;
- the moving module 30 is configured to: when the determining module 20 determines that the direction and size of the acceleration meet a preset cursor movement rule, move the cursor according to a cursor movement rule corresponding to the direction and size of the acceleration .
- the vector of the acceleration Satisfy among them, The acceleration vector for the x-axis direction, The acceleration vector for the y-axis direction, An acceleration vector for the z-axis direction;
- the preset cursor movement rule includes:
- the direction is toward the negative x-axis direction
- the angle ⁇ 1 between the direction of the x-axis and the negative direction of the x-axis satisfies 0° ⁇ ⁇ 1 ⁇ a first preset angle, and When the acceleration value is greater than or equal to the first preset value, the cursor is moved to the beginning of the line where the cursor is located;
- the direction is toward the positive direction of the x-axis
- the angle ⁇ 2 between the direction of the x-axis and the positive direction of the x-axis satisfies 0° ⁇ ⁇ 2 ⁇ a second preset angle, and When the acceleration value is greater than or equal to the second preset value, the cursor is moved to the end of the line where the cursor is located;
- the direction is toward the negative direction of the z-axis
- the angle ⁇ 3 between the direction of the z-axis and the negative direction of the z-axis satisfies 0° ⁇ ⁇ 3 ⁇ a third preset angle, and When the acceleration value is greater than or equal to the third preset value, the cursor is moved to the text tail of the current text;
- the direction is toward the positive direction of the z-axis
- the angle ⁇ 4 between the direction of the z-axis and the positive direction of the z-axis satisfies 0° ⁇ ⁇ 4 ⁇ a fourth preset angle, and When the acceleration value is greater than or equal to the fourth preset value, the cursor is moved to the text header of the current text;
- the preset cursor movement rule further includes:
- the acceleration value is greater than or equal to a fifth preset value, in the When the direction is toward the positive direction of the x-axis, The angle ⁇ 6 between the direction of the x-axis and the positive direction of the x-axis satisfies 0° ⁇ ⁇ 6 ⁇ a sixth preset angle, The acceleration value is greater than or equal to a sixth preset value, and the cursor is moved to the middle of the line where the cursor is located;
- the second preset time when said The direction of switching back and forth between the negative direction toward the z-axis and the positive direction toward the z-axis for a second predetermined number of times, and When the direction is toward the negative direction of the z-axis, The angle ⁇ 7 between the direction of the z-axis and the negative direction of the z-axis satisfies 0° ⁇ ⁇ 7 ⁇ a seventh preset angle, The acceleration value is greater than or equal to the seventh preset value, in the When the direction is toward the positive direction of the z-axis, The angle ⁇ 8 between the direction of the z-axis and the positive direction of the z-axis satisfies 0° ⁇ ⁇ 8 ⁇ an eighth preset angle, The acceleration value is greater than or equal to the eighth preset value, and the cursor is moved to the middle of the text of the current text.
- the mobile module 30 is specifically configured to:
- the mobile module 30 is further configured to:
- the cursor is moved to the end of the text of the current text.
- the mobile module 30 is further configured to:
- pos1 is 0 when the last newline closest to the current position of the cursor does not exist, when the next position closest to the current position of the cursor When the newline does not exist, pos2 is the total length of the current text.
- a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with such an instruction execution system, apparatus, or device.
- computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
- the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
- portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
- multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
- Position Input By Displaying (AREA)
Abstract
本发明公开了一种定位便捷的光标移动方法及系统,应用于智能终端中,所述智能终端至少包括加速传感器,所述方法包括:当所述智能终端处于文本编辑模式时,接收所述加速度传感器获取的用户晃动所述智能终端时产生的加速度;根据所述加速度的方向和大小判断是否符合预设的光标移动规则;若是,则根据与所述加速度的方向和大小对应的光标移动规则对所述光标进行移动。通过本发明,使用者只需晃动智能终端,通过接收智能终端中的加速度传感器获取的用户晃动所述智能终端时产生的加速度,然后根据与该加速度的方向和大小对应的光标移动规则实现对光标的移动,从而使光标移动到文本中对应的位置,光标定位更加便捷,且无需额外增加硬件成本。
Description
本发明涉及电子设备控制技术领域,特别是涉及一种光标移动方法及系统。
随着科技和互联网的飞速发展,智能终端(如智能手机)已逐渐成为人们日常生活中不可或缺的产品。智能终端的便携性和智能化改变了人们的生活和工作的方式。
在使用智能手机时,时常需要对文本进行编辑,比如用手机回复邮件、记录会议内容等,但受限于智能手机屏幕的大小,同时使用者的手指相对于屏幕中光标太大了,导致使用者很难一次性精确的把光标移动到某个位置,此外,当待编辑的文本比较长时,需要长时间滑动文本再定位光标到文本头或文本尾,便捷较差。
发明内容
为此,本发明实施例提出一种定位便捷的光标移动方法。
根据本发明一实施例的光标移动方法,应用于智能终端中,所述智能终端至少包括加速传感器,其特征在于,所述方法包括:
当所述智能终端处于文本编辑模式时,接收所述加速度传感器获取的用户晃动所述智能终端时产生的加速度;
根据所述加速度的方向和大小判断是否符合预设的光标移动规则;
若是,则根据与所述加速度的方向和大小对应的光标移动规则对所述光标进行移动。
根据本发明实施例的光标移动方法,当使用者在使用智能终端编辑文本时,只需晃动智能终端,通过接收智能终端中的加速度传感器获取的用户晃动所述智能终端时产生的加速度,然后根据与该加速度的方向和大小对应的光标移动规实现对光标的移动,从而使光标移动到文本中对应的位置,光标定位更加便捷,且无需额外增加硬件成本。
另外,根据本发明上述实施例的光标移动方法,还可以具有如下附加的技术特征:
所述预设的光标移动规则包括:
所述预设的光标移动规则包括:
所述预设的光标移动规则包括:
在第一预设时间内,当所述的方向在朝向x轴负方向和朝向x轴正方向之间来回切换第一预设次数,且在所述的方向朝向x轴负方向时,所述的
方向与x轴负方向之间的夹角α5满足0°≤α5≤第五预设角度,所述的加速度值大于等于第五预设值,在所述的方向朝向x轴正方向时,所述的方向与x轴正方向之间的夹角α6满足0°≤α6≤第六预设角度,所述的加速度值大于等于第六预设值,将所述光标移动到所述光标所在行的行中间;
在第二预设时间内,当所述的方向在朝向z轴负方向和朝向z轴正方向之间来回切换第二预设次数,且在所述的方向朝向z轴负方向时,所述的方向与z轴负方向之间的夹角α7满足0°≤α7≤第七预设角度,所述的加速度值大于等于第七预设值,在所述的方向朝向z轴正方向时,所述的方向与z轴正方向之间的夹角α8满足0°≤α8≤第八预设角度,所述的加速度值大于等于第八预设值,将所述光标移动到当前文本的文本中间。
进一步地,在本发明的一个实施例中,所述将所述光标移动到所述光标所在行的行首的步骤包括:
判断离所述光标当前位置最近的上一个换行符是否存在;
若是,则将所述光标移动到所述最近的上一个换行符的前一个字符的位置;
若否,则将所述光标移动到当前文本的文本头;
所述将所述光标移动到所述光标所在行的行尾的步骤包括:
判断离所述光标当前位置最近的下一个换行符是否存在;
若是,则将所述光标移动到所述最近的下一个换行符的位置;
若否,则将所述光标移动到当前文本的文本尾。
进一步地,在本发明的一个实施例中,所述将所述光标移动到所述光标所在行的行中间的步骤包括:
查找离所述光标当前位置最近的上一个换行符的位置pos1和离所述光标当前位置最近的下一个换行符的位置pos2;
将所述光标移动到(pos1+pos2)/2的位置,其中,当离所述光标当前位置最近的上一个换行符不存在时,pos1为0,当离所述光标当前位置最近的下一个换行符不存在时,pos2为当前文本的总长度。
本发明的另一个实施例提出一种定位便捷的光标移动系统。
根据本发明实施例的光标移动系统,应用于智能终端中,所述智能终端至
少包括加速传感器,所述光标移动系统包括:
接收模块,用于当所述智能终端处于文本编辑模式时,接收所述加速度传感器获取的用户晃动所述智能终端时产生的加速度;
判断模块,用于根据所述加速度的方向和大小判断是否符合预设的光标移动规则;
移动模块,用于当所述判断模块判断到所述加速度的方向和大小符合预设的光标移动规则时,根据与所述加速度的方向和大小对应的光标移动规则对所述光标进行移动。
另外,根据本发明上述实施例的光标移动系统,还可以具有如下附加的技术特征:
所述预设的光标移动规则包括:
所述预设的光标移动规则包括:
所述预设的光标移动规则包括:
在第一预设时间内,当所述的方向在朝向x轴负方向和朝向x轴正方向之间来回切换第一预设次数,且在所述的方向朝向x轴负方向时,所述的方向与x轴负方向之间的夹角α5满足0°≤α5≤第五预设角度,所述的加速度值大于等于第五预设值,在所述的方向朝向x轴正方向时,所述的方向与x轴正方向之间的夹角α6满足0°≤α6≤第六预设角度,所述的加速度值大于等于第六预设值,将所述光标移动到所述光标所在行的行中间;
在第二预设时间内,当所述的方向在朝向z轴负方向和朝向z轴正方向之间来回切换第二预设次数,且在所述的方向朝向z轴负方向时,所述的方向与z轴负方向之间的夹角α7满足0°≤α7≤第七预设角度,所述的加速度值大于等于第七预设值,在所述的方向朝向z轴正方向时,所述的方向与z轴正方向之间的夹角α8满足0°≤α8≤第八预设角度,所述的加速度值大于等于第八预设值,将所述光标移动到当前文本的文本中间。
进一步地,在本发明的一个实施例中,所述移动模块具体用于:
判断离所述光标当前位置最近的上一个换行符是否存在;
若是,则将所述光标移动到所述最近的上一个换行符的前一个字符的位置;
若否,则将所述光标移动到当前文本的文本头;
所述移动模块还用于:
判断离所述光标当前位置最近的下一个换行符是否存在;
若是,则将所述光标移动到所述最近的下一个换行符的位置;
若否,则将所述光标移动到当前文本的文本尾。
进一步地,在本发明的一个实施例中,所述移动模块还用于:
查找离所述光标当前位置最近的上一个换行符的位置pos1和离所述光标当
前位置最近的下一个换行符的位置pos2;
将所述光标移动到(pos1+pos2)/2的位置,其中,当离所述光标当前位置最近的上一个换行符不存在时,pos1为0,当离所述光标当前位置最近的下一个换行符不存在时,pos2为当前文本的总长度。
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实施例了解到。
本发明实施例的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:
图1是根据本发明第一实施例的光标移动方法的流程图;
图2是根据本发明一具体示例中智能手机的x轴、y轴及z轴的正方向和负方向的示意图;
图3是根据本发明第二实施例的光标移动方法的流程图;
图4是根据本发明另一实施例的光标移动系统的结构示意图。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图1,本发明第一实施例提出的光标移动方法,应用于智能终端中,所述智能终端至少包括加速传感器,所述智能终端可以是智能手机、或者智能平板,例如常见的Android系统或者IOS系统的触控智能手机,本实施例中以智能手机为例进行说明,所述方法包括:
S101,当所述智能终端处于文本编辑模式时,接收所述加速度传感器获取的用户晃动所述智能终端时产生的加速度;
当智能手机处于文本编辑模式时,例如对记事本中的文本进行编辑时,光标会出现中文本中的某一位置,此时,使用者可以晃动该智能手机,智能手机的处理器开始监听智能手机的加速度传感器的数据,以获取用户晃动所述智能终端时产生的加速度,实现晃动检测。
S102,根据所述加速度的方向和大小判断是否符合预设的光标移动规则;
具体的,加速度传感器获取的加速度包括大小和方向,例如加速度大小为5m/s2,方向为水平向左,该智能手机中可以事先存储预设的光标移动规则,不同方向和大小的加速度对应不同的光标移动规则,例如大小为5m/s2、方向为水平向左的加速度对应的光标移动规则为将光标移动到当前文本的中间,然后根据加速度传感器获取到的当前加速度,判断该当前加速度是否符合预设的光标移动规则。
S103,若是,则根据与所述加速度的方向和大小对应的光标移动规则对所述光标进行移动。
若当前加速度符合预设的光标移动规则,例如大小为5m/s2,方向为水平向左的加速度,这一加速度符合预设的光标移动规则,此时会将光标按照对应的光标移动规则进行移动,即将光标移动到当前文本的中间。可以理解的,若当前加速度不符合预设的光标移动规则,例如大小为0.8m/s2,方向为水平向左的加速度,这一加速度不符合预设的光标移动规则,没有对应的光标移动规则,则不会进行光标移动的操作。
根据本发明实施例的光标移动方法,当使用者在使用智能终端编辑文本时,只需晃动智能终端,通过接收智能终端中的加速度传感器获取的用户晃动所述智能终端时产生的加速度,然后根据与该加速度的方向和大小对应的光标移动规实现对光标的移动,从而使光标移动到文本中对应的位置,光标定位更加便捷,且现有的智能终端都配有加速度传感器,因此无需额外增加硬件成本。
此外,作为一个具体示例,智能手机的加速度传感器获取到的加速度的向量满足,其中,为x轴方向的加速度向量,为y轴方向的加速度向量,为z轴方向的加速度向量。具体可参阅图2,其中,x轴正方向和x轴负方向分别为智能手机水平面内的左方向和右方向,y轴正方向和y
轴负方向分别为智能手机水平面内的上方向和下方向,z轴正方向和z轴负方向分别为垂直于该智能手机水平面内的前方向和后方向。
智能手机中预设的光标移动规则包括:
其中,例如第一预设角度为30°,第一预设值为3m/s2,则只有当加速度传感器获取的用户晃动智能手机时产生的加速度的方向朝向x轴负方向,即在智能手机水平面内的向左,且0°≤α1≤30°,的加速度值大于等于3m/s2时,才会触发将光标移动到所述光标所在行的行首的操作。可以理解的,第一预设角度、第二预设角度、第三预设角度和第四预设角度可以相同,也可以不同,第一预设值、第二预设值、第三预设值和第一预设值可以相同,也可以不同。
此外,智能手机中预设的光标移动规则还包括:
在第一预设时间内,当所述的方向在朝向x轴负方向和朝向x轴正方向之间来回切换第一预设次数,且在所述的方向朝向x轴负方向时,所述的方向与x轴负方向之间的夹角α5满足0°≤α5≤第五预设角度,所述的加速度值大于等于第五预设值,在所述的方向朝向x轴正方向时,所述的方向与x轴正方向之间的夹角α6满足0°≤α6≤第六预设角度,所述的加速度值大于等于第六预设值,将所述光标移动到所述光标所在行的行中间;
在第二预设时间内,当所述的方向在朝向z轴负方向和朝向z轴正方向之间来回切换第二预设次数,且在所述的方向朝向z轴负方向时,所述的方向与z轴负方向之间的夹角α7满足0°≤α7≤第七预设角度,所述的加速度值大于等于第七预设值,在所述的方向朝向z轴正方向时,所述的方向与z轴正方向之间的夹角α8满足0°≤α8≤第八预设角度,所述的加速度值大于等于第八预设值,将所述光标移动到当前文本的文本中间。
其中,例如第一预设时间为3秒,第一预设次数为两次,第五预设角度和第六预设角度均为30°,第五预设值和第六预设值均为3m/s2,则只有在3秒内,加速度传感器获取的用户晃动智能手机时产生的加速度的方向朝向x轴负方向和朝向x轴正方向之间来回切换两次,即3秒内,在智能手机水平面内的左右晃动两次,且在所述的方向朝向x轴负方向时,即向左晃动时,0°≤α5≤30°,的加速度值大于等于3m/s2,在所述的方向朝向x轴正方向时,即向右晃动时,0°≤α6≤30°,的加速度值大于等于3m/s2,此时,才会触发将光标移动到所述光标所在行的行中间的操作。可以理解的,第五预设角度、第六预设角度、第七预设角度及第八预设角度与第一预设角度可以相同,也可以不同,第五预设值、第六预设值、第七预设值、及第八预设值和第一预设值可以相同,也可以不同。
此外,作为一个具体示例,将光标移动到当前文本的文本头具体为:将光标移动到字符位置为0的位置。
将光标移动到当前文本的文本尾具体为:获取当前文本的总长度length,将光标移动到length的位置。
将光标移动到当前文本的文本中间具体为:获取当前文本的总长度length,将光标移动到length/2的位置。
将所述光标移动到所述光标所在行的行首的步骤包括:
判断离所述光标当前位置最近的上一个换行符是否存在;
若是,则将所述光标移动到所述最近的上一个换行符的前一个字符的位置;
若否,则将所述光标移动到当前文本的文本头。
将所述光标移动到所述光标所在行的行尾的步骤包括:
判断离所述光标当前位置最近的下一个换行符是否存在;
若是,则将所述光标移动到所述最近的下一个换行符的位置;
若否,则将所述光标移动到当前文本的文本尾。
将所述光标移动到所述光标所在行的行中间的步骤包括:
查找离所述光标当前位置最近的上一个换行符的位置pos1和离所述光标当前位置最近的下一个换行符的位置pos2;
将所述光标移动到(pos1+pos2)/2的位置,其中,当离所述光标当前位置最近的上一个换行符不存在时,pos1为0,当离所述光标当前位置最近的下一个换行符不存在时,pos2为当前文本的总长度。
下面给出一个具体应用环境,当用户在使用智能手机回复邮件时,由于正在编辑的邮件内容较多,需要快速定位到文本的尾部,此时,用户只需要向下晃动手机,使加速度的方向朝向z轴负方向(智能手机水平面内的朝下的方向),保证晃动的角度正确,即使的方向与z轴负方向之间的夹角α3满足0°≤α3≤第三预设角度,且保证晃动有一定力度,即使的加速度值大于等于第三预设值时,光标就会自动移动在文本尾,方便快捷。
请参阅图3,本发明第二实施例提出的光标移动方法,应用于智能终端中,所述智能终端至少包括加速传感器,所述智能终端可以是智能手机、或者智能平板,例如常见的Android系统或者IOS系统的触控智能手机,本实施例中以智能手机为例进行说明,所述方法包括:
S201,当所述智能终端处于文本编辑模式时,接收所述加速度传感器获取的用户晃动所述智能终端时产生的加速度;
S202,根据所述加速度的方向和大小判断是否符合预设的光标移动规则;
S203,若是,则根据与所述加速度的方向和大小对应的光标移动规则对所述光标进行移动。
S204,当接收到结束文本编辑的指令时,停止接收所述加速度传感器的数据。
其中,当用户按智能手机上的返回键或主页键退出文本编辑界面时,表示接收到了结束文本编辑的指令,此时,智能手机的处理器停止接收加速度传感
器的数据,停止了晃动检测。
请参阅图4,基于同一发明构思,本发明另一实施例提出的光标移动系统,应用于智能终端中,所述智能终端至少包括加速传感器,其特征在于,所述光标移动系统包括:
接收模块10,用于当所述智能终端处于文本编辑模式时,接收所述加速度传感器获取的用户晃动所述智能终端时产生的加速度;
判断模块20,用于根据所述加速度的方向和大小判断是否符合预设的光标移动规则;
移动模块30,用于当所述判断模块20判断到所述加速度的方向和大小符合预设的光标移动规则时,根据与所述加速度的方向和大小对应的光标移动规则对所述光标进行移动。
所述预设的光标移动规则包括:
本实施例中,所述预设的光标移动规则还包括:
在第一预设时间内,当所述的方向在朝向x轴负方向和朝向x轴正方向之间来回切换第一预设次数,且在所述的方向朝向x轴负方向时,所述的方向与x轴负方向之间的夹角α5满足0°≤α5≤第五预设角度,所述的加速度值大于等于第五预设值,在所述的方向朝向x轴正方向时,所述的方向与x轴正方向之间的夹角α6满足0°≤α6≤第六预设角度,所述的加速度值大于等于第六预设值,将所述光标移动到所述光标所在行的行中间;
在第二预设时间内,当所述的方向在朝向z轴负方向和朝向z轴正方向之间来回切换第二预设次数,且在所述的方向朝向z轴负方向时,所述的方向与z轴负方向之间的夹角α7满足0°≤α7≤第七预设角度,所述的加速度值大于等于第七预设值,在所述的方向朝向z轴正方向时,所述的方向与z轴正方向之间的夹角α8满足0°≤α8≤第八预设角度,所述的加速度值大于等于第八预设值,将所述光标移动到当前文本的文本中间。
本实施例中,所述移动模块30具体用于:
判断离所述光标当前位置最近的上一个换行符是否存在;
若是,则将所述光标移动到所述最近的上一个换行符的前一个字符的位置;
若否,则将所述光标移动到当前文本的文本头;
所述移动模块30还用于:
判断离所述光标当前位置最近的下一个换行符是否存在;
若是,则将所述光标移动到所述最近的下一个换行符的位置;
若否,则将所述光标移动到当前文本的文本尾。
本实施例中,所述移动模块30还用于:
查找离所述光标当前位置最近的上一个换行符的位置pos1和离所述光标当前位置最近的下一个换行符的位置pos2;
将所述光标移动到(pos1+pos2)/2的位置,其中,当离所述光标当前位置最近的上一个换行符不存在时,pos1为0,当离所述光标当前位置最近的下一个换行符不存在时,pos2为当前文本的总长度。
本发明实施例提出的光标移动系统的技术特征和技术效果与本发明实施例提出的方法相同,在此不予赘述。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。
计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
尽管已经示出和描述了本发明的实施例,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。
Claims (12)
- 一种光标移动方法,应用于智能终端中,所述智能终端至少包括加速传感器,其特征在于,所述方法包括:当所述智能终端处于文本编辑模式时,接收所述加速度传感器获取的用户晃动所述智能终端时产生的加速度;根据所述加速度的方向和大小判断是否符合预设的光标移动规则;若是,则根据与所述加速度的方向和大小对应的光标移动规则对所述光标进行移动。
- 根据权利要求1或2所述的光标移动方法,其特征在于:所述预设的光标移动规则包括:在第一预设时间内,当所述的方向在朝向x轴负方向和朝向x轴正方向之间来回切换第一预设次数,且在所述的方向朝向x轴负方向时,所述的方向与x轴负方向之间的夹角α5满足0°≤α5≤第五预设角度,所述的加速度值大于等于第五预设值,在所述的方向朝向x轴正方向时,所述的方向与x轴正方向之间的夹角α6满足0°≤α6≤第六预设角度,所述的加速度值大于等于第六预设值,将所述光标移动到所述光标所在行的行中间;
- 根据权利要求2所述的光标移动方法,其特征在于,所述将所述光标移动到所述光标所在行的行首的步骤包括:判断离所述光标当前位置最近的上一个换行符是否存在;若是,则将所述光标移动到所述最近的上一个换行符的前一个字符的位置;若否,则将所述光标移动到当前文本的文本头;所述将所述光标移动到所述光标所在行的行尾的步骤包括:判断离所述光标当前位置最近的下一个换行符是否存在;若是,则将所述光标移动到所述最近的下一个换行符的位置;若否,则将所述光标移动到当前文本的文本尾。
- 根据权利要求4所述的光标移动方法,其特征在于,所述将所述光标移动到所述光标所在行的行中间的步骤包括:查找离所述光标当前位置最近的上一个换行符的位置pos1和离所述光标当前位置最近的下一个换行符的位置pos2;将所述光标移动到(pos1+pos2)/2的位置,其中,当离所述光标当前位置最近的上一个换行符不存在时,pos1为0,当离所述光标当前位置最近的下一个换行符不存在时,pos2为当前文本的总长度。
- 一种光标移动系统,应用于智能终端中,所述智能终端至少包括加速传感器,其特征在于,所述光标移动系统包括:接收模块,用于当所述智能终端处于文本编辑模式时,接收所述加速度传感器获取的用户晃动所述智能终端时产生的加速度;判断模块,用于根据所述加速度的方向和大小判断是否符合预设的光标移动规则;移动模块,用于当所述判断模块判断到所述加速度的方向和大小符合预设的光标移动规则时,根据与所述加速度的方向和大小对应的光标移动规则对所述光标进行移动。
- 所述预设的光标移动规则包括:在第一预设时间内,当所述的方向在朝向x轴负方向和朝向x轴正方向之间来回切换第一预设次数,且在所述的方向朝向x轴负方向时,所述的方向与x轴负方向之间的夹角α5满足0°≤α5≤第五预设角度,所述的加速度值大于等于第五预设值,在所述的方向朝向x轴正方向时,所述的方向与x轴正方向之间的夹角α6满足0°≤α6≤第六预设角度,所述的加速度值大于等于第六预设值,将所述光标移动到所述光标所在行的行中间;
- 根据权利要求8所述的光标移动系统,其特征在于,所述移动模块具体用于:判断离所述光标当前位置最近的上一个换行符是否存在;若是,则将所述光标移动到所述最近的上一个换行符的前一个字符的位置;若否,则将所述光标移动到当前文本的文本头;所述移动模块还用于:判断离所述光标当前位置最近的下一个换行符是否存在;若是,则将所述光标移动到所述最近的下一个换行符的位置;若否,则将所述光标移动到当前文本的文本尾。
- 根据权利要求10所述的光标移动系统,其特征在于,所述移动模块还用于:查找离所述光标当前位置最近的上一个换行符的位置pos1和离所述光标当前位置最近的下一个换行符的位置pos2;将所述光标移动到(pos1+pos2)/2的位置,其中,当离所述光标当前位置最近的上一个换行符不存在时,pos1为0,当离所述光标当前位置最近的下一个换行符不存在时,pos2为当前文本的总长度。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710278819.8A CN107155002B (zh) | 2017-04-25 | 2017-04-25 | 光标移动方法及系统 |
| CN201710278819.8 | 2017-04-25 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018196277A1 true WO2018196277A1 (zh) | 2018-11-01 |
Family
ID=59793089
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/103775 Ceased WO2018196277A1 (zh) | 2017-04-25 | 2017-09-27 | 光标移动方法及系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107155002B (zh) |
| WO (1) | WO2018196277A1 (zh) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107155002B (zh) * | 2017-04-25 | 2020-02-18 | 广州视源电子科技股份有限公司 | 光标移动方法及系统 |
| CN109814974A (zh) * | 2019-01-31 | 2019-05-28 | 维沃移动通信有限公司 | 应用程序界面调整方法及移动终端 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008287810A (ja) * | 2007-05-18 | 2008-11-27 | Funai Electric Co Ltd | 情報再生装置および電子機器 |
| CN101515953A (zh) * | 2009-03-20 | 2009-08-26 | 上海闻泰电子科技有限公司 | 具有感应按键功能的移动终端及实现感应按键的方法 |
| CN102279647A (zh) * | 2011-06-20 | 2011-12-14 | 中兴通讯股份有限公司 | 一种移动终端及其实现光标移动的方法 |
| CN102646019A (zh) * | 2012-02-24 | 2012-08-22 | 康佳集团股份有限公司 | 一种设备的输入方法及其设备 |
| CN103257815A (zh) * | 2012-02-20 | 2013-08-21 | 索尼爱立信移动通讯有限公司 | 一种触摸位置定位方法、文本选择方法、装置及电子设备 |
| CN105652825A (zh) * | 2015-04-29 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | 一种控制指令获取方法及装置 |
| CN107155002A (zh) * | 2017-04-25 | 2017-09-12 | 广州视源电子科技股份有限公司 | 光标移动方法及系统 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TW576984B (en) * | 2002-07-19 | 2004-02-21 | Jen-Hwang Weng | On-line web page editing system and method |
| CN107977148A (zh) * | 2014-10-11 | 2018-05-01 | 广东欧珀移动通信有限公司 | 移动光标的方法及装置 |
-
2017
- 2017-04-25 CN CN201710278819.8A patent/CN107155002B/zh active Active
- 2017-09-27 WO PCT/CN2017/103775 patent/WO2018196277A1/zh not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008287810A (ja) * | 2007-05-18 | 2008-11-27 | Funai Electric Co Ltd | 情報再生装置および電子機器 |
| CN101515953A (zh) * | 2009-03-20 | 2009-08-26 | 上海闻泰电子科技有限公司 | 具有感应按键功能的移动终端及实现感应按键的方法 |
| CN102279647A (zh) * | 2011-06-20 | 2011-12-14 | 中兴通讯股份有限公司 | 一种移动终端及其实现光标移动的方法 |
| CN103257815A (zh) * | 2012-02-20 | 2013-08-21 | 索尼爱立信移动通讯有限公司 | 一种触摸位置定位方法、文本选择方法、装置及电子设备 |
| CN102646019A (zh) * | 2012-02-24 | 2012-08-22 | 康佳集团股份有限公司 | 一种设备的输入方法及其设备 |
| CN105652825A (zh) * | 2015-04-29 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | 一种控制指令获取方法及装置 |
| CN107155002A (zh) * | 2017-04-25 | 2017-09-12 | 广州视源电子科技股份有限公司 | 光标移动方法及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107155002B (zh) | 2020-02-18 |
| CN107155002A (zh) | 2017-09-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111566652B (zh) | 用于辅助用户完成任务的上下文感知的推荐 | |
| KR102010507B1 (ko) | 지능형 단말을 위한 제어 방법 | |
| KR102036337B1 (ko) | 발신자 전화번호를 이용한 부가 정보 제공 장치 및 방법 | |
| CN103713843B (zh) | 用于在移动装置中产生任务推荐图标的方法和设备 | |
| KR102141155B1 (ko) | 모바일 장치의 상태에 대응하는 변경된 숏컷 아이콘을 제공하는 모바일 장치 및 그 제어 방법 | |
| US20150149925A1 (en) | Emoticon generation using user images and gestures | |
| CN108900770B (zh) | 一种控制摄像头旋转的方法、装置、智能手表及移动终端 | |
| US11265414B2 (en) | Method and device for waking up voice recognition function in mobile terminal, and computer readable storage medium | |
| JP2015515040A (ja) | ドキュメント内のコンテンツオブジェクトを共有するためのデバイス、方法、及びグラフィカルユーザインタフェース | |
| WO2017005085A1 (zh) | 一种数据压缩方法、装置及终端 | |
| CN104317498A (zh) | 便携式终端及其操作方法 | |
| CN107729897B (zh) | 一种文本操作方法、装置及终端 | |
| WO2019205552A1 (zh) | 在线文档的评论方法和装置 | |
| US20180025731A1 (en) | Cascading Specialized Recognition Engines Based on a Recognition Policy | |
| CN110531910A (zh) | 一种界面显示方法及设备 | |
| CN105653132A (zh) | 一种消息通知方法、装置及电子设备 | |
| CN112925426A (zh) | 触控笔的处理方法、装置和电子设备 | |
| CN111638844A (zh) | 截屏方法、装置及电子设备 | |
| CN105072335B (zh) | 一种拍照方法及用户终端 | |
| CN110929484A (zh) | 文本处理方法、装置及存储介质 | |
| CN105005489B (zh) | 一种终端设备的启动方法及终端设备 | |
| WO2018196277A1 (zh) | 光标移动方法及系统 | |
| CN111694626A (zh) | 应用跳转方法、装置、终端及存储介质 | |
| CN108038359A (zh) | 解锁方法及相关产品 | |
| CN109753974B (zh) | 物体旋转角度的检测方法、装置及电子设备 |
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: 17907826 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: 1205A, 26.02.2020 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17907826 Country of ref document: EP Kind code of ref document: A1 |