CN115097951B - Character deleting method, electronic equipment and storage medium - Google Patents

Character deleting method, electronic equipment and storage medium Download PDF

Info

Publication number
CN115097951B
CN115097951B CN202210994720.9A CN202210994720A CN115097951B CN 115097951 B CN115097951 B CN 115097951B CN 202210994720 A CN202210994720 A CN 202210994720A CN 115097951 B CN115097951 B CN 115097951B
Authority
CN
China
Prior art keywords
character
signal
deleting
preset
soft keyboard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210994720.9A
Other languages
Chinese (zh)
Other versions
CN115097951A (en
Inventor
刘鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210994720.9A priority Critical patent/CN115097951B/en
Publication of CN115097951A publication Critical patent/CN115097951A/en
Application granted granted Critical
Publication of CN115097951B publication Critical patent/CN115097951B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/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/0489Interaction 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 dedicated keyboard keys or combinations thereof
    • G06F3/04892Arrangements for controlling cursor position based on codes indicative of cursor displacements from one discrete location to another, e.g. using cursor control keys associated to different directions or using the tab key

Abstract

The application provides a character deleting method, electronic equipment and a storage medium, and relates to terminal technology. The character deleting method is applied to electronic equipment with a soft keyboard, and the electronic equipment is in communication connection with matched auxiliary equipment, and comprises the following steps: responding to a first signal sent by auxiliary equipment, and acquiring a character at the position of an operation focus as a first character, wherein the first character is any character except a deleted character in a soft keyboard; detecting whether the operation on the first character meets a preset deleting condition or not; if the operation of the first character is detected to meet the preset deleting condition, deleting the character in the input box. By adopting the method, the wrong character can be deleted when the operation focus of the electronic equipment is at any character position, the operation focus is not required to be moved to the position where the character is deleted, the efficiency of deleting the wrong character is greatly improved, and the use experience of a user is improved.

Description

Character deleting method, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method for deleting characters, an electronic device, and a storage medium.
Background
With the continuous development of terminal technology, devices such as smart televisions, smart screens, projectors and the like gradually enter lives of people. The smart television and other devices have numerous functions, and when a user is required to input characters in a certain scene, such as first connecting/reconnecting a Wi-Fi network, the password of the Wi-Fi network is required to be input in the smart television. In general, a user can call a soft keyboard in the intelligent television through a remote controller of the intelligent television, and the user can confirm characters to be input by controlling four direction keys in the remote controller to move an operation focus. The user inputs the selected character to be input into the input box through the 'ok' key.
If the user finds that the input character is wrong, the user needs to move the operation focus on the keyboard to the position where the 'delete' character is located through the upper, lower, left and right keys of the remote controller, and the operation focus is controlled to press the 'delete' character so as to delete the wrong character. However, if the current operation focus on the keyboard is far away from the "delete" character, if the operation focus on the keyboard is located at the "a" character position, the operation focus needs to be moved 11 times to move to the "delete" character position, so that the user consumes much time to delete the wrong character, the efficiency of deleting the wrong character is low, and the use experience of the user is affected.
Disclosure of Invention
In order to solve the technical problems, the application provides a character deleting method, electronic equipment and a storage medium, so that wrong characters can be deleted when an operation focus of the electronic equipment is at any character position, the operation focus is not required to be moved to the position where the character is deleted, the efficiency of deleting the wrong characters is greatly improved, and the use experience of a user is improved.
In a first aspect, the present application provides a method for deleting characters, applied to an electronic device having a soft keyboard, where the electronic device is communicatively connected to a matched auxiliary device, the method comprising: responding to a first signal sent by auxiliary equipment, and acquiring a character at the position of an operation focus as a first character, wherein the first character is any character except a deleted character in a soft keyboard; detecting whether the operation on the first character meets a preset deleting condition or not; if the operation of the first character is detected to meet the preset deleting condition, deleting the character in the input box; wherein the auxiliary device comprises a remote control or a mouse.
The electronic device may be, for example, a television, a projector, a smart screen, etc. When characters are input through a soft keyboard of the electronic equipment, if wrong characters occur, a user can send a first signal to the electronic equipment through auxiliary equipment (such as a remote controller or a mouse), acquire the characters at the position of an operation focus as first characters, delete the characters in an input frame when the operation of the first characters is detected to meet the preset condition, and because the first characters are any characters except the 'delete' characters in the soft keyboard, the characters in the input frame can be deleted without moving the operation focus to the position of deleting the characters, the moving distance of the operation focus is reduced, the deleting operation time is shortened, and the efficiency of deleting the wrong characters is improved.
According to a first aspect, before detecting whether an operation on the first character satisfies a preset deletion condition, the method further includes: detecting whether the first character belongs to a preset character or not, wherein the preset character comprises letters and/or numbers; if the first character is detected to belong to the preset character, determining to execute the operation of detecting whether the operation of the first character meets the preset deleting condition.
Thus, since the preset characters comprise letters and/or numbers and have no other functional characters, the accurate detection of the first character operation can be improved, and the situation that the functional characters (such as space characters) cannot be accurately input in the input box is avoided.
According to a first aspect, detecting whether an operation on a first character satisfies a preset deletion condition includes: acquiring the pressing time length of the operation focus to press the first character; and if the pressing time is detected to exceed the first preset time, determining that the operation on the first character is detected to meet the deleting condition.
In this way, whether the user needs to delete or not is determined by detecting the pressing duration of pressing the first character, if the pressing duration does not exceed the first preset duration, the first character can be normally input, the influence on normal input is avoided, meanwhile, the detection of the pressing duration is rapid, the operation is simple, and the deleting operation efficiency can be further improved.
According to a first aspect, obtaining a duration for pressing a first character by an operation focus includes: acquiring the moment of receiving a first signal as a first moment, wherein the first signal is a signal generated when a first key in auxiliary equipment is pressed, and the first key is used for indicating characters of the position where the selected operation focus is located; responding to a second signal sent by the auxiliary equipment, and acquiring the moment of receiving the second signal as a second moment, wherein the second signal is a signal generated when the first key of the auxiliary equipment is lifted; and acquiring the difference between the second moment and the first moment as the pressing duration for pressing the first character.
Therefore, as the first key is used for indicating the position of the selected operation focus, for example, the first key is a confirmation key, the soft keyboard of the electronic equipment can determine to perform one operation on the first character through the first signal and the second signal, and the determination mode is simple and accurate.
According to a first aspect, before acquiring the moment of receiving the first signal as the first moment, the method further comprises: acquiring the character stored last time; detecting whether the character stored last time is identical to the first character; if the character stored last time is detected to be different from the first character, the first character is stored as the character selected this time, and the operation of acquiring the moment of receiving the first signal as the first moment is confirmed to be executed.
In this way, the electronic device does not receive the second signal sent by the auxiliary device, that is, does not receive the signal for confirming that the key is lifted, judges whether the second signal is consistent with the last stored character, if not, indicates that the operation focus is changed before the second signal for storing the character last time is received, and re-receives the character at the corresponding position of the operation focus, so that the recorded pressing duration is more accurate.
According to a first aspect, before deleting the character in the input box, the method further comprises: the stored first character is cleared and the pressing duration of the stored first character is cleared. The electronic equipment timely clears the stored first character and the pressing time length, so that the accuracy of the pressing time length for acquiring the first character later can be improved.
According to a first aspect, deleting a character in an input box comprises: deleting the last character in the input box. Therefore, the last character in the input box is directly deleted, the character to be deleted is not required to be specified, the deleting operation step is further simplified, and the deleting operation efficiency is improved.
According to a first aspect, deleting a character in an input box comprises: and deleting the character corresponding to the previous position of the input cursor in the input box. The electronic equipment can determine the character to be deleted through the input cursor, so that the flexibility of deleting the character by the user is improved.
According to a first aspect, detecting whether an operation on a first character satisfies a preset deletion condition includes: detecting whether the number of pressing times of the first character in the second preset time period exceeds a preset time threshold; and if the number of times of pressing the first character within the second preset time period exceeds the number threshold, determining that the operation of the first character is detected to meet the deleting condition.
In this way, if the number of times of pressing the first character by the operation focus exceeds the number of times threshold, the number of times threshold can be 2 or more, and the deleting operation is simple, so that the user can conveniently memorize, and the use experience of the deleting operation of the electronic device by the user is improved.
In a second aspect, the present application provides an electronic device, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory, which when executed by the one or more processors, cause the electronic device to perform the method of character deletion as described above for the first aspect and any implementation of the first aspect.
According to a second aspect, an electronic device includes: any one of a television, a projector and an intelligent screen.
The second aspect implementation manner corresponds to any implementation manner of the first aspect and the first aspect, respectively. The technical effects corresponding to the implementation manner of the second aspect may be referred to the technical effects corresponding to the above first aspect and any implementation manner of the first aspect, which are not described herein.
In a third aspect, the present application provides a computer readable medium storing a computer program, where the computer program when executed on an electronic device causes the electronic device to perform a method for deleting a character corresponding to any implementation manner of the first aspect and the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of input information of an exemplary smart tv;
fig. 2 is a schematic structural view of an exemplary electronic device;
FIG. 3 is a schematic software architecture diagram of an exemplary electronic device;
FIG. 4 is a flow chart illustrating a method of character deletion;
FIG. 5 is a flow chart illustrating yet another method of character deletion;
FIG. 6 is a schematic diagram of an exemplary character deletion scenario;
fig. 7 is a schematic view of a scene in which the pressing time period is smaller than the first preset time period;
FIG. 8 is a schematic diagram of an exemplary scenario in which a selected character corresponds to a last stored character;
FIG. 9 is a schematic diagram of a scene of character deletion, shown by way of example;
fig. 10 is a schematic diagram illustrating a scenario in which an input cursor is adjusted.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In some embodiments, devices such as smart screens, smart televisions, or projectors may input information through auxiliary device operations or other input devices. In this example, smart electricity is used as an example. The auxiliary equipment can be a remote controller matched with the intelligent television, can also be a mobile phone communicated with the intelligent television, is used as the remote controller, and can also be a mouse. Other input devices may be physical keyboards, cell phones, etc. Referring to fig. 1, fig. 1 is a schematic view of a scenario of input information of an exemplary smart tv.
The display screen of the smart tv 10 displays a password input interface 101, and the password input interface 101 includes: wi-Fi name, password entry box 102. When the smart television detects that the operation focus is at the position of the input box, the smart television can call up the soft keyboard 103 and display the soft keyboard 103 on the password input interface. The user can move the position of the operating focus in the intelligent television through the upper key, the lower key, the left key and the right key in the remote controller. Different operations can be performed on each character in the soft keyboard through the operation focus, for example, operations such as pressing, double clicking and the like are performed on the character through the operation focus.
The user determines to enter a character in the input box 102 by pressing a "ok" key in the remote control. As shown in fig. 1a, the characters in the input box 101 include "hwua" and "a" are the last characters in the input box, where the "a" character in the soft keyboard 103 is located in the current operation focus 104, and the background color of the operation focus 104 is different from the background color of other keys in the soft keyboard, in this example, the operation focus 104 on the soft keyboard is exemplified by a gray background. If the user finds that the correct password is "hwouc", the user needs to move the operation focus 104 from the position where the "a" character is located to the position where the "delete" character is located, and the user presses the "delete" character by the operation focus 104, so that the character in the input box can be deleted. As shown in fig. 1b, the user controls the operation focus 104 to move by pressing the direction keys (i.e., up, down, left, and right keys) of the remote controller, and the movement path is shown by the dotted arrow in fig. 1b, and the operation focus 104 moves 11 cells in total from the "a" character to the "delete" character position. The user clicks the "delete" character by the "confirm" button, deleting the last character "a" in the input box. After deleting the wrong character, the user controls the operation focus to move from the "delete" character to the next character to be input (i.e., the "c" character) through the remote controller, and the shortest distance the operation focus moves is 8 cells as shown in 1c of fig. 1.
When deleting wrong characters in the intelligent television, a user is required to control the operation focus to move to the position of deleting the characters through the remote controller, if the current operation focus is far away from the position of deleting the characters, the distance required to move is long, the number of times the user needs to operate is increased, the speed and efficiency of deleting the wrong characters are reduced, and the experience of inputting information by the user is affected.
The embodiment of the application provides a character deleting method, which can delete the wrong character without moving an operation focus to the position where the deleted character is located, thereby improving the speed of deleting the wrong character by the user and improving the efficiency of deleting the wrong character by the user.
The character deleting method is applied to electronic equipment, wherein the electronic equipment is equipment with soft keyboard application, such as a smart screen, a projector, a smart television and the like. Fig. 2 is a schematic structural diagram of an electronic device 10 according to an embodiment of the present application. It should be understood that the electronic device 10 in fig. 2 is only one example of an electronic device, and that the electronic device 10 may have more or fewer components than shown in the figures, may combine two or more components, or may have different component configurations. The various components shown in fig. 2 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 10 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
Fig. 3 is a software configuration block diagram of the electronic device 10 of the embodiment of the present application.
The layered architecture of the electronic device 10 divides the software into several layers, each with a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into three layers, an application layer, an application framework layer and a kernel layer from top to bottom. It will be appreciated that the layers and components contained in the layers in the software structure of fig. 3 do not constitute a particular limitation of the electronic device 10. In other embodiments of the present application, electronic device 10 may include more or fewer layers than shown, and more or fewer components may be included in each layer, as the present application is not limited.
As shown in fig. 3, the application layer may include a series of application packages. The application package may include applications such as soft keyboards, WLAN, bluetooth, music, games, short messages, gallery, talk, navigation, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layer may include a window manager, a resource manager, a content provider, a view system, an input method manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The input method manager is used for managing the soft keyboard and the peripheral keyboard. For example, control the display and concealment of soft keyboards. The input method manager is also used for scheduling and current input method interaction between application programs.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
It will be appreciated that the layers and components contained in the layers in the software architecture shown in fig. 3 do not constitute a particular limitation of the electronic device 10. In other embodiments of the present application, electronic device 10 may include more or fewer layers than shown, and more or fewer components may be included in each layer, as the present application is not limited.
In this application, the electronic device is taken as an example of intelligent electricity, the auxiliary device is taken as an example of a remote controller, and a specific flow of the method for deleting characters is shown in fig. 4, which includes:
step 401: the electronic equipment responds to a first signal sent by the remote controller, and acquires a character at the position of the operation focus as a first character, wherein the first character is any character except a deleted character in the soft keyboard.
Illustratively, the electronic device may be in communication with the remote control, and the electronic device may receive signals transmitted by the remote control. The signal generated when any key of the remote controller is pressed is different from the signal generated when the key is lifted, and the electronic device can determine whether the key is in a pressed state or a lifted state through the identification signal. For example, if the user presses the "ok" button in the remote control, the remote control generates a first signal and transmits the first signal to the smart tv. The smart television receives the first signal and recognizes the first signal, and can determine that the "confirm" key is pressed.
The first signal generated by the 'confirm' key is used for indicating the smart television to select the character at the position of the current operation focus, and when the smart television receives the first signal, the character at the position of the operation focus is obtained as a first character. An input module in the electronic device, for example, obtains a first signal, transmits the signal to a soft keyboard, and the soft keyboard obtains coordinates of a current operating focus in the soft keyboard. Illustratively, the soft keyboard determines the character at the current location of the operating focus based on the coordinates of the operating focus and the coordinates of each character in the soft keyboard. For example, if the coordinates of the "a" character are a (X1, Y1), the X direction in the coordinate system is the direction along which 1a of fig. 1 extends along the long axis of the smart tv, and the Y direction is the direction along which 1a of fig. 1 extends along the short axis of the smart tv. After the soft keyboard receives the first signal, the position of the current operation focus is acquired as A1 (x 1, y 1), and if the soft keyboard monitors that the position A1 of the operation focus is the same as the coordinates of the character "a", the soft keyboard determines that the character at the position of the operation focus is the character "a".
The first character may be any character in the soft keyboard other than the "delete" character. For example, the first character may be a "space" character, may also be a "=" character, may also be an alphabetic character, a numeric character, or the like.
Note that the soft keyboard in this example refers to a soft keyboard application.
Step 402: the electronic device detects whether the operation on the first character meets a preset deletion condition.
Specifically, the electronic device may detect whether the operation on the first character meets a preset deletion condition, where the deletion condition may be that a pressing duration of the operation focus on the first character is detected to exceed a first preset duration, and the first preset duration may be set according to an actual application, for example, the first preset duration is 1s, 2s, 3s, and so on.
The pressing duration for the electronic device to press the first character by the operation focus may be: the electronic equipment obtains the moment of receiving the first signal as the first moment, wherein the first signal is a signal generated when a first key in the remote controller is pressed, and the signal generated by the first key is used for indicating characters of the position where the selected operation focus is located. The electronic equipment responds to a second signal sent by the remote controller, acquires the moment of receiving the second signal as a second moment, and the second signal is a signal generated when the first key of the remote controller is lifted. The electronic device obtains a difference value between the second moment and the first moment as a pressing duration for pressing the first character.
For example, if the user presses the "ok" button in the remote controller at time T1, the remote controller generates a first signal and transmits the first signal to the input module of the electronic device. The first signal is transmitted by the input module to the soft keyboard, which receives the first signal at time T1 and records the time of receiving the first signal. The user lifts the finger at time T2, the "confirm" key is lifted, and the remote control generates a second signal and transmits the second signal to the input module of the electronic device. The second signal is transmitted to the soft keyboard by the input module, the soft keyboard receives the second signal at the time T2 and records the time when the second signal is received as T2, and the soft keyboard obtains T delta=T2-T1.
Note that the example referred to in this example does not consider the transmission time period of the signal from the remote controller to the electronic device, and therefore, the time when the user presses the key coincides with the time when the signal is received by the soft keyboard. In other embodiments, the time at which the signal is received by the soft keyboard is later than the time at which the key is pressed by the user.
When the electronic device detects that the pressing duration tΔ exceeds a first preset duration (e.g., is set to Ts), it is determined that the operation on the first character is detected to satisfy the deletion condition, and step 403 is determined to be performed.
And when the electronic equipment detects that the pressing duration Tdelta does not exceed the first preset duration Ts, ending the operation of deleting the character. Optionally, when the electronic device detects that the pressing duration tΔ does not exceed the first preset duration Ts, the electronic device may input the first character in the input box, and delete the stored duration of pressing the first character and the stored first character.
In some embodiments, the deletion condition may also be that the number of times the operation focus is detected to press the first character within the second preset time period exceeds a preset number of times threshold, which may be 2 times or more (e.g., 3 times).
The first signal is received by the soft keyboard, and the first signal is used as a first time. And detecting the pressing times of the operation focus on the first character within a second preset time period from the starting time. Wherein each pressing operation of the first character includes detecting a first signal and receiving a second signal after receiving the first signal. If the electronic device detects that the number of times (e.g. 2 times) that the operation focus presses the first character exceeds the preset number of times threshold (e.g. 1 time) after the second preset time period passes from the first time, the electronic device determines that the operation on the first character satisfies the deletion condition, and determines to execute step 403.
Alternatively, the deletion condition may be that the number of times of pressing the first character by the operation focus is detected to be greater than 1 within the third preset time period, and the time periods of at least 2 presses are different. For example, the third preset duration may be 4 seconds, and if the soft keyboard detects that the duration of pressing the first character for the first time by the operation focus is 0.5S within the duration of 4 seconds and the duration of pressing the first character for the second time is 2 seconds, it is determined that the operation on the first character satisfies the deletion condition.
Note that, in the embodiment of the present application, one pressing operation of the operation focus on the first character may include: the soft keyboard receives a first signal and receives a second signal after receiving the first signal. If the soft keyboard receives only the first signal or receives the first signal again after receiving the first signal, it is determined that the pressing operation of the operation focus on the first character is not detected.
Step 403: if the electronic equipment detects that the operation on the first character meets the preset deleting condition, deleting the character in the input box.
For example, the soft keyboard of the electronic device may generate a delete instruction for indicating deletion of the last character within the input box. The soft keyboard may send a delete instruction to the input module, the input module obtains the last character of the input box, deletes the last character, and redisplays the character in the input box. For example, the current character in the input box is "hwua", the last character is "a", and the input module deletes the "a" character and instructs the input box to redisplay the remaining characters, such as "hwou".
In this example, by deleting the first character, the character in the input box may be deleted, and since the user is not required to move the operation focus to the position of "deleting" the character through the remote controller, the path length of the movement of the operation focus is shortened, the operation steps of the user are reduced, and the speed and efficiency of deleting the character are improved.
The process of character deletion may be specifically described below in connection with fig. 6.
As shown in fig. 6, the display interface 601 of the smart tv displays a Wi-Fi name, a password input box 602, and an interface 604 of a soft keyboard. The operation focus 605 is located at the position of the character "a", and the input cursor 603 is located at the end of the input box. The user selects a character to input into the input box 602 via the remote control 20. As shown in fig. 6a, the character in the current input box is "hwua". The user finds that the last character "a" of the input box is an error character, presses the "confirm" key 201 in the remote controller 20 at time T1, and the remote controller 20 generates a first signal in response to the user pressing the "confirm" key 201 and transmits the first signal to the input module of the smart tv. The input module of the intelligent television transmits a first signal to the soft keyboard. The soft keyboard receives a first signal, and acquires a character at the position of the current operation focus, namely, acquires an 'a' character as a first character. Alternatively, if the operation focus is at the position of the "space" character, the soft keyboard obtains that the first character is the "space" character.
As shown in fig. 6b, the user presses the "confirm" button for 2 seconds, and lifts the finger at time T2. The remote controller 20 generates a second signal in response to the operation that the "confirm" key 201 is lifted, and transmits the second signal to the smart tv. The smart television receives the second signal and obtains T delta=T2-T1. If the soft keyboard detects that the Tdelta is greater than Ts (i.e. the first preset duration), the soft keyboard generates a deletion instruction, and the deletion instruction indicates deleting the last character in the input box. The soft keyboard transmits the deleting instruction to the input module of the smart television, and the input module acquires the last character in the input box 602, deletes the last character "a", and instructs the input box to redisplay the characters in the current input box 602. As shown in fig. 6b, the character redisplayed by the input box 602 is "hwou".
In one example, if the soft keyboard detects that the pressing duration of the "confirm" key is less than the first preset duration, the soft keyboard generates an input instruction indicating that a character is input at the position of the input cursor of the input box. Fig. 7 exemplarily shows a schematic diagram when a pressing time period of the operation focus on the first character is less than a first preset time period.
As shown in fig. 7a, the display interface 701 of the smart tv displays a Wi-Fi name, a password input box 702, and an interface 704 of the soft keyboard. The character in the current input box is "hwua". The user presses the "confirm" button 201 in the remote controller 20 at time T3, the remote controller 20 generates a first signal in response to the user pressing the "confirm" button 201, and transmits the first signal to the input module of the smart tv, and the input module inputs the first signal to the soft keyboard. The soft keyboard receives the first signal and acquires the character of the current position of the operation focus 705, i.e. acquires the "a" character as the first character. As shown in fig. 7b, the user presses the "confirm" button for 0.5 seconds to raise the finger at time T4. The remote controller 20 generates a second signal in response to the operation that the "confirm" key 201 is lifted, and transmits the second signal to the input module of the smart tv. The second signal is transmitted to the soft keyboard by the input module. The soft keyboard receives the second signal and acquires Tx 1=t4-T3. If the soft keyboard detects that Tx1 is less than Ts (a first preset duration is 2 seconds, for example), the soft keyboard generates an input instruction indicating that a first character is input at the position of the input cursor of the input box. As shown in fig. 7b, the input module acquires the position of the input cursor 703 in the input box 702, and inputs the character "a" at the position of the input cursor. The input module instructs the current character to be redisplayed within the input box, such as "hwua" in input box 702 in fig. 7 b.
In some embodiments, a "confirm" key of a remote control is pressed, the remote control transmits a first signal, and the smart television receives the first signal; the 'confirm' key of the remote controller is lifted, the remote controller sends a second signal, and if the smart phone does not receive the second signal, the character is deleted by mistake. The application also provides a character deleting method, which can judge whether the currently selected character is consistent with the character recorded last time when the first signal is received, so as to avoid the problem of deleting the character by mistake because the second signal is not received and the wrong pressing time is obtained. The process of deleting characters is shown in fig. 5, and specifically includes the following steps:
step 501: a soft keyboard application in the electronic device listens for signals sent by the remote control.
An input module in the electronic device receives a signal sent by the remote controller, and the input module transmits the signal sent by the remote controller to the soft keyboard application. The soft keyboard application can monitor signals sent by the remote controller in real time. Pressing a key on a remote control includes two states: the pressed state and the lifted state, namely, the signal generated by the remote controller when the key is pressed is different from the signal generated by the remote controller when the key is lifted. When different keys are pressed, signals generated by the remote controller are different, for example, a direction key 'left' in the remote controller is pressed, a signal SIG_1 generated by the remote controller is used for indicating that the direction key 'left' is pressed; the direction key "left" is lifted and the remote control generates a signal sig_2, which sig_2 is used to indicate that the direction key "left" is lifted. An up direction key is pressed in the remote controller, and a signal SIG_3 generated by the remote controller is used for indicating that the up direction key is pressed; the direction key "up" is raised and the remote control generates a signal sig_4, which sig_4 is used to indicate that the direction key "up" is raised.
Step 502: the soft keyboard determines whether the received signal is a first signal. If yes, go to step 503, otherwise, the process of deleting characters may be ended.
For example, the soft keyboard may determine whether the received signal is a first signal that is generated when a "confirm" key of the remote controller is pressed. When the soft keyboard determines the received first signal, the coordinates of the current operation focus in the interface of the soft keyboard can be obtained, and then the character selected by the operation focus is determined. The process of obtaining the character of the position of the operation focus by the soft keyboard is similar to that described in step 401, and will not be described here again.
Step 503: the soft keyboard judges whether the currently selected character is the same as the character recorded last time. If the character deletion is the same, ending the character deletion process. If it is determined that the characters are not the same, step 504 is performed, and the soft keyboard stores the currently selected character as the first character.
Illustratively, if the soft keyboard detects that the last recorded character is empty, the soft keyboard compares the last recorded character with the currently selected character. Since the last recorded character is empty and is inconsistent with the currently selected character, step 504 may be performed where the soft keyboard stores the currently selected character as the first character.
Optionally, after the soft keyboard determines that the deleting instruction is generated, the stored first character and the operation (such as pressing duration, pressing frequency, pressing and lifting moments) on the first character at this time may be cleared, so as to avoid affecting the judgment on the next deleting operation.
In some embodiments, if the remote controller fails, the user presses the "confirm" button of the remote controller, and the remote controller does not transmit a signal, or only transmits a first signal, and does not transmit a second signal; alternatively, a communication failure between the smart tv and the remote controller may cause a problem that the smart tv receives only the first signal and does not receive the second signal. The remote controller stores the currently selected character as the first character when receiving the first signal and detecting that the character is different from the character recorded last time. After 6 seconds elapse, the soft keyboard receives the first signal again, the soft keyboard acquires the character at the position of the operating focus (i.e. acquires the currently selected character), compares the currently selected character with the last stored character (the first character recorded last time), and if the currently selected character is the same, the process of deleting the character is ended.
For example, as shown in 8a of fig. 8, a display interface 801 of the smart tv displays a Wi-Fi name, a password input box 802, and an interface 804 of the soft keyboard. The character in the current input box is "hwua". The user presses the "confirm" button 201 in the remote controller 20 at time T9, the remote controller 20 generates a first signal in response to the user pressing the "confirm" button 201, and transmits the first signal to the input module of the smart tv, and the input module inputs the first signal to the soft keyboard. The soft keyboard receives the first signal and obtains the character of the current position of the operation focus 805, i.e., the "s" character is the selected character. The soft keyboard acquires the last recorded character (the last recorded character is empty) and determines whether the selected character "s" is consistent with the last recorded character. The soft keyboard detects that the currently selected character s is inconsistent with the character recorded last time, and stores the currently selected character s.
As shown in fig. 8a, the user lifts the finger at time T10. The remote controller 20 generates a second signal in response to the operation that the "confirm" key 201 is lifted, and transmits the second signal to the input module of the smart tv. Because of the interruption of communication between the remote controller 20 and the smart tv, the input module of the smart tv does not receive the second signal sent by the remote controller at time T10.
As shown in 8b of fig. 8, since the soft keyboard is not responsive, the user presses the "confirm" key 201 in the remote controller 20 again at time T11, the remote controller 20 generates a first signal in response to the user pressing the "confirm" key 201, and transmits the first signal to the input module of the smart tv, and the first signal is input to the soft keyboard by the input module. The soft keyboard receives the first signal and obtains the character of the current position of the operation focus 805, i.e., the "s" character is the selected character. The soft keyboard acquires the last recorded character (i.e., the "s" character) and determines whether the selected character "s" is consistent with the last recorded character. Since the last recorded character is the s character and is consistent with the character selected at this time, in order to avoid misjudgment on the operation of the selected character, the soft keyboard determines to end the process of deleting the character. Alternatively, the soft keyboard may clear the stored character and the operation on the character (e.g., stored time T9 when the first signal was received).
Optionally, after clearing the stored characters and the operation time, if the user lifts the "confirm" key 201 in the remote controller 20 at the time T12, the remote controller 20 generates a second signal in response to the user lifting the "confirm" key 201, and transmits the second signal to the input module of the smart tv, and the input module inputs the first signal to the soft keyboard. After the soft keyboard receives the second signal, an input instruction can be generated and transmitted to the input module. The input instruction indicates that a first character is input at a position of an input cursor of an input box. As shown in fig. 8b, the input module acquires the position of the input cursor 803 in the input box 802, and inputs the character "s" at the position of the input cursor. The input module instructs the input box to redisplay the current character, such as "hwua" in input box 802 in fig. 8 b.
In one example, after the smart tv receives the first signal, if the user finds that the soft keyboard is not responding, the user moves the operation focus 805 by controlling the direction key in the remote controller, for example, to the position where the "v" character is located. The user presses the 'confirm' button again when the operating focus is at the position of the 'v' character, the remote controller responds to the operation of pressing the 'confirm' button by the user, generates a first signal, transmits the first signal to an input module of the intelligent television, and inputs the first signal to a soft keyboard by the input module. The soft keyboard receives the first signal and obtains the character of the current position of the operation focus 805, i.e., the "v" character is the selected character. The soft keyboard acquires the last recorded character (i.e., the "s" character) and determines whether the selected character "s" is consistent with the last recorded character. Since the last recorded character is the "s" character, which is inconsistent with the currently selected character, the soft keyboard stores the currently selected "s" character and executes step 504.
Step 504: the soft keyboard stores the currently selected character as the first character.
For example, the soft keyboard may store the currently selected character and take the stored character as the first character.
Step 505: the soft keyboard obtains the moment of receiving the first signal as a first moment.
The soft keyboard may acquire, as the first time, a time when the first signal is received, where the first time is the time when the first character is selected.
Step 506: the soft keyboard judges whether the received signal is a second signal, if so, step 507 is executed; if the second signal is not determined, ending the process of deleting the character.
For example, the transmission between the soft keyboard and the remote controller may be interrupted or a signal may be mistransmitted, and if the soft keyboard does not receive the second signal, for example, the soft keyboard receives a signal generated when the "left" key is pressed, the process of deleting the character is ended.
Step 507: the soft keyboard obtains the moment when the second signal is received as a second moment.
Step 508: the soft keyboard obtains the difference between the second moment and the first moment as the pressing duration.
The procedure of this step may refer to the related description in step 402, and will not be described here again.
Step 509: the soft keyboard judges whether the first character belongs to a preset character. If it is determined that the first character belongs to the preset character, step 510 is executed; if the first character is determined not to belong to the preset character, ending the operation of deleting the character.
In this example, the soft keyboard may further detect whether the first character belongs to a preset character before determining whether the pressing duration of the first character exceeds a first preset duration. The preset characters may be or include alphabetic characters or numeric characters, and may also include symbolic characters. The soft keyboard can avoid the problem that the deleting operation of the functional character conflicts with the pre-stored operation of the functional character by judging whether the first character belongs to the preset character, thereby further improving the accuracy of character deleting.
The process of judging whether the first character belongs to the preset character by the soft keyboard may be: the soft keyboard can directly detect whether the preset characters store the characters identical to the first characters, if so, the first characters are determined to belong to the preset characters, and if not, the first characters are determined not to belong to the preset characters.
For example, the preset characters include alphabetic characters (e.g., "a" to "z") and numeric characters (e.g., "0" to "9"). The soft keyboard acquires a first character as 'a', and determines that the first character belongs to a preset character when detecting that the 'a' character exists in the preset characters.
Optionally, the soft keyboard acquires the coordinates of the first character, compares the coordinates of the first character with the coordinates of each preset character, and if the soft keyboard does not detect the preset character identical to the coordinates of the first character, the soft keyboard determines that the first character does not belong to the preset character.
Optionally, the soft keyboard may also determine whether the coordinates of the first character are within the coordinate range of the preset character, and if the soft keyboard detects that the coordinates of the first character are outside the coordinate range of the preset character, determine that the first character does not belong to the preset character.
Step 510: the soft keyboard judges whether the pressing duration exceeds the first preset duration, if yes, step 511 is executed, otherwise, the character deleting process is ended.
The procedure of this step may refer to the related description in step 402, and will not be described here again.
Step 511: the soft keyboard generates a delete instruction.
Step 512: the soft keyboard clears the stored first character and the stored duration of the pressing of the first character.
After the deleting instruction is generated, the soft keyboard can clear the stored first character and the stored pressing duration of the first character, so that the influence of the stored information on the next process of judging whether to delete the character is avoided, and the accuracy of character deletion can be ensured.
Step 513: the soft keyboard deletes the character at the previous position of the input cursor according to the instruction of the deleting instruction.
Illustratively, this step may refer to the relevant description in step 403, which is not described herein.
Note that, in the process of deleting characters, step 509 may be performed after step 504 is performed, or step 509 may be performed after step 510, that is, after step 508, step 510 may be performed, and then step 509 may be performed.
In this example, after receiving the first signal, the soft keyboard determines that the selected character is consistent with the character recorded last time, if the soft keyboard detects that the selected character is inconsistent with the character stored last time, the subsequent steps are continuously executed, and when the soft keyboard detects that the selected character is consistent with the character stored last time, the process of deleting the character is ended. By adopting the mode, the problems of mistakenly calculating the pressing time of the selected character and mistakenly deleting the character caused by the fact that the soft keyboard does not receive the second signal and then presses the confirmation key by the user can be avoided, and the accuracy of character deletion is further improved.
Fig. 9 is a schematic diagram of a scene of character deletion exemplarily shown.
As shown in fig. 9a, the display interface 901 of the smart tv displays a Wi-Fi name, a password input box 902, and an interface 904 of the soft keyboard. The character in the current input box is "hwua". As shown in fig. 9a, the user moves the operating focus 906 on the interface 904 of the soft keyboard by moving the remote control. The user finds that the last character of the "hwua" in the input box is input incorrectly and needs to be deleted, the user presses the "confirm" key 201 in the remote controller 20 at the time T5, the remote controller 20 responds to the operation that the user presses the "confirm" key 201 to generate a first signal, the first signal is transmitted to the input module of the smart television, and the input module inputs the first signal to the soft keyboard. The soft keyboard receives the first signal and obtains the character "v" where the current operating focus 906 is located. The soft keyboard determines whether the currently selected character "v" is consistent with the last stored character. After each generation of the deletion instruction, the soft keyboard clears the first character stored this time and the pressing duration for pressing the first character, so that the character stored last time is empty. The soft keyboard detects that the selected character 'v' is inconsistent with the character stored last time (the character stored last time is empty), the character 'v' is stored, and the time T5 is stored.
As shown in fig. 9b, the user presses the "confirm" button for 2 seconds to raise the finger at time T6. And responding to the operation that the 'confirm' key is lifted by the remote controller, generating a second signal and transmitting the second signal to the intelligent television. The intelligent television receives the second signal and acquires the time T6. The soft keyboard detects that the character "v" belongs to a preset character (e.g., the preset character includes an alphabetic character and a numeric character), and then the soft keyboard obtains a pressing duration of the operation focus pressing the first character, that is, tx 2=t6-T5. If the soft keyboard detects that the Tx2 is greater than Ts (i.e., the first preset duration is 1.5 seconds), the soft keyboard generates a delete instruction indicating deletion of the last character in the input box. The soft keyboard clears the stored first character and the time at which the first character was pressed (i.e., time T6 and time T5). The soft keyboard transmits the deleting instruction to the input module of the smart television, the input module acquires the position of the input cursor in the input box 902, deletes the character at the previous position of the input cursor, namely, deletes the character 'a', and redisplays the character of the current input box 902 in the input box. As shown in fig. 9b, the character redisplayed in the input box 902 is "hwou".
In some embodiments, if the user needs to delete the character that is not at the end in the input box, the user can control the operation focus to move into the input box through the remote controller, so that the movement of the input cursor can be controlled. The user can move the input cursor to a target position through a direction key in the remote controller, and the target position can be between the position of the character to be deleted and the position of the next character of the character to be deleted. The user returns the operation focus to the soft keyboard through the remote controller again, and the soft keyboard can execute the steps 501-513 to delete the character at the previous position of the input cursor.
Fig. 10 is a schematic diagram illustrating a scenario in which an input cursor is adjusted.
As shown in fig. 10a, the display interface 1001 of the smart tv displays a Wi-Fi name, a password input box 1002, and an interface of a soft keyboard. The character in the current input box is "hwua". The user moves the operation focus to the input box through the remote controller, as shown in fig. 10a, and the dotted line box around the input box 1002 is the operation focus 1004 of the input box 1002. The original position of the input cursor 1003 is at the position of the last character in the input box, as shown by the vertical dashed line in the input box 1002. The user presses the direction key in the remote control which transmits a left shift signal to the smart tv as shown at 10 a. The input cursor 1003 moves between "a" and "u" in the direction of the arrow. The user then returns the operating focus to the soft keyboard via the remote control, as shown at 10b, which returns the position of the "q" character in the soft keyboard. The user presses a "confirm" button (the remote controller is not shown in fig. 10) in the remote controller at time T7, the remote controller generates a first signal in response to the operation of pressing the "confirm" button by the user, and transmits the first signal to an input module of the smart tv, and the input module inputs the first signal to the soft keyboard. The soft keyboard receives the first signal and acquires the character of the current position of the operation focus 1005, i.e., acquires the "q" character as the first character. The soft keyboard detects that the selected character 'q' is inconsistent with the character stored last time (the character stored last time is empty), the character 'q' is stored, and the time T7 is stored.
As shown in fig. 10c, the user presses the "confirm" button for 2 seconds to raise the finger at time T8. And responding to the operation that the 'confirm' key is lifted by the remote controller, generating a second signal and transmitting the second signal to the intelligent television. The intelligent television receives the second signal and acquires the time T8. The soft keyboard detects that the character "q" belongs to a preset character (e.g., the preset character includes an alphabetic character and a numeric character), and then the soft keyboard acquires a pressing duration of the operation focus pressing the first character, that is, tx 3=t8-T7. If the soft keyboard detects that the Tx3 is greater than Ts (i.e., the first preset duration is 1.5 seconds), the soft keyboard generates a delete instruction indicating that the character in the input box at the previous position of the input cursor is deleted. The soft keyboard clears the stored first character and the time at which the first character was pressed (i.e., time T7 and time T8). The soft keyboard transmits the deleting instruction to an input module of the smart television, the input module acquires the position of the input cursor in the input frame 1002, deletes the character at the position before the input cursor, namely, deletes the character 'a', and redisplays the character of the current input frame 1002 in the input frame. As shown in fig. 10c, the character redisplayed in the input box 1002 is "Hwua".
In this example, before the first signal is received, the soft keyboard may move the position of the input cursor according to the indication of the remote controller to determine the character to be deleted, so that the character deletion is more flexible.
It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The steps of an algorithm for each example described in connection with the embodiments disclosed herein may be embodied in hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation is not to be considered as outside the scope of this application.
The present embodiment also provides a computer storage medium having stored therein computer instructions which, when executed on an electronic device, cause the electronic device to perform the above-described related method steps to implement the method for character deletion in the above-described embodiments. The storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The present embodiment also provides a computer program product which, when run on a computer, causes the computer to perform the above-described related steps to implement the method of character deletion in the above-described embodiments.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms first and second and the like in the description and in the claims of embodiments of the present application are used for distinguishing between different objects and not necessarily for describing a particular sequential order of objects. For example, the first target object and the second target object, etc., are used to distinguish between different target objects, and are not used to describe a particular order of target objects.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more. For example, the plurality of processing units refers to two or more processing units; the plurality of systems means two or more systems.
Any of the various embodiments of the application, as well as any of the same embodiments, may be freely combined. Any combination of the above is within the scope of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (12)

1. A method of character deletion, for application to an electronic device having a soft keyboard, the electronic device being communicatively coupled to a matching auxiliary device, the method comprising:
responding to a first signal sent by the auxiliary equipment at a first moment, and acquiring a character of an operation focus at the position of the first moment as a first character, wherein the first character is any character except a deleted character in a soft keyboard; the first signal is a signal generated when a first key in the auxiliary equipment is pressed, and the first key is used for indicating and selecting a character at the position where the operation focus is located;
Detecting whether the operation of the first character meets a preset deleting condition or not according to a second signal sent by the auxiliary equipment at a second moment, wherein the second signal is generated when a first key of the auxiliary equipment is lifted;
if the operation of the first character is detected to meet the preset deleting condition, deleting the character in the input box; wherein the auxiliary equipment comprises a remote controller or a mouse;
responding to a first signal sent by the auxiliary equipment at a third moment, and acquiring a character of the position of the operation focus at the third moment as a second character;
acquiring the character stored last time;
if the character stored last time is detected to be different from the second character, the second character is stored;
the electronic equipment does not receive a second signal sent by the auxiliary equipment at a fourth time;
responding to a first signal sent by the auxiliary equipment at a fifth moment, and acquiring a character of the position of the operation focus at the fifth moment as a third character;
acquiring the character stored last time as the second character;
if the character stored last time is detected to be the same as the third character, determining that whether the operation of detecting the third character meets the preset deleting condition is not executed;
Inputting the third character in the input box in response to a second signal sent by the auxiliary device at a sixth moment; and clears the second character stored last time.
2. The method of claim 1, wherein prior to said detecting whether the operation on the first character satisfies a preset deletion condition, the method further comprises:
detecting whether the first character belongs to a preset character or not, wherein the preset character comprises letters and/or numbers;
and if the first character is detected to belong to a preset character, determining to execute the operation of detecting whether the operation of the first character meets the preset deleting condition.
3. The method according to claim 1 or 2, wherein the detecting whether the operation on the first character satisfies a preset deletion condition comprises:
acquiring the pressing time length of the operation focus to press the first character;
and if the pressing time is detected to exceed the first preset time, determining that the operation of the first character is detected to meet the deleting condition.
4. A method according to claim 3, wherein the obtaining the duration of the operation focus pressing the first character comprises:
Acquiring the moment of receiving the first signal as a first moment;
responding to a second signal sent by the auxiliary equipment, and acquiring the moment of receiving the second signal as a second moment;
and acquiring a difference value between the second moment and the first moment as a pressing duration for pressing the first character.
5. The method of claim 4, wherein prior to acquiring the time of receipt of the first signal as the first time, the method further comprises:
acquiring the character stored last time;
detecting whether the character stored last time is identical to the first character;
if the character stored last time is detected to be different from the first character, the first character is saved as the character selected this time, and the operation of acquiring the moment of receiving the first signal as the first moment is confirmed to be executed.
6. The method of claim 5, wherein prior to deleting the character in the input box, the method further comprises:
and clearing the stored first character and clearing the pressing duration of the first character.
7. The method of claim 5, wherein deleting the character in the input box comprises:
Deleting the last character in the input box.
8. The method of claim 1 or 2, wherein deleting the character in the input box comprises:
and deleting the character corresponding to the previous position of the input cursor in the input box.
9. The method according to claim 1 or 2, wherein the detecting whether the operation on the first character satisfies a preset deletion condition comprises:
detecting whether the number of pressing times of the first character in a second preset time period exceeds a preset time threshold;
and if the number of times of pressing the first character within the second preset time period exceeds the number threshold, determining that the operation of the first character is detected to meet the deleting condition.
10. An electronic device, comprising:
one or more processors;
a memory;
and one or more computer programs, wherein the one or more computer programs are stored on the memory, which when executed by the one or more processors, cause the electronic device to perform the method of character deletion as claimed in any one of claims 1-9.
11. The electronic device of claim 10, wherein the electronic device comprises: any one of a television, a projector and an intelligent screen.
12. A computer readable storage medium comprising a computer program, characterized in that the computer program, when run on an electronic device, causes the electronic device to perform the method of character deletion according to any one of claims 1-9.
CN202210994720.9A 2022-08-18 2022-08-18 Character deleting method, electronic equipment and storage medium Active CN115097951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210994720.9A CN115097951B (en) 2022-08-18 2022-08-18 Character deleting method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210994720.9A CN115097951B (en) 2022-08-18 2022-08-18 Character deleting method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115097951A CN115097951A (en) 2022-09-23
CN115097951B true CN115097951B (en) 2023-06-20

Family

ID=83301389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210994720.9A Active CN115097951B (en) 2022-08-18 2022-08-18 Character deleting method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115097951B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634679A (en) * 2013-11-26 2014-03-12 乐视致新电子科技(天津)有限公司 Deleting control method and device for intelligent television text
CN109298790A (en) * 2018-10-11 2019-02-01 科大讯飞股份有限公司 Character deleting method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103965368A (en) * 2013-02-04 2014-08-06 陈朋 Bitter herbs polysaccharide extraction method
CN103139626B (en) * 2013-02-05 2016-06-22 深圳创维-Rgb电子有限公司 The method that remote controller inputs character to display device
CN106610730A (en) * 2015-10-23 2017-05-03 深圳富泰宏精密工业有限公司 Electronic equipment and character correction method
CN106354337A (en) * 2016-10-21 2017-01-25 珠海市魅族科技有限公司 Character deletion method and character deletion device
CN109613979B (en) * 2018-11-29 2022-02-08 武汉中地地科传媒文化有限责任公司 Character input method and device, AR equipment and computer storage medium
CN111857363A (en) * 2020-07-17 2020-10-30 海信视像科技股份有限公司 Input method interaction method and display equipment
CN114415847A (en) * 2022-01-19 2022-04-29 维沃移动通信有限公司 Text information deleting method and device and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634679A (en) * 2013-11-26 2014-03-12 乐视致新电子科技(天津)有限公司 Deleting control method and device for intelligent television text
CN109298790A (en) * 2018-10-11 2019-02-01 科大讯飞股份有限公司 Character deleting method and device

Also Published As

Publication number Publication date
CN115097951A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
WO2019105227A1 (en) Application icon display method, terminal, and computer readable storage medium
CN111147661B (en) Interface display method and electronic equipment
CN107193664B (en) Message display method and device and mobile terminal
CN112560001B (en) Method for managing application program use time offline and terminal equipment
EP3916529A1 (en) Message sending method, and terminal device
CN111124221B (en) File sending method and terminal equipment
US20170318061A1 (en) Method, device, and system for managing information recommendation
CN106445596B (en) Method and device for managing setting items
CN111026464A (en) Identification method and electronic equipment
CN110049486B (en) SIM card selection method and terminal equipment
CN110865745A (en) Screen capturing method and terminal equipment
CN110213729B (en) Message sending method and terminal
US20210320995A1 (en) Conversation creating method and terminal device
CN109062634B (en) Application starting method and mobile terminal
CN111596839A (en) Session interface display method, electronic device and medium
CN111459362A (en) Information display method, information display device, electronic apparatus, and storage medium
CN108762606B (en) Screen unlocking method and terminal equipment
CN110597437A (en) Screen capturing method and terminal equipment
CN111274564A (en) Communication terminal and application unlocking method in split screen mode
CN110505340B (en) Message sending method, terminal equipment and readable storage medium
CN109067975B (en) Contact person information management method and terminal equipment
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN110784394A (en) Prompting method and electronic equipment
CN111131540B (en) Name setting method and electronic equipment
CN115097951B (en) Character deleting method, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant