Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and ExamplesThe present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, andIt is not used in the restriction present invention.
The method provided in an embodiment of the present invention for deleting text, function is deleted by the pressing triggering to delete button, andAt least a portion character in the Text Entry is deleted according to sliding distance, user can be defeated to text without cursor positioningThe character entered in frame is deleted, and deletion action step is simple, facilitates user to delete text, improves Consumer's Experience.
In embodiments of the present invention, the method for deleting text can apply in intelligent terminal, can also be applied to intelligenceSoftware unit, hardware cell or the software and combination of hardware unit of terminal, such as:Wechat, QQ, Ali Wang Wang etc..
In embodiments of the present invention, intelligent terminal includes but is not limited to:Mobile phone, smart phone, notebook computer,PDA (Personal Digital Assistant, personal digital assistant), TPC (Tablet Personal Computer, are put downPlate computer) etc. terminal.
Fig. 1 shows a kind of implementation process figure of method for deleting text provided in an embodiment of the present invention, and details are as follows:
In step S101, the character inputted in Text Entry shown in current interface is received.
In embodiments of the present invention, current interface can be intelligent terminal itself function, in SMS interface;Also may be usedTo be the function of application in intelligent terminal, in handset Wechat interface, do not limit specifically.
In embodiments of the present invention, character includes but is not limited to:Letter, numeral, symbol, word etc..
In step s 102, the touch operation for receiving after the pressing to delete button and being slided along Text Entry direction,Wherein, delete button is arranged on for inputting characters into the soft keyboard of Text Entry.
In embodiments of the present invention, the pressing to delete button includes:Compressing time and/or compression number, it will be understood thatCompressing time can be:1s, 2s, 3s, 4s, 5s etc.;Compression number can be 1 time, 2 times, 3 times, 4 times, it is 5 inferior, do not do specificallyLimit.
As one embodiment of the present of invention, the touch operation of slip includes:Level is slided, such as:Horizontal slip, water to the leftFlat slip etc. to the right.
In step s 103, according to touch operation, function is deleted in triggering, and is deleted according to sliding distance in Text EntryAt least a portion character.
In embodiments of the present invention, after user can be by the pressing to delete button, function is deleted in triggering, as user canWith by pressing the deletion button in cellphone information soft keyboard, and then trigger and delete function.
In embodiments of the present invention, at least a portion character in Text Entry is deleted according to sliding distance, wherein, extremelyFew a part of character includes:
Determine the start position of character deletion;
If start position is defaulted as at the ending of the alphabet inputted in input frame, according to sliding distance at endingDelete character;
If start position is the original position that user determines, character is deleted from original position according to sliding distance.
In embodiments of the present invention, user can determine the original position of character deletion by cursor, the original position bagInclude:The beginning location of the alphabet inputted in the middle optional position of the alphabet inputted in input frame, input frame.
For example, user A is using handset Wechat text box inputting word information, " tomorrow has typhoon." when, Ke YitongStart text suppression function after the delete button crossed in long-press soft keyboard and slide screen to the left, if the start position of character deletionOn the right of " having " word, then corresponding a part of word from " having " word to the left can be deleted.It is appreciated that in other implementations of the present inventionIt in example, can also to the right be slided from " having " word, then correspond to a part of word deleted from " having " word to the right, can be certainly by userThe original position of definition selection character deletion, facilitates user to select diverse location character to be deleted, deletes text function more intelligenceEnergyization.
The method provided in an embodiment of the present invention for deleting text, function is deleted by the pressing triggering to delete button, andAt least a portion character in the Text Entry is deleted according to sliding distance, user can be defeated to text without cursor positioningThe character entered in frame is deleted, and deletion action step is simple, facilitates user to delete text, improves Consumer's Experience.
In embodiments of the present invention, touch operation includes:To after the pressing of delete button and along the Text Entry sideTo it is horizontal slide, step S103 is specifically included:
According to touch operation, function is deleted in triggering, and according to the default horizontal sliding distance along input frame direction with deletingExcept the corresponding relation of character quantity, at least a portion character in the Text Entry is deleted.
In embodiments of the present invention, the default horizontal sliding distance along input frame direction is with deleting the corresponding of character quantityRelation can with when give tacit consent to 1:1 corresponding relation, can also when 1:2、1:3、1:4 grade corresponding relations.Facilitate user according to itself needThe corresponding relation for different sliding distances being set with deleting character quantity is sought, realizes that user individual deletes text maninulation.
For example, with reference to Fig. 2 a, user B uses short message input text message " the I will have a meeting in mobile phoneDuring in 30min ", user B can delete function by double-clicking the triggering of the delete button in Soft keyboard for handset, and along input frame sideTo the horizontal text for sliding 1 centimetre to the left, then deleting " 30min " in corresponding short message text input frame in the range of 1 centimetre lengthWord.
Referring to Fig. 2 b, user B uses short message input text message " the I will have a meeting in mobile phoneDuring 30min ", user B can also delete function by the triggering of delete button in long-press Soft keyboard for handset, and along input frame directionIt is horizontal slide 1 centimetre to the left, then delete " the ave a meeting in the range of 3 centimetre lengths in corresponding short message text input frameIn 30min " word.
In embodiments of the present invention, by the default horizontal sliding distance along input frame direction with deleting character quantityBetween different corresponding relations, user can set sliding distance and the actual corresponding relation for deleting character quantity, realize userText maninulation is deleted in personalization.
The implementation process figure of Fig. 3 another methods for deleting text provided in an embodiment of the present invention, itself and one shown in Fig. 1The implementation process figure difference that kind deletes the method for text is that the method for the deletion text also includes:
In step s 201, output display confirms to delete prompt message, determines that deletion is chosen to prompt user to be confirmed whetherText Entry at least a portion character.
In embodiments of the present invention, confirm that deleting prompt message includes:Text prompt information, information of voice prompt, picturePrompt message etc., is not limited specifically.
In embodiments of the present invention, confirm to delete prompt message by setting, determine to delete to prompt user to be confirmed whetherAt least a portion character in the Text Entry chosen, effectively prevent user from missing deletion action.
Fig. 4 be it is provided in an embodiment of the present invention another delete text method implementation process figure, its with shown in Fig. 1A kind of implementation process figure difference for the method for deleting text is that the method for the deletion text also includes:
In step S301, judge whether the time that touch operation terminates exceedes default time threshold;
In step s 302, when the time for judging that touch operation terminates exceeding default time threshold, close text and deleteExcept function;When judged result is no, step S303 is performed, does not close text suppression function.
In embodiments of the present invention, default time threshold can be 2s, 3s, 4s, 5s, 6s etc., specifically can according toFamily actual conditions are set, by when the time for judging that touch operation terminates exceeding default time threshold, closing automaticallyThe function of text is deleted, user deletes the function of text without manual-lock, improves Consumer's Experience.
The method provided in an embodiment of the present invention for deleting text, function is deleted by the pressing triggering to delete button, andAt least a portion character in the Text Entry is deleted according to sliding distance, user can be defeated to text without cursor positioningThe character entered in frame is deleted, and deletion action step is simple, facilitates user to delete text, improves Consumer's Experience;In addition, rootAccording to the default horizontal sliding distance along input frame direction with delete character quantity corresponding relation, user can set slip away fromFrom the corresponding relation with actual deletion character quantity, realize that user individual deletes text maninulation;Confirm to delete by output displayExcept prompt message, it may remind the user that whether confirm to delete text message, with anti-error deletion action.
Fig. 5 shows a kind of structural representation of device 400 for deleting text provided in an embodiment of the present invention, for the ease ofIllustrate, be only illustrated in the part of correlation of the invention.
In embodiments of the present invention, the device 400 of the deletion text includes:
Character receiving unit 410, for receiving the character inputted in Text Entry shown in current interface;
In embodiments of the present invention, current interface can be intelligent terminal itself function, in SMS interface;Also may be usedTo be the function of application in intelligent terminal, in handset Wechat interface, do not limit specifically.
In embodiments of the present invention, character includes but is not limited to:Letter, numeral, symbol, word etc..
Touch operation receiving unit 420, for receiving to after the pressing of delete button and along the Text Entry directionThe touch operation of slip, wherein, the delete button is arranged on for by the soft of the character input to the Text EntryIn keyboard.
In embodiments of the present invention, the pressing to delete button includes:Compressing time and/or compression number, it will be understood thatCompressing time can be:1s, 2s, 3s, 4s, 5s etc.;Compression number can be 1 time, 2 times, 3 times, 4 times, it is 5 inferior, do not do specificallyLimit.
As one embodiment of the present of invention, the touch operation of slip includes:Level is slided, such as:Horizontal slip, water to the leftFlat slip etc. to the right.
Character deletion unit 430, for according to the touch operation, function to be deleted in triggering, and is deleted according to sliding distanceAt least a portion character in the Text Entry.
In embodiments of the present invention, after user can be by the pressing to delete button, function is deleted in triggering, as user canWith by pressing the deletion button in cellphone information soft keyboard, and then trigger and delete function.
In embodiments of the present invention, at least a portion character in Text Entry is deleted according to sliding distance, wherein, extremelyFew a part of character includes:
Determine the start position of character deletion;
If start position is defaulted as at the ending of the alphabet inputted in input frame, according to sliding distance at endingDelete character;
If start position is the original position that user determines, character is deleted from original position according to sliding distance.
In embodiments of the present invention, user can determine the original position of character deletion by cursor, the original position bagInclude:The beginning location of the alphabet inputted in the middle optional position of the alphabet inputted in input frame, input frame.
For example, user A is using handset Wechat text box inputting word information, " tomorrow has typhoon." when, Ke YitongStart text suppression function after the delete button crossed in long-press soft keyboard and slide screen to the left, if the start position of character deletionOn the right of " having " word, then corresponding a part of word from " having " word to the left can be deleted.It is appreciated that in other implementations of the present inventionIt in example, can also to the right be slided from " having " word, then correspond to a part of word deleted from " having " word to the right, can be certainly by userThe original position of definition selection character deletion, facilitates user to select diverse location character to be deleted, deletes text function more intelligenceEnergyization.
The device provided in an embodiment of the present invention for deleting text, function is deleted by the pressing triggering to delete button, andAt least a portion character in the Text Entry is deleted according to sliding distance, user can be defeated to text without cursor positioningThe character entered in frame is deleted, and deletion action step is simple, facilitates user to delete text, improves Consumer's Experience.
In embodiments of the present invention, character deletion unit 430 includes:
Character deletion subelement, for deleting function according to touch operation, triggering, and according to default along input frame directionHorizontal sliding distance with delete character quantity corresponding relation, delete at least a portion word in the Text EntrySymbol.
In embodiments of the present invention, the default horizontal sliding distance along input frame direction is with deleting the corresponding of character quantityRelation can with when give tacit consent to 1:1 corresponding relation, can also when 1:2、1:3、1:4 grade corresponding relations.Facilitate user according to itself needThe corresponding relation for different sliding distances being set with deleting character quantity is sought, realizes that user individual deletes text maninulation.
In embodiments of the present invention, by the default horizontal sliding distance along input frame direction with deleting character quantityBetween different corresponding relations, user can set sliding distance and the actual corresponding relation for deleting character quantity, realize userText maninulation is deleted in personalization.
Fig. 6 is the structural representation of another device 500 for deleting text provided in an embodiment of the present invention, itself and Fig. 5 institutesA kind of difference of the device 400 of the deletion text shown is that the device 500 of the deletion text also includes:
Prompt message output unit 510, confirm to delete prompt message for output display, to prompt user to be confirmed whether reallyAt least a portion character in the Text Entry chosen is deleted calmly.
In embodiments of the present invention, confirm that deleting prompt message includes:Text prompt information, information of voice prompt, picturePrompt message etc., is not limited specifically.
In embodiments of the present invention, confirm to delete prompt message by setting, determine to delete to prompt user to be confirmed whetherAt least a portion character in the Text Entry chosen, effectively prevent user from missing deletion action.
Fig. 7 be it is provided in an embodiment of the present invention another delete text device 600 structural representation, itself and Fig. 5 institutesA kind of difference of the device 400 of the deletion text shown is that the device 600 of the deletion text also includes:
Touch operation end time judging unit 610, for judging it is default whether time that touch operation terminates exceedesTime threshold;
Text suppression function closing unit 620, judge that the time that touch operation terminates exceedes default time threshold for working asDuring value, text suppression function is closed.
In embodiments of the present invention, default time threshold can be 2s, 3s, 4s, 5s, 6s etc., specifically can according toFamily actual conditions are set, by when the time for judging that touch operation terminates exceeding default time threshold, closing automaticallyThe function of text is deleted, user deletes the function of text without manual-lock, improves Consumer's Experience.
The device provided in an embodiment of the present invention for deleting text, function is deleted by the pressing triggering to delete button, andAt least a portion character in the Text Entry is deleted according to sliding distance, user can be defeated to text without cursor positioningThe character entered in frame is deleted, and deletion action step is simple, facilitates user to delete text, improves Consumer's Experience;In addition, rootAccording to the default horizontal sliding distance along input frame direction with delete character quantity corresponding relation, user can set slip away fromFrom the corresponding relation with actual deletion character quantity, realize that user individual deletes text maninulation;Confirm to delete by output displayExcept prompt message, it may remind the user that whether confirm to delete text message, with anti-error deletion action.
The embodiment of the present invention provides a kind of computer installation, and the computer installation includes processor, and processor is used to performThe step of deletion text method that above-mentioned each embodiment of the method provides is realized during the computer program stored in memory.
Exemplary, computer program can be divided into one or more modules, and one or more module is storedIn memory, and by computing device, to complete the present invention.One or more modules can complete specific functionSeries of computation machine programmed instruction section, the instruction segment are used to describe implementation procedure of the computer program in computer installation.ExampleSuch as, computer program can be divided into the step of deletion text method that above-mentioned each embodiment of the method provides.
It will be understood by those skilled in the art that the description of above computer device is only example, do not form to calculatingThe restriction of machine device, parts more more or less than foregoing description can be included, either combine some parts or different portionsPart, such as input-output equipment, network access equipment, bus etc. can be included.
Alleged processor can be CPU (Central Processing Unit, CPU), can also be itHis general processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic,Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processorDeng the processor is the control centre of the computer installation, utilizes various interfaces and the whole computer installation of connectionVarious pieces.
The memory can be used for storing the computer program and/or module, and the processor is by running or performingThe computer program and/or module being stored in the memory, and the data being stored in memory are called, described in realizationThe various functions of computer installation.The memory can mainly include storing program area and storage data field, wherein, storage programArea can storage program area, the application program (such as sound-playing function, image player function etc.) needed at least one functionDeng;Storage data field can store uses created data (such as voice data, phone directory etc.) etc. according to mobile phone.In addition,Memory can include high-speed random access memory, can also include nonvolatile memory, such as hard disk, internal memory, graftingFormula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card(Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
If the integrated module/unit of the computer installation is realized in the form of SFU software functional unit and as independentProduction marketing in use, can be stored in a computer read/write memory medium.It is real based on such understanding, the present inventionAll or part of flow in existing above-described embodiment method, the hardware of correlation can also be instructed come complete by computer programInto described computer program can be stored in a computer-readable recording medium, and the computer program is being executed by processorWhen, can be achieved above-mentioned each embodiment of the method the step of.Wherein, the computer program includes computer program code, describedComputer program code can be source code form, object identification code form, executable file or some intermediate forms etc..The meterCalculation machine computer-readable recording medium can include:Can carry any entity or device of the computer program code, recording medium, USB flash disk,Mobile hard disk, magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memoryDevice (RAM, Random Access Memory), electric carrier signal, electric signal and software distribution medium etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present inventionAll any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.