WO2019015581A1 - 文字删除方法及移动终端 - Google Patents

文字删除方法及移动终端 Download PDF

Info

Publication number
WO2019015581A1
WO2019015581A1 PCT/CN2018/095966 CN2018095966W WO2019015581A1 WO 2019015581 A1 WO2019015581 A1 WO 2019015581A1 CN 2018095966 W CN2018095966 W CN 2018095966W WO 2019015581 A1 WO2019015581 A1 WO 2019015581A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
sliding
characters
text input
input box
Prior art date
Application number
PCT/CN2018/095966
Other languages
English (en)
French (fr)
Inventor
马亮
张宝亮
邱杰
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2019015581A1 publication Critical patent/WO2019015581A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/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
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User 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/72436User 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Definitions

  • the present disclosure relates to the field of mobile terminal technologies, and in particular, to a text deletion method and a mobile terminal.
  • an embodiment of the present disclosure provides a text deletion method, which is applied to a mobile terminal, and the method includes:
  • the sliding operation of the mobile terminal in the text input box is detected, monitoring the sliding direction of the sliding operation; if the sliding direction conforms to the first preset direction, determining to perform a deleting operation in the text input box; The sliding direction conforms to the second preset direction, and then it is determined that the undo deletion operation is performed in the text input box.
  • an embodiment of the present disclosure further provides a mobile terminal, including:
  • a sliding direction detecting module configured to monitor a sliding direction of the sliding operation when detecting a sliding operation of the mobile terminal in the text input box; and deleting an operation execution module, if the sliding direction conforms to the first preset direction, And determining to perform a delete operation in the text input box; and canceling the delete operation execution module, if the sliding direction conforms to the second preset direction, determining to perform the undo delete operation in the text input box.
  • an embodiment of the present disclosure further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being the processor The steps to implement the above text deletion method at execution time.
  • an embodiment of the present disclosure further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the step of implementing the text deletion method when the computer program is executed by a processor .
  • FIG. 1 is a flowchart of a text deletion method in Embodiment 1 of the present disclosure
  • FIG. 2 is a flowchart of a text deletion method in Embodiment 2 of the present disclosure
  • FIG. 2A is a schematic view showing a range of a sliding area in Embodiment 2 of the present disclosure
  • 2B is a schematic view showing a sliding operation distance in the second embodiment of the present disclosure.
  • FIG. 2C is a schematic view showing a sliding operation direction in Embodiment 2 of the present disclosure.
  • FIG. 3 is a structural block diagram of a mobile terminal according to Embodiment 3 of the present disclosure.
  • FIG. 4 is a structural block diagram of a mobile terminal according to Embodiment 3 of the present disclosure.
  • FIG. 5 is a structural block diagram of a mobile terminal according to Embodiment 4 of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a mobile terminal according to Embodiment 5 of the present disclosure.
  • FIG. 1 a flow chart of a text deletion method according to Embodiment 1 of the present disclosure is shown, which may specifically include the following steps:
  • Step 110 If the sliding operation of the mobile terminal in the text input box is detected, the sliding direction of the sliding operation is monitored.
  • the text input mode is triggered.
  • the Android system can monitor the current state through the state of the function AutoCompleteTextView. Whether the interface triggers the text input state, and further monitors whether the user performs a sliding operation in the state.
  • the listener GestureDetector.OnGestureListener can be used to determine whether the left or right slides according to the x or y axis change coordinates and slide according to different gestures.
  • the event processing doResult(int action) is performed.
  • the trigger to the sliding event it can be determined by which axis is moved by monitoring the moving distance of the sliding operation on the X-axis and the Y-axis of the coordinate system on the Android screen. Which axis has a large moving distance is which axis to move, and then determines the moving direction of the sliding operation.
  • the coordinate point of the user pressing the finger can be monitored by the Android function MotionEvent.ACTION_DOWN, MotionEvent.ACTION_MOVE monitors the user's finger movement event, and MotionEvent.ACTION_UP monitors the coordinates of the user's finger when lifting.
  • the method of detecting the user sliding operation and the corresponding coordinates is not limited to the above description, and the embodiment of the present disclosure does not limit this.
  • Step 120 If the sliding direction conforms to the first preset direction, determine to perform a delete operation in the text input box.
  • the preset direction after determining the specific sliding direction of the sliding operation of the user according to the foregoing method, matching with the preset sliding direction, and performing a corresponding operation, for example, the preset direction may be top-down, bottom-up.
  • the sliding operation can form a fixed figure, such as a circle, a triangle, or the like, on the display screen of the mobile terminal, and the embodiment of the present disclosure is not specifically limited.
  • Step 130 If the sliding direction meets the second preset direction, determine to perform an undo delete operation in the text input box.
  • step 130 when it is determined that the sliding direction of the sliding operation matches the preset second sliding direction, and the operation corresponding to the second preset direction is the undo deletion operation, then the previous user is The text deleted in the text box is restored in the original display area.
  • the second preset direction may be a direction opposite to the first preset direction, which is convenient for the user to memorize, and may be arbitrarily set according to user requirements. The comparison of the embodiments of the present disclosure is not limited.
  • the deletion operation or the undo deletion operation reduces the user's operation steps of deleting or undoing the deletion of the text, and the beneficial effect of the user's use experience is enhanced.
  • FIG. 2 a flowchart of a text deletion method according to Embodiment 2 of the present disclosure is shown, which may specifically include the following steps:
  • Step 210 If the sliding operation of the mobile terminal in the text input box is detected, the sliding direction of the sliding operation is monitored.
  • This step is the same as step 110 and will not be described in detail herein.
  • Step 220 If the sliding direction conforms to the first preset direction, detecting a character covered by the area of the sliding operation.
  • the terminal after determining that the terminal enters the “character input” state, it is detected whether the user performs a right-to-left sliding operation on the terminal, wherein the sliding direction from the right to the left is the first preset direction, if not If it is detected that the user performs a right-to-left operation on the terminal, the detection is maintained until the user detects a right-to-left " ⁇ " operation on the terminal, and if the user is detected to make a right-to-left operation on the terminal.
  • the " ⁇ " type sliding operation determines which area of the smart terminal display screen the user performs the sliding operation, and the intelligent terminal records the area range, as shown in FIG. 2A, detecting the right-to-left " ⁇ "
  • the character covered in the area where the slide operation is located is "smart".
  • Step 230 After the overwritten characters are cached, perform a delete operation.
  • the "smart” is cached in a preset cache directory, and then the "smart” word is deleted. operating.
  • Step 240 If the sliding direction meets the second preset direction, detecting a distance that the sliding operation slides in the text input box.
  • the sliding direction from left to right is the second.
  • the preset direction is maintained until the user detects that the user performs a left-to-right sliding operation on the terminal, detecting that the user performs an "L"-type sliding operation from left to right on the terminal, detecting and determining that the user is sliding.
  • the distance of the operation wherein the method of step 110 can be used to detect the start operation coordinate and the end coordinate of the sliding operation on the display screen of the mobile terminal when the user slides, thereby calculating the distance of the sliding operation, as shown in FIG. 2B.
  • the direction is the direction in which the user slides, and the distance indicated by the arrow is the distance the user slides.
  • Step 250 If the sliding distance exceeds a preset distance threshold, perform an undo deletion operation.
  • the distance of the sliding operation is detected, and it is determined whether the preset sliding operation displacement threshold is exceeded.
  • the distance of the sliding operation may be measured in millimeters.
  • the preset sliding distance threshold is a character distance. 4 mm, if the sliding distance exceeds 4 mm, the preset distance threshold is exceeded, and the character deleted by the user is restored.
  • step 250 includes: sub-step 251 - sub-step 253.
  • sub-step 251 if the sliding distance exceeds the preset distance threshold, the preset number of characters corresponding to the preset distance threshold is obtained.
  • the preset sliding distance threshold is 4 mm for one character and the sliding distance exceeds 4 mm
  • the number of characters to be restored corresponding to the preset distance threshold is first obtained. For example, 4 mm corresponds to recovering one character, then 8 mm corresponds to recovering two characters.
  • Sub-step 252 obtaining a multiple of the sliding distance exceeding a preset distance threshold.
  • the sliding distance is compared with the preset distance threshold to obtain a multiple of the sliding distance exceeding the preset distance threshold, for example, the preset sliding distance is 4 mm, and the current sliding distance is 9 mm, then The sliding distance exceeds the preset distance threshold by a factor of two.
  • the preset distance threshold can be changed according to the needs of the user, and the embodiment of the present disclosure does not limit this.
  • Sub-step 253 according to the multiple of the preset distance threshold, the characters of the preset multiples of the corresponding multiples are sequentially restored to the text input box, where
  • the cached deleted characters are all restored to the text input box in order.
  • the undo deletion operation is performed according to the corresponding number of characters corresponding to the multiple, for example, 4 mm corresponds to recover one character, then twice is equivalent to 8 mm corresponds to the recovery of two characters.
  • the preset number of characters is also modified as needed, and the embodiment of the present disclosure does not limit this.
  • the deleted text cache is in the system-specific directory. If the number of deleted characters in the cache is less than the preset number of characters or the corresponding multiple of the preset number of characters according to the user's recovery delete operation, the deleted characters will be cached. All recovered, for example, 4 mm corresponds to recovering one character, then twice is equivalent to 8 mm, corresponding to recovering two characters, and there is only one deleted character in the cache, or there is no cache deleted character, then only one character is restored. Or do nothing.
  • the deleted text is cached in the system-specific directory, but after the user exits the current input text state, the cache is automatically cleared to reduce system data redundancy, which is not limited in this embodiment.
  • the method further includes:
  • step A210 if the sliding direction conforms to the second preset direction, the execution duration of the sliding operation is detected.
  • the sliding operation direction is the second preset. The direction is maintained until the user detects a sliding operation on the terminal, detecting that the user performs a sliding operation on the terminal, and detecting and determining the duration of the user performing the sliding operation, wherein the description may be performed in step 110.
  • the method detects the start time and the end time of the sliding operation on the display screen of the mobile terminal when the user slides, and then calculates the duration of the sliding operation.
  • step A220 if the execution duration exceeds the preset time threshold, the undo delete operation is performed according to the preset number of characters corresponding to the preset time threshold.
  • detecting and determining when the user performs the sliding operation detecting the time when the user's finger stops sliding and staying on the screen, detecting whether the time that the finger stops on the screen after the finger stops sliding exceeds the set threshold, and the multiple is exceeded. Undo the delete operation.
  • the step A220 includes: sub-steps A221-A223.
  • sub-step A221 if the execution duration exceeds the preset time threshold, the preset number of characters corresponding to the preset time threshold is obtained.
  • the preset sliding time threshold is 1 second for one character and the sliding operation time exceeds 1 second
  • the number of characters to be restored corresponding to the preset time threshold is first acquired, for example, 1 second corresponding recovery.
  • One character, then 2 mm corresponds to recovering two characters.
  • Sub-step A222 obtaining a multiple of the execution duration (which may also be referred to as a sliding duration) exceeding a preset time threshold.
  • the execution duration is compared with the preset time threshold, and the execution duration is a multiple of the preset time threshold.
  • the preset sliding time threshold is 1 second, and the current execution time is 5 seconds. Then the slip execution time exceeds the preset time threshold by a factor of five.
  • the preset time threshold may be changed according to the user's needs, and the embodiment of the present disclosure does not limit this.
  • the cached deleted characters are all restored to the text input box in order.
  • the undo deletion operation is performed according to the corresponding number of characters corresponding to the multiple, for example, one second corresponds to recover one character, then five times is equivalent to 5 seconds corresponds to recovery of five characters.
  • the preset number of characters is also modified as needed, and the embodiment of the present disclosure does not limit this.
  • the deleted text cache is in the system-specific directory. If the number of deleted characters in the cache is less than the preset number of characters or the corresponding multiple of the preset number of characters according to the user's recovery delete operation, the deleted characters will be cached. All recovery, for example, 1 second corresponds to recovering one character, then 5 times is equivalent to 5 seconds, corresponding to recovery of five characters, and the cache has only one deleted character, or does not cache deleted characters, then only one character is restored. Or do nothing.
  • the sliding operation of the mobile terminal in the text input box and the sliding direction of the sliding operation are detected, and the sliding direction of the sliding operation is matched with the preset sliding direction, and the sliding direction of the user is detected.
  • the sliding distance or the length of the sliding operation determines the number of characters for performing the undo deletion operation corresponding to the preset sliding direction.
  • FIG. 3 a structural block diagram of a mobile terminal according to Embodiment 3 of the present disclosure is shown.
  • the mobile terminal 300 includes a sliding direction detecting module 301, a deleting operation executing module 302, and an undo deleting operation executing module 303.
  • each module of the mobile terminal 400 the functions of each module of the mobile terminal 400 and the interaction relationship between the modules are respectively described in detail below.
  • the sliding direction detecting module 401 is configured to monitor a sliding direction of the sliding operation if detecting a sliding operation of the mobile terminal in the text input box;
  • the deletion operation execution module 402 is configured to perform a deletion operation in the text input box if the sliding direction conforms to the first preset direction;
  • the delete operation execution module 402 includes:
  • the cover character determining sub-module 4021 is configured to detect a character covered by the area of the sliding operation if the sliding direction conforms to the first preset direction;
  • the delete operation execution sub-module 4022 is configured to perform the delete operation after buffering the overwritten characters.
  • the undo deletion operation execution module 403 is configured to perform an undo deletion operation in the text input box if the sliding direction conforms to the second preset direction.
  • the undo delete operation execution module 403 includes:
  • the sliding distance determining sub-module 4031 is configured to detect a sliding distance of the sliding operation in the text input box if the sliding direction conforms to the second preset direction;
  • the delete operation execution sub-module 4032 is configured to perform an undo delete operation if the sliding distance exceeds a preset distance threshold.
  • the undo delete operation execution submodule 4032 includes:
  • a preset number of characters obtaining unit configured to acquire a preset number of characters corresponding to the preset distance threshold if the sliding distance exceeds a preset distance threshold
  • a transcendental multiple determining unit configured to acquire a multiple of the sliding distance exceeding a preset distance threshold
  • a recovery unit configured to restore the characters of the preset number of characters of the corresponding multiple to the text input box according to the multiple of the preset distance threshold, wherein
  • the cached deleted characters are all restored to the text input box in order.
  • the undo delete operation execution module 403 further includes:
  • the execution time determination submodule is configured to detect an execution duration of the sliding operation if the sliding direction conforms to the second preset direction;
  • the undo deletion sub-module is configured to perform an undo deletion operation according to the preset number of characters corresponding to the preset time threshold, if the execution duration exceeds a preset time threshold.
  • the undo delete operation submodule includes:
  • a preset character number obtaining unit configured to acquire a preset number of characters corresponding to the preset time threshold if the execution time exceeds a preset time threshold
  • a time-multiple-acquisition acquiring unit configured to acquire a multiple of the execution duration exceeding a preset time threshold
  • the cached deleted characters are all restored to the text input box in order.
  • the sliding operation of the mobile terminal in the text input box and the sliding direction of the sliding operation are detected, and the sliding direction of the sliding operation is matched with the preset sliding direction, and the sliding direction of the user is detected.
  • the sliding distance or the length of the sliding operation determines the number of characters for performing the undo deletion operation corresponding to the preset sliding direction.
  • FIG. 5 a structural block diagram of a mobile terminal in Embodiment 4 of the present disclosure is shown.
  • the mobile terminal 500 shown in FIG. 5 includes at least one processor 501, a memory 502, at least one network interface 504, and a user interface 503.
  • the various components in mobile terminal 500 are coupled together by a bus system 505.
  • bus system 505 is used to implement connection communication between these components.
  • the bus system 505 includes a power bus, a control bus, and a status signal bus in addition to the data bus.
  • various buses are labeled as bus system 505 in FIG.
  • the user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touchpad, or a touch screen, etc.).
  • a pointing device eg, a mouse, a trackball, a touchpad, or a touch screen, etc.
  • the memory 502 in an embodiment of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory.
  • the volatile memory can be a Random Access Memory (RAM) that acts as an external cache.
  • RAM Random Access Memory
  • many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM).
  • the memory 502 of the systems and methods described in the embodiments of the present disclosure is intended to comprise, without being limited to, these and any other suitable types of memory.
  • memory 502 stores elements, executable modules or data structures, or a subset thereof, or their extended set: operating system 5021 and application 5022.
  • the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks.
  • the application 5022 includes various applications, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services.
  • a program implementing the method of the embodiments of the present disclosure may be included in the application 5022.
  • the processor 501 by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is configured to detect the sliding operation of the mobile terminal in the text input box. And monitoring the sliding direction of the sliding operation; if the sliding direction conforms to the first preset direction, determining to perform a deleting operation in the text input box; if the sliding direction conforms to the second preset direction, determining The undo delete operation is performed in the text input box.
  • the method disclosed in the above embodiments of the present disclosure may be applied to the processor 501 or implemented by the processor 501.
  • Processor 501 may be an integrated circuit chip with signal processing capabilities.
  • each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 501 or an instruction in a form of software.
  • the processor 501 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present disclosure may be implemented or carried out.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in connection with the embodiments of the present disclosure may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
  • the embodiments described in the embodiments of the present disclosure may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof.
  • the processing unit can be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processing (DSP), Digital Signal Processing Equipment (DSP Device, DSPD), programmable Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), general purpose processor, controller, microcontroller, microprocessor, other for performing the functions described herein In an electronic unit or a combination thereof.
  • ASICs Application Specific Integrated Circuits
  • DSP Digital Signal Processing
  • DSP Device Digital Signal Processing Equipment
  • PLD programmable Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • the techniques described in the embodiments of the present disclosure may be implemented by modules (eg, procedures, functions, etc.) that perform the functions described in the embodiments of the present disclosure.
  • the software code can be stored in memory and executed by the processor.
  • the memory can be implemented in the processor or external to the processor.
  • the processor 501 is further configured to: if the sliding direction meets the first preset direction, Then, the character covered by the area of the sliding operation is detected; after the overwritten character is buffered, a deletion operation is performed.
  • the processor 501 is further configured to: if the sliding direction meets the second preset direction And detecting a sliding distance of the sliding operation in the text input box; if the sliding distance exceeds a preset distance threshold, performing an undo deletion operation.
  • the processor 501 is further configured to: if the sliding distance exceeds the preset distance threshold, obtain the preset distance threshold a preset number of characters; obtaining a multiple of the sliding distance exceeding a preset distance threshold; and returning, according to the multiple of the preset distance threshold, a character of the preset multiple of the preset number of characters to the text input box ,among them,
  • the cached deleted characters are all restored to the text input box in order.
  • the processor 501 is further configured to: if the sliding direction meets the second preset direction The execution time of the sliding operation is detected. If the execution time exceeds the preset time threshold, the undo deletion operation is performed according to the preset number of characters corresponding to the preset time threshold.
  • the processor 501 is further configured to: if the execution duration exceeds, when the undo deletion operation is performed according to the preset number of characters corresponding to the preset time threshold
  • the preset time threshold is obtained, the preset number of characters corresponding to the preset time threshold is obtained; and the execution duration is greater than a preset time threshold; and the multiple of the corresponding multiple is exceeded according to the multiple of the preset time threshold
  • the characters of the preset number of characters are restored to the text input box, where
  • the cached deleted characters are all restored to the text input box in order.
  • the sliding operation of the mobile terminal in the text input box and the sliding direction of the sliding operation are detected, and the sliding direction of the sliding operation is matched with the preset sliding direction, and the sliding direction of the user is detected.
  • the corresponding sliding distance or the length of the sliding operation determines the number of characters of the undo delete operation corresponding to the preset sliding direction.
  • FIG. 6 is a schematic structural diagram of a mobile terminal according to Embodiment 5 of the present disclosure.
  • the mobile terminal of the embodiment of the present disclosure may be a mobile phone, a tablet computer, a personal digital assistant (PDA), or an in-vehicle computer or the like.
  • PDA personal digital assistant
  • the mobile terminal in FIG. 6 includes a radio frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a processor 660, an audio circuit 670, a WiFi (Wireless Fidelity) module 680, and a power supply 690.
  • RF radio frequency
  • the input unit 630 can be configured to receive numeric or character information input by the user, and generate signal input related to user settings and function control of the mobile terminal.
  • the input unit 630 may include a touch panel 631.
  • the touch panel 631 also referred to as a touch screen, can collect touch operations on or near the user (such as the operation of the user using a finger, a stylus, or the like on any suitable object or accessory on the touch panel 631), and according to the preset
  • the programmed program drives the corresponding connection device.
  • the touch panel 631 can include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 660 is provided and can receive commands from the processor 660 and execute them.
  • the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 630 may further include other input devices 632, which may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like. One or more of them.
  • the display unit 640 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal.
  • the display unit 640 can include a display panel 641.
  • the display panel 641 can be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
  • the touch panel 631 can cover the display panel 641 to form a touch display screen, and when the touch display screen detects a touch operation on or near it, it is transmitted to the processor 660 to determine the type of the touch event, and then the processor The 660 provides a corresponding visual output on the touch display depending on the type of touch event.
  • the touch display includes an application interface display area and a common control display area.
  • the arrangement manner of the application interface display area and the display area of the common control is not limited, and the arrangement manner of the two display areas can be distinguished by up-and-down arrangement, left-right arrangement, and the like.
  • the application interface display area can be used to display the interface of the application. Each interface can contain interface elements such as at least one application's icon and/or widget desktop control.
  • the application interface display area can also be an empty interface that does not contain any content.
  • the common control display area is used to display controls with high usage, such as setting buttons, interface numbers, scroll bars, phone book icons, and the like.
  • the processor 660 is a control center of the mobile terminal, and connects various parts of the entire mobile phone by using various interfaces and lines, by running or executing software programs and/or modules stored in the first memory 621, and calling the second memory.
  • the data in 622 performs various functions and processing data of the mobile terminal, thereby performing overall monitoring on the mobile terminal.
  • processor 660 can include one or more processing units.
  • the processor 660 is configured to detect the mobile terminal in the text input box by calling the software program and/or the module stored in the first memory 621 and/or the data in the second memory 622. a sliding operation, monitoring a sliding direction of the sliding operation; if the sliding direction conforms to the first preset direction, determining to perform a deleting operation in the text input box; if the sliding direction conforms to the second preset direction And determining to perform an undo delete operation in the text input box.
  • the processor 660 is further configured to: if the sliding direction meets the first preset direction, Then, the character covered by the area of the sliding operation is detected; after the overwritten character is buffered, a deletion operation is performed.
  • the processor 660 is further configured to: if the sliding direction meets the second preset direction And detecting a distance that the sliding operation slides in the text input box; if the sliding distance exceeds a preset distance threshold, performing an undo delete operation.
  • the processor 660 is further configured to: if the sliding distance exceeds the preset distance threshold, obtain the preset distance threshold a preset number of characters; obtaining a multiple of the sliding distance exceeding a preset distance threshold; and returning, according to the multiple of the preset distance threshold, a character of the preset multiple of the preset number of characters to the text input box ,among them,
  • the cached deleted characters are all restored to the text input box in order.
  • the processor 660 is further configured to: if the sliding direction meets the second preset direction The execution time of the sliding operation is detected. If the execution time exceeds the preset time threshold, the undo deletion operation is performed according to the preset number of characters corresponding to the preset time threshold.
  • the processor 660 is further configured to: if the execution duration exceeds, when the undo deletion operation is performed according to the preset number of characters corresponding to the preset time threshold The preset time threshold is obtained, the preset number of characters corresponding to the preset time threshold is obtained; and the execution duration is greater than a preset time threshold; and the multiple of the corresponding multiple is exceeded according to the multiple of the preset time threshold The characters of the preset number of characters are restored to the text input box, where
  • the cached deleted characters are all restored to the text input box in order.
  • the sliding operation of the mobile terminal in the text input box and the sliding direction of the sliding operation are detected, and the sliding direction of the sliding operation is matched with the preset sliding direction, and the sliding direction of the user is detected.
  • the corresponding sliding distance or the length of the sliding operation determines the number of characters of the undo delete operation corresponding to the preset sliding direction.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present disclosure may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of a mobile terminal in accordance with embodiments of the present disclosure.
  • the present disclosure may also be implemented as a device or device program (eg, a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the present disclosure may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the portion of the technical solution of the present disclosure that contributes in essence or to the prior art or the portion of the technical solution may be embodied in the form of a software product stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

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)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开提供了一种文字删除方法及移动终端,其中,所述方法包括:若检测到移动终端在文字输入框中的滑动操作,则监测所述滑动操作的滑动方向;若所述滑动方向符合第一预设方向,则确定在所述文字输入框中执行删除操作;若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作。

Description

文字删除方法及移动终端
相关申请的交叉引用
本申请主张在2017年7月17日在中国提交的中国专利申请号No.201710581598.1的优先权,其全部内容通过引用包含于此。
技术领域
本公开涉及移动终端技术领域,尤其涉及一种文字删除方法及移动终端。
背景技术
随着移动终端技术的迅速发展,移动终端作为信息处理的重要载体,在信息输入时删除操作是继输入操作而言最常用的操作。
然而,相关技术中的删除操作中,需要多次选定与点击操作键才可以完成整个删除操作。并且没有“撤回”功能,即类似于电脑中“Ctrl+Z”的功能,经常出现误删除后需要重新输入被误删除部分的字符内容,比如在句子“vivo智能手机”中删除“智能”二字时。总共需要完成三次点击操作,并且如果在删除操作时出现误操作,多删除了一些本不想删除的字符时,无法完成“撤回”操作,必须重新输入被误删除部分的字符内容,造成用户输入效率不高,且体验不佳。
发明内容
第一方面,本公开实施例提供了一种文字删除方法,应用于移动终端,该方法包括:
若检测到移动终端在文字输入框中的滑动操作,则监测所述滑动操作的滑动方向;若所述滑动方向符合第一预设方向,则确定在所述文字输入框中执行删除操作;若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作。
第二方面,本公开实施例还提供了一种移动终端,包括:
滑动方向检测模块,用于若检测到移动终端在文字输入框中的滑动操作, 则监测所述滑动操作的滑动方向;删除操作执行模块,用于若所述滑动方向符合第一预设方向,则确定在所述文字输入框中执行删除操作;撤销删除操作执行模块,用于若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作。
第三方面,本公开实施例还提供了一种移动终端,包括处理器、存储器以及存储于所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述文字删除方法的步骤。
第四方面,本公开实施例还提供了一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述文字删除方法的步骤。
附图说明
为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1示出了本公开实施例一中的一种文字删除方法的流程图;
图2示出了本公开实施例二中的一种文字删除方法的流程图;
图2A示出了本公开实施例二中的滑动区域范围示意图;
图2B示出了本公开实施例二中的滑动操作距离示意图;
图2C示出了本公开实施例二中的滑动操作方向示意图;
图3示出了根据本公开实施例三中的一种移动终端的结构框图;
图4示出了根据本公开实施例三中的一种移动终端的结构框图;
图5示出了根据本公开实施例四中的一种移动终端的结构框图;
图6示出了根据本公开实施例五的一种移动终端的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不 应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
实施例一
参照图1,示出了本公开实施例一的一种文字删除方法的流程图,具体可以包括如下步骤:
步骤110,若检测到移动终端在文字输入框中的滑动操作,则监测所述滑动操作的滑动方向。
本公开实施例中,在用户使用移动终端时,在进行文本输入时,在光标点击文本框所在区域时,就会触发文本输入模式,以安卓***为例,可以通过函数AutoCompleteTextView的状态监测到当前界面是否触发文本输入状态,在该状态下进一步监测用户是否执行滑动操作,具体的可以通过监听对象GestureDetector.OnGestureListener,根据x或y轴前后变化坐标来判断是左滑动还是右滑动并根据不同手势滑动做出事件处理doResult(int action),如果监测到触发到滑动事件,则可以通过监测滑动操作在安卓屏幕上的坐标系的X轴和Y轴上的移动距离,来判断是沿哪个轴移动的,哪个轴上的移动距离大就是沿哪个轴移动,进而判定滑动操作的移动方向。
在实际应用中,可以通过安卓***函数MotionEvent.ACTION_DOWN监测用户按下手指的坐标点,MotionEvent.ACTION_MOVE监测用户手指移动事件,MotionEvent.ACTION_UP监测用户手指抬起时坐标。
当然,检测用户滑动操作以及对应坐标的方法不限于上述描述,本公开实施例对此不加以限制。
步骤120,若所述滑动方向符合第一预设方向,则确定在所述文字输入框中执行删除操作。
本公开实施例中,根据上述方法确定用户的滑动操作的具体滑动方向后,与预设滑动方向进行匹配,并执行相应的操作,例如,预设方向可以为自上而下、自下而上、自左向右、自右向左等,并且滑动操作可以在移动终端显示屏幕上形成固定图形,比如圆圈,三角形等,本公开实施例不加以具体限制。
在实际应用中,可以设置各滑动方向和/或滑动操作形成的图形对应固定 的操作,例如自左向右形成的“L”型滑动操作是删除文本操作,那么就将“L”型滑动操作包含的文本删除。
步骤130,若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作。
本公开实施例中,根据步骤130的描述,当确定滑动操作的滑动方向与预设的第二滑动方向匹配上,并且第二预设方向对应的操作为撤销删除操作,那么就将之前用户在该文本框中删除的文字恢复显示在原本显示区域。其中,第二预设方向可以是与第一预设方向相反的方向,便于用户记忆,也可以是根据用户需求任意设置的,本公开实施例对比不加以限制。
在本公开实施例中,通过检测到移动终端在文字输入框中的滑动操作,以及滑动操作的滑动方向,并根据滑动操作的滑动方向与预设滑动方向进行匹配,执行预设滑动方向对应的删除操作或者撤销删除操作,减少了用户进行文本删除或撤销删除的操作步骤,增强了用户的使用体验的有益效果。
实施例二
参照图2,示出了本公开实施例二的一种文字删除方法的流程图,具体可以包括如下步骤:
步骤210,若检测到移动终端在文字输入框中的滑动操作,则监测所述滑动操作的滑动方向。
此步骤与步骤110相同,在此不再详述。
步骤220,若所述滑动方向符合第一预设方向,则检测所述滑动操作的区域所覆盖的字符。
本公开实施例中,在确定终端进入“字符输入”状态后,检测是否用户在终端上做出从右向左的滑动操作,其中从右向左的滑动方向为第一预设方向,若未检测到用户在终端上进行从右向左的操作,则保持检测,直到检测到用户在终端上进行从右向左的“┚”型操作,若检测到用户在终端上做出从右向左的“┚”型滑动操作,则确定用户在智能终端显示屏的哪一区域进行的滑动操作,并由智能终端记录此区域范围,如图2A所示的,检测到自右向左的“┚”型滑动操作所在的区域中覆盖的字符为“智能”。
步骤230,将所述覆盖的字符进行缓存后,执行删除操作。
本公开实施例中,根据步骤230描述的,将“智能”二字确定为需要删除的字符内容后,将“智能”缓存在预设的缓存目录下,然后将“智能”两个字执行删除操作。
步骤240,若所述滑动方向符合第二预设方向,则检测所述滑动操作在所述文字输入框中滑动的距离。
本公开实施例中,检测是否用户在终端上做出从左向右的滑动操作,若未检测到用户在终端上进行从左向右的滑动操作,其中从左向右的滑动方向为第二预设方向,则保持检测,直到检测到用户在终端上进行从左向右的滑动操作,检测到用户在终端上做出从左向右的“L”型滑动操作,检测并确定用户进行滑动操作的距离,其中,可以通过步骤110中描述的方法,检测用户滑动时在移动终端显示屏上滑动操作起始坐标以及结束坐标,进而计算出滑动操作的距离,如图2B所示,箭头所示方向为用户滑动操作的方向,箭头所示距离为用户滑动操作的距离。
步骤250,若所述滑动距离超过预设距离阈值,则执行撤销删除操作。
本公开实施例中,检测滑动操作的距离,并判断是否超过预设滑动操作位移阈值,其中,可以以毫米为单位进行计量滑动操作的距离,例如预设的滑动距离阈值为一个字符的距离为4毫米,如果滑动距离超过4毫米,则超越该预设距离阈值,那么就将用户已删除的字符进行恢复。
可选的,步骤250,具体包括:子步骤251-子步骤253。
子步骤251,若所述滑动距离超过预设距离阈值,则获取所述预设距离阈值对应的预设字符数。
本公开实施例中,步骤250中描述的,假如预设的滑动距离阈值为一个字符的距离为4毫米,并且滑动距离超过4毫米后,则首先获取预设距离阈值对应的待恢复字符数,例如4毫米对应恢复一个字符,那么8毫米则对应恢复两个字符。
子步骤252,获取所述滑动距离超过预设距离阈值的倍数。
本公开实施例中,获取滑动距离后,将滑动距离与预设距离阈值进行对比,获得滑动距离超过预设距离阈值的倍数,例如预设滑动距离为4毫米,当前滑动距离为9毫米,那么滑动距离超过预设距离阈值的倍数为两倍。当 然,预设距离阈值可以根据用户需求进行更改,本公开实施例对此不加以限制。
子步骤253,根据所述超过预设距离阈值的倍数,将相应倍数的所述预设字符数的字符,顺序恢复至文字输入框中,其中,
若缓存的已删除字符数小于待恢复字符数,则将缓存的已删除字符全部顺序恢复至文字输入框中。
本公开实施例中,当获取滑动距离超过预设距离阈值的倍数为两倍,那么就按照对应该倍数的相应字符数进行撤销删除操作,例如4毫米对应恢复一个字符,那么两倍就相当于8毫米则对应恢复两个字符。当然,预设字符数也是根据需要进行修改,本公开实施例对此不加以限制。
在实际应用中,已删除文字缓存在***指定目录下,如果根据用户的恢复删除操作,缓存已删除字符数小于预设字符数或相应倍数的预设字符数,那就将缓存的已删除字符全部恢复,例如,4毫米对应恢复一个字符,那么两倍就相当于8毫米则对应恢复两个字符,而缓存的已删除字符只有一个,或者并没有缓存已删除字符,那么就只恢复一个字符,或者什么也不做。
其中,已删除文字缓存在***指定目录下,但是当用户退出当前的输入文本状态后,则缓存自动清除,以便减少***数据冗余,对此本公开实施例不加以限制。
可选的,在本公开另一实施例中,还包括:
步骤A210,若所述滑动方向符合第二预设方向,则检测所述滑动操作的执行时长。
本公开实施例中,如图2C所示,检测是否用户在终端上做出下滑的滑动操作,若未检测到用户在终端上进行下滑的滑动操作,其中下滑的滑动操作方向为第二预设方向,则保持检测,直到检测到用户在终端上进行下滑的滑动操作,检测到用户在终端上做出下滑的滑动操作,检测并确定用户进行滑动操作的时长,其中,可以通过步骤110中描述的方法,检测用户滑动时在移动终端显示屏上滑动操作起始时间以及结束时间,进而计算出滑动操作的时长。
步骤A220,若所述执行时长超过预设时间阈值,则根据所述预设时间阈 值对应的预设字符数,执行撤销删除操作。
本公开实施例中,检测并确定用户进行滑动操作时,检测用户手指停止滑动后停留在屏幕上的时间,检测手指停止滑动后停留在屏幕上的时间是否超过设定阈值,以及超过的倍数进行撤销删除操作。
可选的,步骤A220,具体包括:子步骤A221-A223。
子步骤A221,若所述执行时长超过预设时间阈值,则获取所述预设时间阈值对应的预设字符数。
本公开实施例中,假如预设的滑动时间阈值为一个字符的时间为1秒,并且滑动操作时间超过1秒后,则首先获取预设时间阈值对应的待恢复字符数,例如1秒对应恢复一个字符,那么2毫米则对应恢复两个字符。
子步骤A222,获取所述执行时长(也可称为滑动时长)超过预设时间阈值的倍数。
本公开实施例中,获取执行时长后,将执行时长与预设时间阈值进行对比,获得执行时长超过预设时间阈值的倍数,例如预设滑动时间阈值为1秒,当前执行时长为5秒,那么滑执行时长超过预设时间阈值的倍数为5倍。当然,预设时间阈值可以根据用户需求进行更改,本公开实施例对此不加以限制。
子步骤A223,根据所述超过预设时间阈值的倍数,将相应倍数的所述预设字符数的字符,顺序恢复至文字输入框中,其中,
若缓存的已删除字符数小于待恢复字符数,则将缓存的已删除字符全部顺序恢复至文字输入框中。
本公开实施例中,当获取执行时长超过预设时间阈值的倍数为五倍,那么就按照对应该倍数的相应字符数进行撤销删除操作,例如1秒对应恢复一个字符,那么五倍就相当于5秒则对应恢复五个字符。当然,预设字符数也是根据需要进行修改,本公开实施例对此不加以限制。
在实际应用中,已删除文字缓存在***指定目录下,如果根据用户的恢复删除操作,缓存已删除字符数小于预设字符数或相应倍数的预设字符数,那就将缓存的已删除字符全部恢复,例如,1秒对应恢复一个字符,那么五倍就相当于5秒则对应恢复五个字符,而缓存的已删除字符只有一个,或者 并没有缓存已删除字符,那么就只恢复一个字符,或者什么也不做。
在本公开实施例中,通过检测到移动终端在文字输入框中的滑动操作,以及滑动操作的滑动方向,并根据滑动操作的滑动方向与预设滑动方向进行匹配,并且检测用户滑动方向对应的滑动距离或者滑动操作时长,确定执行预设滑动方向对应的撤销删除操作的字符数。具有能够快捷有效地实现文字删除以及恢复,减少了用户进行文本删除或撤销删除的操作步骤的有益效果。
实施例三
参照图3,示出了本公开实施例三的一种移动终端的结构框图。
所述移动终端300包括:滑动方向检测模块301、删除操作执行模块302、撤销删除操作执行模块303。
参照图4,下面分别详细介绍所述移动终端400各模块的功能以及各模块之间的交互关系。
滑动方向检测模块401,用于若检测到移动终端在文字输入框中的滑动操作,则监测所述滑动操作的滑动方向;
删除操作执行模块402,用于若所述滑动方向符合第一预设方向,则确定在所述文字输入框中执行删除操作;
可选的,删除操作执行模块402,包括:
覆盖字符确定子模块4021,用于若所述滑动方向符合第一预设方向,则检测所述滑动操作的区域所覆盖的字符;
删除操作执行子模块4022,用于将所述覆盖的字符进行缓存后,执行删除操作。
撤销删除操作执行模块403,用于若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作。
可选的,撤销删除操作执行模块403,包括:
滑动距离确定子模块4031,用于若所述滑动方向符合第二预设方向,则检测所述滑动操作在所述文字输入框中的滑动距离;
撤销删除操作执行子模块4032,用于若所述滑动距离超过预设距离阈值,则执行撤销删除操作。可选的,撤销删除操作执行子模块4032,包括:
预设字符数获取单元,用于若所述滑动距离超过预设距离阈值,则获取 所述预设距离阈值对应的预设字符数;
超越倍数确定单元,用于获取所述滑动距离超过预设距离阈值的倍数;
恢复单元,用于根据所述超过预设距离阈值的倍数,将相应倍数的所述预设字符数的字符,顺序恢复至文字输入框中,其中,
若缓存的已删除字符数小于待恢复字符数,则将缓存的已删除字符全部顺序恢复至文字输入框中。
可选的,在本公开另一实施例中,所述撤销删除操作执行模块403,还包括:
执行时长确定子模块,用于若所述滑动方向符合第二预设方向,则检测所述滑动操作的执行时长;
撤销删除操作子模块,用于若所述执行时长超过预设时间阈值,则根据所述预设时间阈值对应的预设字符数,执行撤销删除操作。可选的,撤销删除操作子模块,包括:
预设字符数获取单元,用于若所述执行时长超过预设时间阈值,则获取所述预设时间阈值对应的预设字符数;
超越时长倍数获取单元,用于获取所述执行时长超过预设时间阈值的倍数;
删除撤销单元,用于根据所述超过预设时间阈值的倍数,将相应倍数的所述预设字符数的字符,顺序恢复至文字输入框中,其中,
若缓存的已删除字符数小于待恢复字符数,则将缓存的已删除字符全部顺序恢复至文字输入框中。
在本公开实施例中,通过检测到移动终端在文字输入框中的滑动操作,以及滑动操作的滑动方向,并根据滑动操作的滑动方向与预设滑动方向进行匹配,并且检测用户滑动方向对应的滑动距离或者滑动操作时长,确定执行预设滑动方向对应的撤销删除操作的字符数。具有能够快捷有效地实现文字删除以及恢复,减少了用户进行文本删除或撤销删除的操作步骤的有益效果。
实施例四
参照图5,示出了本公开实施例四中一种移动终端的结构框图。
图5所示的移动终端500包括:至少一个处理器501、存储器502、至少 一个网络接口504和用户接口503。移动终端500中的各个组件通过总线***505耦合在一起。可理解,总线***505用于实现这些组件之间的连接通信。总线***505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线***505。
其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。
可以理解,本公开实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double DataRate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本公开实施例描述的***和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。
在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作***5021和应用程序5022。
其中,操作***5021,包含各种***程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本公开实施例方法的程序可以包含在应用程序5022中。
在本公开实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令,处理器501用于若检测到移动终端在文字输入框中的滑动操作,则监测所述滑动操作的滑动方向;若所述滑动方向符合第一预设方向,则确定在所述文字输入框中执行删除操作;若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作。上述本公开实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本公开实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本公开实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。
可以理解的是,本公开实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。
对于软件实现,可通过执行本公开实施例所述功能的模块(例如过程、函数等)来实现本公开实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。
可选地,在若所述滑动方向符合第一预设方向,则确定在所述文字输入框中执行删除操作时,处理器501还用于:若所述滑动方向符合第一预设方向,则检测所述滑动操作的区域所覆盖的字符;将所述覆盖的字符进行缓存后,执行删除操作。
可选地,当若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作时,处理器501还用于:若所述滑动方向符合第二预设方向,则检测所述滑动操作在所述文字输入框中的滑动距离;若所述滑动距离超过预设距离阈值,则执行撤销删除操作。
可选地,当若所述滑动距离超过预设距离阈值,则执行撤销删除操作时,处理器501还用于:若所述滑动距离超过预设距离阈值,则获取所述预设距离阈值对应的预设字符数;获取所述滑动距离超过预设距离阈值的倍数;根据所述超过预设距离阈值的倍数,将相应倍数的所述预设字符数的字符,顺序恢复至文字输入框中,其中,
若缓存的已删除字符数小于待恢复字符数,则将缓存的已删除字符全部顺序恢复至文字输入框中。
可选地,在若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作时,处理器501还用于:若所述滑动方向符合第二预设方向,则检测所述滑动操作的执行时长;若所述执行时长超过预设时间阈值,则根据所述预设时间阈值对应的预设字符数,执行撤销删除操作。
可选地,在若所述执行时长超过预设时间阈值,则根据所述预设时间阈值对应的预设字符数,执行撤销删除操作时,处理器501还用于:若所述执行时长超过预设时间阈值,则获取所述预设时间阈值对应的预设字符数;获取所述执行时长超过预设时间阈值的倍数;根据所述超过预设时间阈值的倍数,将相应倍数的所述预设字符数的字符,顺序恢复至文字输入框中,其中,
若缓存的已删除字符数小于待恢复字符数,则将缓存的已删除字符全部顺序恢复至文字输入框中。
可见,在本公开实施例中,通过检测到移动终端在文字输入框中的滑动操作,以及滑动操作的滑动方向,并根据滑动操作的滑动方向与预设滑动方向进行匹配,并且检测用户滑动方向对应的滑动距离或者滑动操作时长,确 定执行预设滑动方向对应的撤销删除操作的字符数。具有能够快捷有效地实现文字删除以及恢复,减少了用户进行文本删除或撤销删除的操作步骤的有益效果。
实施例五
图6示出了本公开实施例五的移动终端的结构示意图。
本公开实施例的移动终端可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。
图6中的移动终端包括射频(Radio Frequency,RF)电路610、存储器620、输入单元630、显示单元640、处理器660、音频电路670、WiFi(Wireless Fidelity)模块680和电源690。
其中,输入单元630可用于接收用户输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的信号输入。具体地,本公开实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板641。
应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器660以确定触 摸事件的类型,随后处理器660根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。
其中处理器660是移动终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器660可包括一个或多个处理单元。
在本公开实施例中,通过调用存储该第一存储器621内的软件程序和/或模块和/或该第二存储器622内的数据,处理器660用于若检测到移动终端在文字输入框中的滑动操作,则监测所述滑动操作的滑动方向;若所述滑动方向符合第一预设方向,则确定在所述文字输入框中执行删除操作;若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作。
可选地,在若所述滑动方向符合第一预设方向,则确定在所述文字输入框中执行删除操作时,处理器660还用于:若所述滑动方向符合第一预设方向,则检测所述滑动操作的区域所覆盖的字符;将所述覆盖的字符进行缓存后,执行删除操作。
可选地,当若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作时,处理器660还用于:若所述滑动方向符合第二预设方向,则检测所述滑动操作在所述文字输入框中滑动的距离;若所述滑动距离超过预设距离阈值,则执行撤销删除操作。
可选地,当若所述滑动距离超过预设距离阈值,则执行撤销删除操作时,处理器660还用于:若所述滑动距离超过预设距离阈值,则获取所述预设距 离阈值对应的预设字符数;获取所述滑动距离超过预设距离阈值的倍数;根据所述超过预设距离阈值的倍数,将相应倍数的所述预设字符数的字符,顺序恢复至文字输入框中,其中,
若缓存的已删除字符数小于待恢复字符数,则将缓存的已删除字符全部顺序恢复至文字输入框中。
可选地,在若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作时,处理器660还用于:若所述滑动方向符合第二预设方向,则检测所述滑动操作的执行时长;若所述执行时长超过预设时间阈值,则根据所述预设时间阈值对应的预设字符数,执行撤销删除操作。
可选地,在若所述执行时长超过预设时间阈值,则根据所述预设时间阈值对应的预设字符数,执行撤销删除操作时,处理器660还用于:若所述执行时长超过预设时间阈值,则获取所述预设时间阈值对应的预设字符数;获取所述执行时长超过预设时间阈值的倍数;根据所述超过预设时间阈值的倍数,将相应倍数的所述预设字符数的字符,顺序恢复至文字输入框中,其中,
若缓存的已删除字符数小于待恢复字符数,则将缓存的已删除字符全部顺序恢复至文字输入框中。
可见,在本公开实施例中,通过检测到移动终端在文字输入框中的滑动操作,以及滑动操作的滑动方向,并根据滑动操作的滑动方向与预设滑动方向进行匹配,并且检测用户滑动方向对应的滑动距离或者滑动操作时长,确定执行预设滑动方向对应的撤销删除操作的字符数。具有能够快捷有效地实现文字删除以及恢复,减少了用户进行文本删除或撤销删除的操作步骤的有益效果。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
在此提供的算法和显示不与任何特定计算机、虚拟***或者其它设备固有相关。各种通用***也可以与基于在此的示教一起使用。根据上面的描述, 构造这类***所要求的结构是显而易见的。此外,本公开也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本公开的内容,并且上面对特定语言所做的描述是为了披露本公开的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本公开的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本公开的示例性实施例的描述中,本公开的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本公开要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本公开的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本公开的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本公开的各个部件实施例可以以硬件实现,或者以在一个或者多个处理 器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本公开实施例的移动终端中的一些或者全部部件的一些或者全部功能。本公开还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本公开的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
应该注意的是上述实施例对本公开进行说明而不是对本公开进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本公开可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
本领域普通技术人员可以意识到,结合本公开实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一 些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。

Claims (14)

  1. 一种文字删除方法,应用于移动终端,包括:
    若检测到移动终端在文字输入框中的滑动操作,则监测所述滑动操作的滑动方向;
    若所述滑动方向符合第一预设方向,则确定在所述文字输入框中执行删除操作;
    若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作。
  2. 根据权利要求1所述的方法,其中,所述若所述滑动方向符合第一预设方向,则确定在所述文字输入框中执行删除操作的步骤,包括:
    若所述滑动方向符合第一预设方向,则检测所述滑动操作的区域所覆盖的字符;
    将所述覆盖的字符进行缓存后,执行删除操作。
  3. 根据权利要求1所述的方法,其中,所述若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作的步骤,包括:
    若所述滑动方向符合第二预设方向,则检测所述滑动操作在所述文字输入框中的滑动距离;
    若所述滑动距离超过预设距离阈值,则执行撤销删除操作。
  4. 根据权利要求3所述的方法,其中,所述若所述滑动距离超过预设距离阈值,则执行撤销删除操作的步骤,包括:
    若所述滑动距离超过预设距离阈值,则获取所述预设距离阈值对应的预设字符数;
    获取所述滑动距离超过预设距离阈值的倍数;
    根据所述超过预设距离阈值的倍数,将相应倍数的所述预设字符数的字符,顺序恢复至文字输入框中,其中,
    若缓存的已删除字符数小于待恢复字符数,则将缓存的已删除字符全部顺序恢复至文字输入框中。
  5. 根据权利要求1所述的方法,其中,所述若所述滑动方向符合第二预 设方向,则确定在所述文字输入框中执行撤销删除操作的步骤,包括:
    若所述滑动方向符合第二预设方向,则检测所述滑动操作的执行时长;
    若所述执行时长超过预设时间阈值,则根据所述预设时间阈值对应的预设字符数,执行撤销删除操作。
  6. 根据权利要求5所述的方法,其中,所述若所述执行时长超过预设时间阈值,则根据所述预设时间阈值对应的预设字符数,执行撤销删除操作的步骤,包括:
    若所述执行时长超过预设时间阈值,则获取所述预设时间阈值对应的预设字符数;
    获取所述执行时长超过预设时间阈值的倍数;
    根据所述超过预设时间阈值的倍数,将相应倍数的所述预设字符数的字符,顺序恢复至文字输入框中,其中,
    若缓存的已删除字符数小于待恢复字符数,则将缓存的已删除字符全部顺序恢复至文字输入框中。
  7. 一种移动终端,应用于移动终端,包括:
    滑动方向检测模块,用于若检测到移动终端在文字输入框中的滑动操作,则监测所述滑动操作的滑动方向;
    删除操作执行模块,用于若所述滑动方向符合第一预设方向,则确定在所述文字输入框中执行删除操作;
    撤销删除操作执行模块,用于若所述滑动方向符合第二预设方向,则确定在所述文字输入框中执行撤销删除操作。
  8. 根据权利要求7所述的移动终端,其中,所述删除操作执行模块,包括:
    覆盖字符确定子模块,用于若所述滑动方向符合第一预设方向,则检测所述滑动操作的区域所覆盖的字符;
    删除操作执行子模块,用于将所述覆盖的字符进行缓存后,执行删除操作。
  9. 根据权利要求7所述的移动终端,其中,所述撤销删除操作执行模块,包括:
    滑动距离确定子模块,用于若所述滑动方向符合第二预设方向,则检测所述滑动操作在所述文字输入框中的滑动距离;
    撤销删除操作执行子模块,用于若所述滑动距离超过预设距离阈值,则执行撤销删除操作。
  10. 根据权利要求9所述的移动终端,其中,所述撤销删除操作执行子模块,包括:
    预设字符数获取单元,用于若所述滑动距离超过预设距离阈值,则获取所述预设距离阈值对应的预设字符数;
    超越倍数确定单元,用于获取所述滑动距离超过预设距离阈值的倍数;
    恢复单元,用于根据所述超过预设距离阈值的倍数,将相应倍数的所述预设字符数的字符,顺序恢复至文字输入框中,其中,
    若缓存的已删除字符数小于待恢复字符数,则将缓存的已删除字符全部顺序恢复至文字输入框中。
  11. 根据权利要求7所述的移动终端,其中,所述撤销删除操作执行模块,包括:
    执行时长确定子模块,用于若所述滑动方向符合第二预设方向,则检测所述滑动操作的执行时长;
    撤销删除操作子模块,用于若所述执行时长超过预设时间阈值,则根据所述预设时间阈值对应的预设字符数,执行撤销删除操作。
  12. 根据权利要求11所述的移动终端,其中,所述撤销删除操作子模块,包括:
    预设字符数获取单元,用于若所述执行时长超过预设时间阈值,则获取所述预设时间阈值对应的预设字符数;
    超越时长倍数获取单元,用于获取所述执行时长超过预设时间阈值的倍数;
    删除撤销单元,用于根据所述超过预设时间阈值的倍数,将相应倍数的所述预设字符数的字符,顺序恢复至文字输入框中,其中,
    若缓存的已删除字符数小于待恢复字符数,则将缓存的已删除字符全部顺序恢复至文字输入框中。
  13. 一种移动终端,包括处理器、存储器以及存储于所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的文字删除方法的步骤。
  14. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的文字删除方法的步骤。
PCT/CN2018/095966 2017-07-17 2018-07-17 文字删除方法及移动终端 WO2019015581A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710581598.1 2017-07-17
CN201710581598.1A CN107506130B (zh) 2017-07-17 2017-07-17 一种文字删除方法及移动终端

Publications (1)

Publication Number Publication Date
WO2019015581A1 true WO2019015581A1 (zh) 2019-01-24

Family

ID=60679930

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/095966 WO2019015581A1 (zh) 2017-07-17 2018-07-17 文字删除方法及移动终端

Country Status (2)

Country Link
CN (1) CN107506130B (zh)
WO (1) WO2019015581A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506130B (zh) * 2017-07-17 2022-03-04 维沃移动通信有限公司 一种文字删除方法及移动终端
CN108572745A (zh) * 2018-03-16 2018-09-25 珠海市魅族科技有限公司 一种输入法应用方法及装置
CN118051384A (zh) * 2018-04-28 2024-05-17 北京搜狗科技发展有限公司 输入处理方法、装置、电子设备和存储介质
CN108762648A (zh) * 2018-04-28 2018-11-06 维沃移动通信有限公司 屏幕操作控制方法及移动终端
CN110471600A (zh) * 2019-08-22 2019-11-19 浙江诺诺网络科技有限公司 一种文本编辑方法、装置和文本编辑器
CN112445403A (zh) * 2020-11-30 2021-03-05 北京搜狗科技发展有限公司 一种文本处理方法、装置和用于文本处理的装置
CN113949815A (zh) * 2021-11-17 2022-01-18 维沃移动通信有限公司 一种拍摄预览方法、装置及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010089740A1 (en) * 2009-02-04 2010-08-12 Benjamin Firooz Ghassabian Data entry system
CN104346066A (zh) * 2013-08-09 2015-02-11 联想(北京)有限公司 一种信息处理方法和电子设备
CN105183310A (zh) * 2015-08-26 2015-12-23 深圳市金立通信设备有限公司 一种信息编辑方法及终端
CN106775375A (zh) * 2016-11-21 2017-05-31 努比亚技术有限公司 一种终端信息编辑处理装置及其方法
CN107506130A (zh) * 2017-07-17 2017-12-22 维沃移动通信有限公司 一种文字删除方法及移动终端

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176969A (zh) * 2011-12-20 2013-06-26 腾讯科技(深圳)有限公司 一种分享微博消息的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010089740A1 (en) * 2009-02-04 2010-08-12 Benjamin Firooz Ghassabian Data entry system
CN104346066A (zh) * 2013-08-09 2015-02-11 联想(北京)有限公司 一种信息处理方法和电子设备
CN105183310A (zh) * 2015-08-26 2015-12-23 深圳市金立通信设备有限公司 一种信息编辑方法及终端
CN106775375A (zh) * 2016-11-21 2017-05-31 努比亚技术有限公司 一种终端信息编辑处理装置及其方法
CN107506130A (zh) * 2017-07-17 2017-12-22 维沃移动通信有限公司 一种文字删除方法及移动终端

Also Published As

Publication number Publication date
CN107506130B (zh) 2022-03-04
CN107506130A (zh) 2017-12-22

Similar Documents

Publication Publication Date Title
WO2019015581A1 (zh) 文字删除方法及移动终端
WO2018157662A1 (zh) 一种移动终端的显示控制方法及移动终端
JP6055961B2 (ja) テキスト選択及び入力
CN105824559B (zh) 一种误触识别及处理方法和电子设备
CN106126077B (zh) 一种应用程序图标的显示控制方法和移动终端
WO2018196699A1 (zh) 一种指纹识别区域的显示方法和移动终端
CN107193438B (zh) 一种管理桌面图标的方法及移动终端
WO2018137448A1 (zh) 一种终端指纹识别的方法及移动终端
US20120212438A1 (en) Methods and apparatuses for facilitating interaction with touch screen apparatuses
WO2018166434A1 (zh) 图标的处理方法及移动终端
US20130207905A1 (en) Input Lock For Touch-Screen Device
CN107562345B (zh) 一种信息存储方法及移动终端
WO2018068328A1 (zh) 一种界面显示的方法及终端
CN107479822B (zh) 一种信息输入方法和终端
WO2018133615A1 (zh) 一种应用程序的操作方法及移动终端
WO2018166469A1 (zh) 一种多路径复制粘贴方法及移动终端
CN106873874B (zh) 一种应用程序开启方法及移动终端
WO2018177157A1 (zh) 一种移动终端的字符输入方法及移动终端
KR20140136855A (ko) 기능 실행 방법 및 그 전자 장치
KR20140104822A (ko) 가상 키 패드를 디스플레이하기 위한 방법 및 그 전자 장치
CN106873891B (zh) 一种触控操作的方法及移动终端
WO2018054125A1 (zh) 一种移动终端的信息显示方法及移动终端
WO2019037680A1 (zh) 移动终端的操作界面控制方法及移动终端
WO2018177156A1 (zh) 一种移动终端的操作方法及移动终端
CN107632761B (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: 18836172

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: 18836172

Country of ref document: EP

Kind code of ref document: A1