CN119089501A - Input box control method, device, equipment, storage medium and product - Google Patents
Input box control method, device, equipment, storage medium and product Download PDFInfo
- Publication number
- CN119089501A CN119089501A CN202411222259.0A CN202411222259A CN119089501A CN 119089501 A CN119089501 A CN 119089501A CN 202411222259 A CN202411222259 A CN 202411222259A CN 119089501 A CN119089501 A CN 119089501A
- Authority
- CN
- China
- Prior art keywords
- input box
- input
- content
- cursor
- plaintext
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6245—Protecting personal data, e.g. for financial or medical purposes
- G06F21/6263—Protecting personal data, e.g. for financial or medical purposes during internet communication, e.g. revealing personal data from cookies
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Databases & Information Systems (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses an input box control method, a device, equipment, a storage medium and a computer program product, which relate to the technical field of front end development and are applied to a browser, wherein a preset safety page of the browser comprises an original input box, the original input box is not provided with a history record function, the original input box comprises a plaintext input box and a ciphertext input box, and the input box control method comprises the following steps of receiving switching operation of external input; based on the switching operation, displaying a plaintext input box or a ciphertext input box, and rendering input content in a corresponding form in the plaintext input box or the ciphertext input box. The application solves the technical problems of reducing the privacy disclosure risk and ensuring the safety of user data.
Description
Technical Field
The present application relates to the field of front-end development, and in particular, to an input box control method, apparatus, device, storage medium, and computer program product.
Background
At present, with the development of science and technology, the internet has become a wide stage of knowledge exploration and information acquisition, and a browser is used as a bridge for connecting users and the network world, so that the browser gains the favor of vast users by virtue of a convenient operation interface and a powerful function. However, with the widespread use of browsers, the privacy protection requirements of users are gradually improved, the browser records the history of the users, and the users automatically backfill when searching or inputting the same content next time, but in this case, personal data is easily lost when the users are not themselves operating, so that privacy leakage is caused.
Disclosure of Invention
The application mainly aims to provide an input box control method, an input box control device, input box control equipment, an input box control storage medium and an input box control computer program product, and aims to solve the technical problem of how to reduce privacy disclosure risks and guarantee user data safety.
In order to achieve the above object, the present application provides an input box control method, which is applied to a browser, wherein a preset security page of the browser includes an original input box, the original input box is not configured with a history function, the original input box includes a plaintext input box and a ciphertext input box, and the input box control method includes:
Receiving switching operation of external input;
Based on the switching operation, displaying the plaintext input frame or the ciphertext input frame, and rendering input content in a corresponding form in the plaintext input frame or the ciphertext input frame.
In an embodiment, the step of displaying the plaintext input box or the ciphertext input box based on the switching operation, and rendering the input content in the corresponding form in the plaintext input box or the ciphertext input box includes:
responding to the external switching operation of the original input box, determining the type of a state switching icon before triggering the switching operation, wherein the type of the state switching icon comprises a plaintext icon and a ciphertext icon, and is used for determining the response action of the switching operation;
If the type of the state switching icon is the ciphertext icon, the response action of the switching operation is to switch the ciphertext icon into the plaintext icon, conceal the ciphertext input box, render the input content in a plaintext form in the plaintext input box, and display the plaintext input box;
If the type of the state switching icon is the plaintext icon, the response action of the switching operation is to switch the plaintext icon into the ciphertext icon, hide the plaintext input box, render input content in a ciphertext form in the ciphertext input box, and display the ciphertext input box.
In an embodiment, the input box control method further includes:
Responding to the external editing operation of the input content in the original input box;
and adjusting the input content in the original input box according to the editing operation, wherein the editing operation comprises at least one of an inserting operation and a deleting operation.
In an embodiment, the step of adjusting the input content in the original input box according to the editing operation includes:
judging the type of the original input box;
If the type of the original input frame is a plaintext input frame, adjusting input content in the plaintext input frame according to the editing operation, and rendering the adjusted input content to the plaintext input frame in a plaintext form;
And if the type of the original input box is a ciphertext input box, acquiring input content in a plaintext state, adjusting the input content in the plaintext state according to the editing operation, and rendering the adjusted input content to the ciphertext input box in a ciphertext mode.
In one embodiment, the step of adjusting the input content in the plaintext input box according to the editing operation includes:
if the operation type is the insertion operation, confirming the type of the insertion operation;
when the type of the inserting operation is that the normal cursor is inserted, the position of the system cursor in the input content of the plaintext input frame is obtained and marked as a first cursor position, the content to be inserted by a first user is inserted in the first cursor position, and the inserted input content is marked as a first input content;
When the type of the insertion operation is selected insertion, acquiring the initial position and the cursor end position of a system cursor in the current input content, respectively marking the initial position and the end position of the system cursor as a first cursor, replacing the input content between the initial position and the end position of the first cursor with the content to be inserted by a second user, and marking the inserted input content as a second input content.
In one embodiment, the step of adjusting the input content in the plaintext input box according to the editing operation includes:
if the operation type is the deletion operation, confirming the type of the deletion operation;
When the type of the deleting operation is that the deleting operation is performed after the common cursor, acquiring the position of the system cursor in the current input content, marking the position as a second cursor position, deleting the content to be deleted by the user forwards from the second cursor position, and marking the deleted input content as a third input content;
When the type of the deleting operation is selected deleting, acquiring a starting position and a cursor ending position of a cursor in the current input content, respectively marking the starting position and the ending position of the cursor as a second cursor starting position and a second cursor ending position, deleting the input content between the second cursor starting position and the second cursor ending position, and marking the deleted input content as fourth input content.
In addition, in order to achieve the above object, the present application also proposes an input frame control device including:
the receiving module is used for receiving switching operation of external input;
And the switching module is used for displaying the plaintext input frame or the ciphertext input frame based on the switching operation and rendering the input content in a corresponding form in the plaintext input frame or the ciphertext input frame.
In addition, in order to achieve the above object, the present application also proposes an input box control device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the input box control method as described above.
In addition, in order to achieve the above object, the present application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the steps of the input box control method as described above.
Furthermore, to achieve the above object, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the input box control method as described above.
According to the application, an original input box which does not reserve the input history of a user is arranged in a preset safety page of a browser, a plaintext input box and a ciphertext input box are displayed based on the received switching operation of external input, and input contents in corresponding forms are displayed in the plaintext input box and the ciphertext input box. The method comprises the steps of designing two types of original input boxes, namely a plaintext input box and a ciphertext input box in a preset safety page of a browser, wherein the original input boxes are not configured with a history record function, so that sensitive information is effectively prevented from being automatically recorded or leaked by the browser, rendering input contents in a corresponding form in the displayed plaintext input box or ciphertext input box according to the received switching operation, enhancing the flexibility of use of a user, simultaneously allowing the user to flexibly select between the plaintext input box and the ciphertext input box according to the current needs, meeting privacy requirements of the user in different scenes, protecting the sensitive information from being stolen, and realizing remarkable improvement of user privacy and data safety.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flow chart of a first embodiment of an input box control method according to the present application;
fig. 2 is a schematic diagram of a scene of plaintext-ciphertext switching according to a first embodiment of the present application;
FIG. 3 is a schematic flow chart of a second embodiment of an input box control method according to the present application;
FIG. 4 is a schematic block diagram of an input frame control device according to an embodiment of the present application;
fig. 5 is a schematic device structure diagram of a hardware operating environment related to an input box control method in an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the technical solution of the present application and are not intended to limit the present application.
For a better understanding of the technical solution of the present application, the following detailed description will be given with reference to the drawings and the specific embodiments.
The input box control method is applied to a browser, a preset safety page of the browser comprises an original input box, the original input box is not provided with a history record function, the original input box comprises a plaintext input box and a ciphertext input box, the input box control method comprises the steps of receiving switching operation of external input, displaying the plaintext input box or the ciphertext input box based on the switching operation, and rendering input content in a corresponding form in the plaintext input box or the ciphertext input box.
In this embodiment, for convenience of description, the following description will be made with the browser system as the execution subject.
Because most of the current browsers have the function of recording the history of the user, the design is initially aimed at improving the user experience, and provides convenience when the user searches or inputs similar content next time through the intelligent prediction and automatic backfill function, however, the characteristic is intangibly hidden in the privacy safety of the user, and when the non-user himself operates the device, the automatically backfilled personal information such as sensitive data of search keywords, login credentials and the like is very easy to be exposed carelessly, so that the privacy leakage and the safety risk of the user are caused.
The application provides a solution, by setting the plaintext input box and the ciphertext input box on the preset safety page in the browser, and the plaintext input box and the ciphertext input box are not provided with the history record function, sensitive information leakage can be prevented, meanwhile, a user can flexibly select between a plaintext form and a ciphertext form through switching operation, input content is rendered in the plaintext input box or the ciphertext input box according to the requirement, the use flexibility is enhanced, different privacy requirements are met, and the privacy and the data safety of the user are remarkably improved.
It should be noted that, the execution body of the embodiment may be a computing service device with functions of data processing, network communication and program running, such as a tablet computer, a personal computer, a mobile phone, or an electronic device, a browser system, or the like capable of implementing the above functions. The present embodiment and the following embodiments will be described below by taking a browser system as an example.
Based on this, an embodiment of the present application provides an input box control method, and referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of the input box control method of the present application.
In this embodiment, the input box control method is applied to a browser, a preset security page of the browser includes an original input box, the original input box is not configured with a history function, the original input box includes a plaintext input box and a ciphertext input box, and the input box control method includes steps S10 to S20:
Step S10, receiving switching operation of external input;
It should be noted that, the preset security page refers to a page of the browser for processing sensitive information, such as a user login page, a payment operation page, and the like. The original input box does not have the functions of automatic filling, history recording and the like, which can reveal the privacy of the user, thereby ensuring the instantaneity and the safety of the input content. In a preset safety page of the browser, the browser system monitors and receives operation events of an original input box from a user or external equipment, wherein the operation events are marked as switching operations by clicking a state switching icon beside the original input box for indicating the current input content form to trigger a switching request between a plaintext input box and a ciphertext input box, and the switching request comprises switching the plaintext input box into the ciphertext input box and switching the ciphertext input box into the plaintext input box.
Step S20, based on the switching operation, displaying a plaintext input box or a ciphertext input box, and rendering input content in a corresponding form in the plaintext input box or the ciphertext input box.
The method includes determining a type of a state switching icon according to a received switching operation of external input, wherein the state switching icon comprises a plaintext icon and a ciphertext icon, the plaintext icon correspondingly switches a plaintext input box into a ciphertext input box, the ciphertext icon correspondingly switches the ciphertext input box into a plaintext input box, the plaintext input box is used for receiving and displaying input contents in a plaintext form, a user can directly view and edit the input contents, the ciphertext input box is used for receiving and displaying the input contents in a ciphertext form, and encryption processing or hidden display is carried out on the input contents in the input box, so that sensitive information is not directly read.
It can be understood that, because most of the current browsers have the function of recording the history of the user, when the non-user himself operates the device, the automatically backfilled personal information is very easy to be stolen by others, so that the personal privacy of the user is leaked, so that the original input frame without the history recording function is deployed in the preset safety page of the browser, the problem of sensitive information leakage possibly caused by the automatic filling function of the browser is solved, the risk of malicious utilization caused by the security hole of the browser or a third-party plug-in is avoided, the risk of user privacy leakage is further avoided, the privacy protection level when the user inputs the sensitive information is remarkably improved, and the safety of the information in the transmission and storage processes is ensured.
It can be understood that, since the user needs to flexibly switch the input box types according to different scenes to ensure that the data input is convenient and safe, steps S10 to S20 are performed, and after the browser system receives the switching operation of the user, the browser system dynamically adjusts the types of the original input boxes according to the specific content of the operation so as to display the input content in different forms, thereby meeting the requirements of the user on the transparency of the information under different use scenes and simultaneously ensuring that the sensitive information can be protected when the user does not need to directly view.
In one possible implementation, in step S20, based on the switching operation, the step of displaying the plaintext input box or the ciphertext input box and rendering the input content in the corresponding form in the plaintext input box or the ciphertext input box includes a 01-a 03:
A01, responding to external switching operation on an original input box, and determining the type of a state switching icon before triggering the switching operation, wherein the type of the state switching icon comprises a plaintext icon and a ciphertext icon and is used for determining the response action of the switching operation;
It should be noted that the state switching icon refers to an icon beside the original input box for indicating the display state (plaintext or ciphertext) of the input content in the current original input box, and by clicking the state switching icon, the change of the display state of the input content in the current original input box is triggered, including two response actions of switching from ciphertext to plaintext and switching from plaintext to ciphertext. The plaintext icon represents that the display state of the input content in the current original input box is in a plaintext form, so that the user can read and edit the input content directly, and the ciphertext icon represents that the display state of the input content in the current original input box is in a ciphertext form, so that the sensitive information is protected from being read directly.
Step A02, if the type of the state switching icon is a ciphertext icon, the response action of the switching operation is to switch the ciphertext icon into a plaintext icon, conceal the ciphertext input box, render the input content in a plaintext form in the plaintext input box, and display the plaintext input box;
After confirming that the type of the current state switching icon is a ciphertext icon, the browser system switches the ciphertext icon into a plaintext icon, and visually feeds back the ciphertext icon to the user that the current ciphertext input box is switched to a plaintext input mode, meanwhile, the current ciphertext input box is hidden, the plaintext input box is displayed on a browser page, if the ciphertext input box before being hidden has contents, the contents in the ciphertext input box before being hidden are decrypted, the contents are rendered in the plaintext input box in a plaintext form, and if the ciphertext input box before being hidden does not have contents, the plaintext input box is kept empty.
Additionally, it should be noted that, when the user inputs the content in the plaintext input box, the browser system may open the camera authority to obtain the current user surrounding environment image (for example, may be obtained by a front camera of a mobile phone or a computer), where the current user surrounding environment refers to the range of the preset radius (for example, 1 meter) around the user, the obtained current user surrounding environment image is detected, and the existing personnel in the current user surrounding environment image is determined through face recognition, when the number of the existing personnel exceeds 1, the browser system automatically hides the plaintext input box and displays the ciphertext input box so that the input content in the current plaintext form is invisible.
And step A03, if the type of the state switching icon is a plaintext icon, switching the plaintext icon into a ciphertext icon in response to the switching operation, hiding the plaintext input box, rendering the input content in the ciphertext form in the ciphertext input box, and displaying the ciphertext input box.
It should be noted that, similar to step a02, after confirming that the type of the current state switch icon is a plaintext icon, the browser system switches the plaintext icon to a ciphertext icon, and visually feeds back the ciphertext icon to the user that the current state switch icon is switched to a ciphertext input mode, and simultaneously conceals the current plaintext input box, and displays the ciphertext input box on the browser page.
In addition, it should be noted that, if the browser system detects that the number of existing people in the image surrounding the user exceeds 1, so that the browser system hides the plaintext input box, after displaying the ciphertext input box, the user clicks the state switching icon again within a preset duration range (for example, 100 ms to 200 ms), it is determined that the user confirms that the input content is visible, and the browser system hides the ciphertext input box and displays the plaintext input box.
For the sake of understanding the technical concept or principle of the present application, please refer to fig. 2, fig. 2 provides a scene diagram of plaintext and ciphertext switching, in which, in the browser system, an original input box is initially a ciphertext input box K1, when a user needs to edit or view an input content in a plaintext form, clicking a ciphertext icon M1 beside the ciphertext input box, the ciphertext icon M1 is immediately switched to a plaintext icon M2, meanwhile, the ciphertext input box K1 is hidden, the plaintext input box K2 is displayed to the user, meanwhile, an input content in a plaintext form is rendered in the plaintext input box K2, the user can directly read the content in the plaintext input box, when the user edits the input content in the plaintext input box K2, if the user wants to hide the input content again, the plaintext icon M2 is immediately switched to the ciphertext icon M1, meanwhile, the plaintext input box K2 is hidden, the display of the ciphertext input box K1 is restored, and meanwhile, the input content in a ciphertext form is rendered in the ciphertext input box K1.
In the embodiment, the state switching icon is introduced to realize flexible switching of the display state of the input content, so that the requirement of a user on the visibility of information under different scenes is met, the sensitive information is protected when the user does not need to read, the privacy of the user is protected from being revealed, the user operation is simplified, the usability and the safety of the system are improved, meanwhile, the existing personnel number in the surrounding environment image of the user is detected, when other personnel except the user are detected, the user is automatically switched to the ciphertext input frame, the sensitive information is effectively prevented from being peeped or stolen by other people, the safety of data input is improved, in addition, the user is allowed to recover the plaintext input frame by clicking the state switching icon within the preset time length, the requirement of displaying the input content is considered, and the flexibility and the convenience of use are improved.
In the second embodiment of the present application, the same or similar content as in the first embodiment of the present application may be referred to the above description, and will not be repeated. On this basis, referring to FIG. 3, the input box control method further includes steps S11-S12:
Step S11, responding to the external editing operation of the input content in the original input box;
it should be noted that the editing operation refers to any form of modification or adjustment of the input content in the original input box, including but not limited to insertion, deletion, substitution, and the like. The browser system captures the editing actions of the user on the original input box, such as keyboard input, mouse click, etc., through the monitor or event handler, and these actions are regarded as editing operations on the input content in the original input box.
And step S12, adjusting the input content in the original input box according to editing operation, wherein the editing operation comprises at least one of inserting operation and deleting operation.
It should be noted that, the insert operation refers to adding new content or characters at a designated position in the original input box, and the delete operation refers to removing part or all of the input content in the original input box. Once the user's editing operation is captured, the browser system adjusts the content in the input box accordingly, depending on the specific type of editing operation (insert or delete). For insert operations, the system will add new strings at specified locations, and for delete operations, remove strings at selected or specified locations.
In the embodiment, the response speed of the user interface is ensured to be synchronous with the operation intention of the user in response to the externally input editing operation, delay is reduced, user experience is improved, the input content in the original input box is adjusted according to the editing operation, the editing instruction of the user is accurately processed, misoperation or data loss is avoided, the integrity and accuracy of data are ensured, multiple editing modes are supported, and the use requirement of the user is met.
In a possible implementation manner, in step S12, the step of adjusting the input content in the input box according to the editing operation includes E01 to E03:
E01, judging the type of an original input box;
it should be noted that, judging whether the original input box is a plaintext input box or a ciphertext input box is the basis of the subsequent editing operation.
E02, if the type of the original input frame is a plaintext input frame, adjusting the input content in the plaintext input frame according to editing operation, and rendering the adjusted input content to the plaintext input frame in a plaintext form;
The input content in the plaintext input frame is directly adjusted for the plaintext input frame, and the adjusted input content is stored.
And E03, if the type of the original input box is a ciphertext input box, acquiring input content in a plaintext state, adjusting the input content in the plaintext state according to editing operation, and rendering the adjusted input content to the ciphertext input box in a ciphertext mode.
It should be noted that, for the ciphertext input box, since the input content is not directly visible, the input content in the ciphertext input box cannot be directly adjusted, and the input content in the ciphertext input box corresponding to the plaintext input box needs to be acquired first, so as to adjust the input content in the corresponding plaintext input box, and for the adjusted input content, the character string length of the adjusted input content is determined, and ciphertext symbols equal to the number of the character string lengths are rendered in the ciphertext input box.
In the embodiment, through processing the editing operation of the user, no matter whether the input box is of a plaintext or ciphertext type, the user can obtain instant and accurate feedback, and meanwhile, a plurality of editing operations are supported, so that the system can flexibly cope with different editing requirements of the user, the usability and flexibility of the system are improved, in the ciphertext input box, the input content of the user is always displayed in a ciphertext form, the risk of data leakage is effectively prevented, and the safety of the system is greatly improved.
In one possible implementation, in step E02, the step of adjusting the input content in the plaintext input box according to the editing operation includes steps E11-E13:
e11, if the operation type is the insertion operation, confirming the type of the insertion operation;
the insertion operation includes normal post-cursor insertion and selection insertion. By identifying the type of insert operation that the current user intends to perform, it is ensured that the system is able to perform the corresponding logic according to the type of different insert operation.
E12, when the type of the inserting operation is that after the normal cursor is inserted, acquiring the position of a system cursor in the input content of the plaintext input frame, marking the position as a first cursor position, inserting the content to be inserted by a first user in the first cursor position, and marking the inserted input content as a first input content;
It should be noted that, the first cursor position refers to an index for determining a cursor insertion point position where the system cursor is currently located in the normal cursor post-insertion operation, the first user to-be-inserted content refers to text or data that the user wants to insert in the first cursor position, and the first input content refers to updated content in the plaintext input frame after the normal cursor post-insertion operation is performed.
In addition, it should be noted that, when the browser system determines that the type of the insertion operation is the normal cursor and inserts the normal cursor, the position of the current system cursor in the input content of the plaintext input frame is obtained, the system cursor may select only one position or may also select a plurality of positions simultaneously, the first user to be inserted content is inserted in the position selected by the system cursor, when the user inputs an error or wants to reenter, the undo and redo function is provided, so that the user undoes the unsatisfactory insertion operation or the operation before redoing, and after the user inputs the operation, the display content of the input frame is updated, and the inserted content is recorded as the first input content.
And E13, when the type of the inserting operation is selected for inserting, acquiring the initial position and the cursor end position of a system cursor in the current input content, respectively marking the initial position and the cursor end position as a first cursor initial position and a first cursor end position, replacing the input content between the initial position and the first cursor end position with the content to be inserted by a second user, and marking the inserted input content as a second input content.
It should be noted that, the first cursor start position refers to a start point index of the plaintext input frame selected by the user in the selected insertion operation, the first cursor end position refers to an end point index of the plaintext input frame selected by the user in the selected insertion operation, the second user content to be inserted refers to a new text or data that the user wants to replace in the selected area, which may be the same as or different from the first user content to be inserted, and the second input content refers to updated content in the plaintext input frame after the selected insertion operation is performed.
In addition, it should be noted that, when the browser system determines that the type of the insertion operation is selected for insertion, the start position and the end position of the current system cursor in the input content of the plaintext input frame are obtained, the system cursor may select only the two positions of the start position and the end position, or may select two or more even positions at the same time, each two adjacent positions are marked as a pair of positions to be inserted, the input content between each pair of positions to be inserted is replaced with the second user to be inserted content, when the user inputs an error or wants to reenter, a undo and redo function is provided to enable the user to undo the unsatisfactory insertion operation or the operation before redoing, and after the user inputs, the display content of the input frame is updated, and the inserted content is marked as the second input content.
In the embodiment, by supporting different types of inserting operations, a user can select different types of inserting operations according to needs, so that the flexibility of text editing is improved, meanwhile, multiple cursor operations are supported, a complex editing task is more efficient, and the user is allowed to easily correct errors through a undo/redo function, so that the smoothness and satisfaction of the user in the editing process are remarkably improved.
In one possible implementation, in step E02, the step of adjusting the input content in the plaintext input box according to the editing operation includes steps E21-E23:
Step E21, if the operation type is a deletion operation, confirming the type of the deletion operation;
It should be noted that the deletion operation includes a normal post-cursor deletion and a selected deletion. By identifying the type of delete operation that the current user intends to perform, it is ensured that the system is able to perform the corresponding logic according to the type of different delete operation.
E22, when the type of the deleting operation is that the deleting operation is performed after the common cursor, acquiring the position of the system cursor in the current input content, marking the position as a second cursor position, deleting the content to be deleted by the user from the second cursor position, and marking the deleted input content as a third input content;
It should be noted that, in the operation of deleting after the ordinary cursor, the second cursor position refers to the index of the system cursor currently located for determining the position of the cursor deleting point, the content to be deleted by the user refers to the text or data that the user wants to delete, and the third input content refers to the updated input content in the plaintext input box after the operation of deleting after the ordinary cursor is executed.
In addition, it should be noted that, when the browser system determines that the type of the deletion operation is that after deleting the normal cursor, the position of the current system cursor in the input content of the plaintext input box is obtained, the system cursor may select only one position or may select a plurality of positions simultaneously, the content to be deleted by the user is deleted forward from the position selected by the system cursor, when the user deletes the error or wants to delete again, the cancel and redo function is provided, so that the user cancels the unsatisfactory deletion operation or the operation before redoing, and after the user deletes the content, the display content of the input box is updated, and the deleted content is marked as the third input content.
And E23, when the type of the deleting operation is selected deleting, acquiring the initial position and the cursor end position of the cursor in the current input content, respectively marking the initial position and the cursor end position of the cursor as a second cursor, deleting the input content between the initial position and the end position of the second cursor, and marking the deleted input content as fourth input content.
In the selecting and deleting operation, the first cursor start position and the first cursor end position refer to the start position and the end position of the input content that the user wants to delete in the plaintext input frame, and the second input content refers to the updated input content in the plaintext input frame after the selecting and deleting operation is performed.
Additionally, it should be noted that, when the browser system determines that the type of the deletion operation is selected, the start position and the end position of the current system cursor in the input content of the plaintext input box are obtained, the system cursor may select only the two positions of the start position and the end position, or may select two or more even positions at the same time, each two adjacent positions are marked as a pair of positions to be deleted, the input content between each pair of positions to be deleted is deleted, when the user deletes an error or wants to delete again, a cancel and redo function is provided to enable the user to cancel the unsatisfactory deletion operation or the operation before redoing, and after the user deletes, the display content of the input box is updated, and the inserted content is marked as a fourth input content.
In the embodiment, multiple deletion operation types are supported, the requirements of users under different editing scenes are met, accurate operation processing based on different deletion requirements of the users is realized, the accuracy and flexibility of text editing are improved, meanwhile, multi-cursor operation is supported, complex editing tasks are more efficient, the users are allowed to easily correct errors through undo/redo functions, and the smoothness and satisfaction of the users in the editing process are remarkably improved.
It should be noted that the foregoing examples are only for understanding the present application, and are not intended to limit the method of controlling the input frame of the present application, and that many simple modifications based on this technical idea are within the scope of the present application.
The present application also provides an input box control device, please refer to fig. 4, the input box control device is applied to a browser, a preset security page of the browser includes an original input box, the original input box has no history record function, the original input box includes a plaintext input box and a ciphertext input box, the input box control device includes:
A receiving module 10 for receiving a switching operation of an external input;
the switching module 20 is configured to display a plaintext input box or a ciphertext input box based on the switching operation, and render input content in a corresponding form in the plaintext input box or the ciphertext input box.
Optionally, the switching module 20 is further configured to:
Responding to the external switching operation of the original input box, determining the type of a state switching icon before triggering the switching operation, wherein the type of the state switching icon comprises a plaintext icon and a ciphertext icon, and the state switching icon is used for determining the response action of the switching operation;
If the type of the state switching icon is a ciphertext icon, the response action of the switching operation is to switch the ciphertext icon into a plaintext icon, conceal a ciphertext input box, render input content in a plaintext form in the plaintext input box, and display the plaintext input box;
If the type of the state switching icon is a plaintext icon, the response action of the switching operation is to switch the plaintext icon into a ciphertext icon, conceal the plaintext input box, render the input content in the ciphertext form in the ciphertext input box, and display the ciphertext input box.
Optionally, the input box control device further includes an editing module 30, where the editing module 30 is configured to:
responding to the external editing operation of the input content in the original input box;
and adjusting the input content in the original input box according to editing operation, wherein the editing operation comprises at least one of inserting operation and deleting operation.
Optionally, the editing module 30 is further configured to:
Judging the type of an original input box;
If the type of the original input frame is a plaintext input frame, adjusting the input content in the plaintext input frame according to editing operation, and rendering the adjusted input content to the plaintext input frame in a plaintext form;
And if the type of the original input box is a ciphertext input box, acquiring input content in a plaintext state, adjusting the input content in the plaintext state according to editing operation, and rendering the adjusted input content to the ciphertext input box in a ciphertext mode.
Optionally, the editing module 30 is further configured to:
if the operation type is the insertion operation, confirming the type of the insertion operation;
When the type of the inserting operation is that after the normal cursor is inserted, the position of the system cursor in the input content of the plaintext input frame is obtained and marked as a first cursor position, the content to be inserted by a first user is inserted in the first cursor position, and the inserted input content is marked as a first input content;
When the type of the insertion operation is selected for insertion, acquiring the initial position and the cursor end position of a system cursor in the current input content, respectively marking the initial position and the cursor end position of the system cursor as a first cursor, replacing the input content between the initial position and the end position of the first cursor with the content to be inserted by a second user, and marking the inserted input content as a second input content.
Optionally, the editing module 30 is further configured to:
If the operation type is the deletion operation, confirming the type of the deletion operation;
When the type of the deleting operation is that the deleting operation is performed after the common cursor, acquiring the position of the system cursor in the current input content, marking the position as a second cursor position, deleting the content to be deleted by the user forwards from the second cursor position, and marking the deleted input content as a third input content;
When the type of the deleting operation is selected deleting, acquiring a starting position and a cursor ending position of a cursor in the current input content, marking the starting position and the cursor ending position as a second cursor starting position and a second cursor ending position respectively, deleting the input content between the second cursor starting position and the second cursor ending position, and marking the deleted input content as fourth input content.
The input box control device provided by the application can solve the technical problems of reducing the privacy disclosure risk and ensuring the user data safety by adopting the input box control method in the embodiment. Compared with the prior art, the beneficial effects of the input frame control device provided by the application are the same as those of the input frame control method provided by the embodiment, and other technical features in the input frame control device are the same as those disclosed by the embodiment method, and are not repeated here.
The application provides an input box control device which comprises at least one processor and a memory in communication connection with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the input box control method in the first embodiment.
Referring now to fig. 5, a schematic diagram of an input box control device suitable for use in implementing embodiments of the present application is shown. The input box control device in the embodiment of the present application may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a PAD (Portab L E APP L I CAT I on DESCR I PT I on: tablet computer), etc., and a fixed terminal such as a digital TV, a desktop computer, etc. The input box control device shown in fig. 5 is only one example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present application.
As shown in fig. 5, the input box control apparatus may include a processing device 1001 (e.g., a central processing unit, a graphic processor, etc.), which may perform various appropriate actions and processes according to a program stored in a read only memory (ROM: read On l y Memory) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM: random Access Memory) 1004. In the RAM1004, various programs and data necessary for the operation of the input box control apparatus are also stored. The processing device 1001, the ROM1002, and the RAM1004 are connected to each other by a bus 1005. An input/output (I/O) interface 1006 is also connected to the bus. In general, a system including an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a microphone, etc., an output device 1008 including, for example, a liquid crystal display (LCD: li qu I D CRYSTA L DI SP L AY), a speaker, a vibrator, etc., a storage device 1003 including, for example, a hard disk, etc., and a communication device 1009 may be connected to the I/O interface 1006. The communication means 1009 may allow the input box control device to communicate with other devices wirelessly or by wire to exchange data. While an input box control device having various systems is shown in the figures, it should be understood that not all of the illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through a communication device, or installed from the storage device 1003, or installed from the ROM 1002. The above-described functions defined in the method of the disclosed embodiment of the application are performed when the computer program is executed by the processing device 1001.
The input box control device provided by the application adopts the input box control method in the embodiment, so that the technical problem of how to reduce privacy disclosure risk and ensure user data safety can be solved. Compared with the prior art, the beneficial effects of the input frame control device provided by the application are the same as those of the input frame control method provided by the embodiment, and other technical features of the input frame control device are the same as those disclosed by the method of the previous embodiment, and are not described in detail herein.
It is to be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the description of the above embodiments, particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon for performing the input box control method in the above-described embodiments.
The computer readable storage medium provided by the present application may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM: random Access Memory), a read-only memory (ROM: read On l y Memory), an erasable programmable read-only memory (EPROM: erasab l e Programmab l e Read On l y Memory or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM: CD-Read On l y Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this embodiment, the computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to electrical wiring, fiber optic cable, RF (Rad i o Frequency: radio frequency), and the like, or any suitable combination of the foregoing.
The above-mentioned computer-readable storage medium may be contained in the input frame control apparatus or may exist alone without being incorporated in the input frame control apparatus.
The computer-readable storage medium carries one or more programs that, when executed by an input box control apparatus, cause the input box control apparatus to receive a switching operation of an external input, display the plaintext input box or the ciphertext input box based on the switching operation, and render corresponding forms of input content in the plaintext input box or the ciphertext input box.
Computer program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, SMA L L TA L K, C++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN: loca l Area Network) or a wide area network (WAN: wi de Area Network), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present application may be implemented in software or in hardware. Wherein the name of the module does not constitute a limitation of the unit itself in some cases.
The readable storage medium provided by the application is a computer readable storage medium, and the computer readable storage medium stores computer readable program instructions (namely computer programs) for executing the input box control method, so that the technical problem of how to reduce privacy leakage risk and ensure user data safety can be solved. Compared with the prior art, the beneficial effects of the computer readable storage medium provided by the application are the same as those of the input frame control method provided by the above embodiment, and are not described herein.
The application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the input box control method as described above.
The computer program product provided by the application can solve the technical problem of how to reduce privacy disclosure risk and ensure user data security. Compared with the prior art, the beneficial effects of the computer program product provided by the application are the same as those of the input frame control method provided by the above embodiment, and are not described herein.
The foregoing description is only a partial embodiment of the present application, and is not intended to limit the scope of the present application, and all the equivalent structural changes made by the description and the accompanying drawings under the technical concept of the present application, or the direct/indirect application in other related technical fields are included in the scope of the present application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411222259.0A CN119089501A (en) | 2024-09-02 | 2024-09-02 | Input box control method, device, equipment, storage medium and product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411222259.0A CN119089501A (en) | 2024-09-02 | 2024-09-02 | Input box control method, device, equipment, storage medium and product |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN119089501A true CN119089501A (en) | 2024-12-06 |
Family
ID=93659840
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411222259.0A Pending CN119089501A (en) | 2024-09-02 | 2024-09-02 | Input box control method, device, equipment, storage medium and product |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN119089501A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102929498A (en) * | 2011-09-12 | 2013-02-13 | 微软公司 | Password reveal selector |
| CN103714301A (en) * | 2012-10-09 | 2014-04-09 | 腾讯科技(深圳)有限公司 | Password input method and device |
| CN106293439A (en) * | 2015-06-04 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Interface alternation method and device |
| CN106778381A (en) * | 2016-11-30 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | A kind of important information processing method and terminal |
-
2024
- 2024-09-02 CN CN202411222259.0A patent/CN119089501A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102929498A (en) * | 2011-09-12 | 2013-02-13 | 微软公司 | Password reveal selector |
| CN103714301A (en) * | 2012-10-09 | 2014-04-09 | 腾讯科技(深圳)有限公司 | Password input method and device |
| CN106293439A (en) * | 2015-06-04 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Interface alternation method and device |
| CN106778381A (en) * | 2016-11-30 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | A kind of important information processing method and terminal |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20200258133A1 (en) | Installable web applications | |
| US10452249B2 (en) | Tooltip feedback for zoom using scroll wheel | |
| KR101605156B1 (en) | Device, method, and computer for providing file deleting service | |
| US20120159305A1 (en) | Persisting annotations within a cobrowsing session | |
| US9519570B2 (en) | Progressive snapshots in automated software testing | |
| US9804767B2 (en) | Light dismiss manager | |
| CN106844181B (en) | Method, system and mobile terminal for recording user behavior | |
| CN109446025B (en) | Operation behavior playback method and device, electronic equipment and readable medium | |
| CN107404576B (en) | Lock screen magazine browsing method, mobile terminal and computer-readable storage medium | |
| US8316460B1 (en) | Private web browsing using encryption | |
| CN113128182A (en) | Electronic document processing method and device, terminal and storage medium | |
| JP2024509808A (en) | Document creation method, apparatus, device and storage medium | |
| US8001099B2 (en) | Maintaining and utilizing copy histories | |
| CN111405149A (en) | Camera control method and device, camera, electronic equipment and storage medium | |
| CN116192789A (en) | A cloud document processing method, device and electronic equipment | |
| US10831367B2 (en) | Efficient temporary dynamic anchor points within and between application document(s) | |
| CN113535037A (en) | Interactive display method and device for command line terminal, computer readable medium and equipment | |
| CN119089501A (en) | Input box control method, device, equipment, storage medium and product | |
| US20230152934A1 (en) | Graphical user interface marking feedback | |
| WO2024131568A1 (en) | Session information processing method and related device | |
| CN108021317B (en) | Method and device for screen editing | |
| WO2023246715A1 (en) | Network connection control method and apparatus for target application, and electronic device | |
| US20120001897A1 (en) | Automatically determining an object display mode to display objects | |
| CN115248712A (en) | Method and apparatus for displaying information | |
| CN111656349B (en) | Method for managing access and display service of confidential information and data through virtual desktop |
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 |