CN106325840B - A kind of text input implementation method and device - Google Patents
A kind of text input implementation method and device Download PDFInfo
- Publication number
- CN106325840B CN106325840B CN201510369086.XA CN201510369086A CN106325840B CN 106325840 B CN106325840 B CN 106325840B CN 201510369086 A CN201510369086 A CN 201510369086A CN 106325840 B CN106325840 B CN 106325840B
- Authority
- CN
- China
- Prior art keywords
- status bar
- target position
- cursor
- electronic equipment
- focus window
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of text input implementation methods and device, this method to specifically include:Electronic equipment detects whether focus window is editable state, if it is, obtaining the status information of electronic equipment current input method, and generates status bar according to the state information;The status bar is shown in target position, wherein the distance between cursor position is less than preset threshold in the target position and the focus window.Method and apparatus disclosed by the invention solve the problems, such as that input method switching method can reduce the speed of user version input in the prior art.
Description
Technical field
The present invention relates to electronic technology field more particularly to a kind of text input implementation method and devices.
Background technique
Currently, people are more and more using the chance of PC, need the case where inputting text also very more.When a variety of languages of needs
When saying Mixed design, it is often necessary to be toggled between multilingual, but input method status item is because boundary can be blocked
The reason in face usually minimizes and is shown in taskbar, inconvenient observation, so when user needs to switch input method, usually
It is that trial and error is switched by state to achieve the goal.
For example, user is currently the English input method of system default, but is intended to input Chinese, correct way is to press
The shortcut key of Chinese character coding input method, so that it may start Chinese character coding input method and be switched to input in Chinese state.But the common feelings of user
Condition is an attempt to input character, observation text input show as a result, if at this moment user observe the result is that English and take for
It is currently the English state of Chinese character coding input method, the corresponding shortcut key that he will press the Chinese character coding input method attempts to switch to the Chinese
The Chinese language state of input method, as a result, it has been found that the still English of input, at this moment can just react, Chinese character coding input method is not yet turned on.
The shortcut key for calling Chinese character coding input method is pressed again, is opened Chinese character coding input method, can be correctly entered Chinese character at this time.
From the point of view of this example above, if operation is correct, as long as one-touch is switched to input method correctly
State;But if operating mistake, need to input character->Observe result->Key switching->Character-is inputted again>It sees again
Examine result->Key switches again, and 6 steps can be only achieved purpose in total, will be greatly reduced the speed of user version input in this way
Degree.
To solve the above-mentioned problems, two kinds of solutions are provided in the prior art, are specifically included:
One, input method is automatically switched according to context.Specific implementation is:Focus position is captured, cursor is detected
Front and back text language form automatically switches input method to corresponding state.
But when user needs multilingual Mixed design, for example Chinese and English mixing, software will be unable to make just
Really judge and input method is switched to correct status.
Two, input method is automatically switched according to text control type.Specific implementation is:Text where software detection to focus
This window is specified type, such as when password box, automatically switches input method to corresponding state.
The program can only only use a kind of input method to specified text window and in the window, and only use this kind input
A kind of situation of Language State of method is effective, such as the Chinese language state of Chinese character coding input method.For plain text input window, need
The case where inputting multilingual is invalid.
Summary of the invention
The present invention provides a kind of text input implementation method and device, and method and apparatus provided by the present invention solve existing
Input method switching method can reduce the problem of efficiency of user version input in technology.
In a first aspect, providing a kind of text input implementation method, this method is specifically included:
Electronic equipment detects whether focus window is editable state, if it is, obtaining electronic equipment current input method
Status information, and generate status bar according to the state information;
The status bar is shown in target position, wherein in the target position and the focus window where cursor
The distance between position is less than preset threshold.
With reference to first aspect, in the first possible implementation, the status bar is shown before target position,
This method further comprises:
If detecting, there is display content in the target position, adjusts the transparency of the status bar, so that the display
Content is shown through the status bar.
With reference to first aspect or the first possible implementation of first aspect, second of possible realization side
In formula, when the operating system of the electronic equipment is form Windows operating system, then the electronic equipment detects focus window
It whether is that editable state includes:
The handle of window where calls application interface GetGUIThreadInfo obtains the cursor;
Whether the handle of window where detecting the cursor is empty, if being not sky, it is determined that the focus window is can
Editing mode;If it is sky, it is determined that the focus window is can not editing mode.
With reference to first aspect or any one in the first to two kind of possible implementation of first aspect, in third
In the possible implementation of kind, described to show the status bar after target position, this method further comprises:
Electronic equipment detects whether current focus window is editable state again, if the current focus window is not
The status bar is then hidden or minimized to editable state.
With reference to first aspect or any one in the first to three kind of possible implementation of first aspect, the 4th
In kind possible implementation, the status bar is shown includes in target position:
According to the corresponding relationship of preset cursor position and target position, determine that the cursor position is corresponding
First object position, and the status bar is shown in the first object position;Or
The second target position of the status bar is determined according to the input parameter of the description target position received, and
The status bar is shown in second target position.
With reference to first aspect or any one in first to fourth kind of possible implementation of first aspect, the 5th
In the possible implementation of kind, when the focus window is shown by the display unit of electronic equipment, then by the state
Item is shown in front of target position, including:
Determine the distance between each edge frame of the cursor position Yu the display unit;
The target position is determined according to the distance, wherein when the target position and the upper left corner of the status bar are sat
Mark corresponds to, then the distance between hemline of the target position and the display unit is greater than the height of the status bar;It is described
The distance between target position and the right side sideline of the display unit are greater than the width of the status bar.
Second aspect provides a kind of electronic equipment, which includes:
Status bar generation unit, for detecting whether focus window is editable state, if it is, obtaining electronic equipment
The status information of current input method, and status bar is generated according to the state information;
Output unit, for showing the status bar in target position, wherein the target position and the focus window
The distance between cursor position is less than preset threshold in mouthful.
In conjunction with second aspect, in the first possible implementation, which further includes:
Transparency adjustment unit, for showing the status bar before target position, for detecting the target
There is display content in position, then adjusts the transparency of the status bar, so that the display content is shown through the status bar.
In conjunction with the possible implementation of the first of second aspect or second aspect, second of possible realization side
In formula, when the operating system of the electronic equipment is form Windows operating system, the status bar generation unit detects focus window
Whether mouth is that editable state includes:
The handle of window where calls application interface GetGUIThreadInfo obtains the cursor;
Whether the handle of window where detecting the cursor is empty, if being not sky, it is determined that the focus window is can
Editing mode;If it is sky, it is determined that the focus window is can not editing mode.
In conjunction with any one in the first to two kind of possible implementation of second aspect or second aspect, in third
In the possible implementation of kind, the output unit shows the status bar after target position, and the status bar generates
Unit is also used to detect whether current focus window is editable state again, if the current focus window is not editable
The status bar is then hidden or minimized to state.
In conjunction with any one in the first to three kind of possible implementation of second aspect or second aspect, the 4th
In the possible implementation of kind, the output unit shows the status bar includes in target position:
According to the corresponding relationship of preset cursor position and target position, determine that the cursor position is corresponding
First object position, and the status bar is shown in the first object position;Or
The second target position of the status bar is determined according to the input parameter of the description target position received, and
The status bar is shown in second target position.
In conjunction with any one in the possible implementation of first to fourth of second aspect or second aspect kind, the 5th
In the possible implementation of kind, when the focus window is shown by the display unit of electronic equipment, the electronic equipment is also
Including:
Target position adjustment unit, for showing the status bar before target position, for determining the cursor
The distance between each edge frame of position and the display unit;The target position is determined according to the distance, wherein
When the target position is corresponding with the top left co-ordinate of the status bar, then the hemline of the target position and the display unit
The distance between be greater than the status bar height;The distance between the target position and the right side sideline of the display unit are big
In the width of the status bar.
One or two of above-mentioned technical proposal at least has the following technical effect that:
When method and apparatus disclosed by the invention detect that user operates text edit box, electronic equipment is currently inputted
The status display of method can allow user directly to observe input method status at cursor near cursor, reduce the several of user's trial and error
Rate, to improve the text entry rates and working efficiency of user.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for text input implementation method that the embodiment of the present invention one provides;
Fig. 2 is the schematic diagram of status bar and cursor relative positional relationship in the embodiment of the present invention;
Fig. 2 a is the schematic diagram that status bar is shown in concrete application;
Fig. 2 b is the schematic diagram that display status bar is minimized in the embodiment of the present invention;
Fig. 3 is schematic diagram when the translucent mode of status bar is shown in the embodiment of the present invention;
Fig. 4 is a kind of flow diagram of text input implementation method provided by Embodiment 2 of the present invention;
Fig. 5 is a kind of electronic equipment structural schematic diagram that the embodiment of the present invention three provides;
Fig. 6 is a kind of electronic equipment structural schematic diagram that the embodiment of the present invention four provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
The embodiment of the present invention is described in further detail with reference to the accompanying drawings of the specification.
As shown in Figure 1, the embodiment of the present invention provides a kind of text input implementation method, this method specifically includes step:
Step 101, whether electronic equipment detection focus window is editable state, is worked as if it is, obtaining electronic equipment
The status information of preceding input method, and status bar is generated according to the state information;
In embodiments of the present invention, the status information is for describing the current state of system input method, wherein state letter
Breath can be the related status informations such as full-shape, half-angle, Chinese, English in input method.And focus window is in editable state
Under, the content in focus window can be adjusted.
Because the current input method status of system is all to be shown in display in a manner of minimizing language column under normal circumstances
Taskbar in unit, but when user's progress text input, cursor position is typically just paid close attention to, so apart from cursor institute
In position, remote input method status many times cannot be all this process effectively goes unnoticed by the user, to many times will lead to maloperation.At this
In inventive embodiments, in order to enable user can conveniently check the state of current input method, then available electronic equipment is current
The status information of input method, and a status bar is generated based on the status information.
If scheme provided in an embodiment of the present invention is applied to form (Windows) operating system, operated in windows
In system, because cursor only exists in focus window, and there are cursors can then determine the window editable for window, so
Whether can be in this embodiment empty by the handle of window where judging cursor, and then determine whether focus window is that can compile
The state of collecting.So in this embodiment, whether electronic equipment detection focus window is that the specific implementation of editable state can be:
The handle of window where calls application interface GetGUIThreadInfo obtains the cursor;
Whether the handle of window where detecting the cursor is empty, if being not sky, it is determined that the focus window is can
Editing mode;If it is sky, it is determined that the focus window is can not editing mode.
In specific implementation, the case where continuous switching will appear according to the different operation focus window of user, so focus
The whether editable judgement of window, which needs to execute in real time, could allow the display of status bar to meet the needs of focus window switching, so
The operation of the handle of window can be with where calls application interface GetGUIThreadInfo obtains cursor in this embodiment
In such a way that timing cycle repeats.
Step 102, the status bar is shown in target position, wherein in the target position and the focus window
The distance between cursor position is less than preset threshold.
When user carries out text input, sight is generally concentrated in around cursor, so the embodiment of the present invention is provided
Method in, position near cursor status bar can be shown in after forming status bar;Specific implementation can be:
According to the corresponding relationship of preset cursor position and target position, determine that the cursor position is corresponding
First object position, and the status bar is shown in the first object position;Or
The second target position of the status bar is determined according to the input parameter of the description target position received, and
The status bar is shown in second target position.
Wherein, which can coordinate pair with the coordinate in the status bar upper left corner or with status bar central point
It answers, can according to need in specific practical operation application and be adjusted and set.
For example, the central point or top left corner apex of setting status bar are corresponding with target location coordinate point, if with state
The central point of item and the coordinate points of target position are corresponding;User can be set preset threshold be 0.5cm, the central point of status bar with
The coordinate pair of target position is answered, then the corresponding relationship of cursor position and target position can be:Target position setting with
Cursor is that center of circle 0.5cm is within the scope of the circle of radius, and further position can be the cursor lower right corner in circle range
(specific example is as shown in Fig. 2, specifically the display signal of status bar and cursor is as shown in Figure 2 a in application environment).
Further, in order to avoid status bar blocks other display contents, if electronic equipment switches focus window, the party
Method further comprises:
Electronic equipment detects whether current focus window is editable state again, if the current focus window is not
Editable state is then hidden or is minimized the status bar (schematic diagram after status bar minimizes is as shown in Figure 2 b).
In the scheme provided by the embodiment because setting target position and the cursor position between away from
From being less than preset threshold, thus while cursor adjusts position the status bar that shows also can corresponding adjustment position, cursor exists
During adjusting position, the corner of display unit may move, so if by the relative position of cursor and status bar
Relationship is fixed, then will lead to cannot correctly show status bar in certain positions, in order to solve this problem, institute of the embodiment of the present invention
In the method for offer, when the focus window is shown by the display unit of electronic equipment, then the status bar is shown
Before target position, including:
Determine the distance between each edge frame of the cursor position Yu the display unit;
The target position is determined according to the distance, wherein when the target position and the upper left corner of the status bar are sat
Mark corresponds to, then the distance between hemline of the target position and the display unit is greater than the height of the status bar;It is described
The distance between target position and the right side sideline of the display unit are greater than the width of the status bar.
Such as:The relative positional relationship of preset status bar and cursor is:Status bar is shown in the lower right corner of cursor, then when
Cursor is moved to the lower right corner of display unit, and cursor is moved to the lower right corner of display unit and cursor and display unit are appointed
When the distance between one sideline is less than the length or width of status bar, then status bar can be adjusted to display in the upper left corner of cursor.
In specific application, status bar is shown and includes in the specific implementation of target position:
When display unit width is LScreen, it is highly HScreen;Status bar length is L, is highly H;The mobile regional scope of cursor
For display unit top left co-ordinate (X1, Y1) and bottom right angular coordinate (X2, Y2) determined by region;Windows taskbar height
HTaskbar;The distance between user setting status bar and cursor are that (preset threshold i.e. in step 102 is △ to △, in this example
The distance between status bar and cursor are calculated on the basis of status bar top left co-ordinate).Then status bar upper left corner screen is sat
Cursor position calculates as follows:
Calculate status bar upper left corner x coordinate:If X2+L+△>LScreen, illustrate cursor too close display right side sideline, if
Status bar is placed on cursor lower right side at this time, will lead to status bar can not completely show, so status bar top left co-ordinate should be adjusted
Whole is X1–L–△;If X2+L+△<LScreen, then upper left corner x coordinate is X2+△。
Calculate status bar upper left corner y-coordinate:If Y2+H+HTaskbar+△>HScreen, illustrate that cursor is too near to screen hemline, need
Status bar is adjusted to above cursor, that is, is adjusted to Y1-H-△;If Y2+H+HTaskbar+△<HScreenThen upper left corner y-coordinate is Y2+
△。
In embodiments of the present invention, because status bar be follow the change in location of cursor and adjust position, if
Directly displaying status bar then will lead to the problem of status bar blocks screen display content, and in order to avoid this problem, the present invention is real
It applies method provided by example to show before target position by the status bar, still further comprise:
If detecting, there is display content in the target position, adjusts the transparency of the status bar, so that the display
Content shows (as shown in Figure 3) through the status bar.
Embodiment two
Scheme provided by the present invention is the stand-alone utility based on operating system exploitation.For further instruction sheet
Scheme provided by inventive embodiments (as shown in Figure 4), below by taking Windows operating system as an example (the present embodiment only with
For Windows operating system, but method provided by the embodiment of the present invention is not limited to only can be used in Windows behaviour
Make system, scheme provided by the embodiment of the present invention can be used for the operating systems such as Mac OS X, Linux), to of the invention real
It applies method provided by example to be described in detail, specifically include:
Step 401, user program start and are resident backstage.
Step 402, starting timer, timing cycle call the application programming interfaces in Windows operating system
The focus window of (Application Programming Interface, API) GetGUIThreadInfo acquisition foreground thread
Window handle and cursor position where handle, cursor.
Whether window handle where step 403, detection cursor is sky, if it is sky, can determine that current window can not be compiled
Volume, if having obtained the status information of electronic equipment current input method, and input method status pair is generated according to the status information
The status bar answered then is hidden or minimizes the status bar, and is transferred to step 402;If being not sky, then it represents that focus window can be compiled
Volume, it is transferred to step 404;
Step 404, the status information of electronic equipment current input method is obtained, and status bar is generated according to the status information,
And status bar is shown in target position, and the target position is less than with the distance between cursor position in focus window
Preset threshold.
Wherein it is determined that the mode of target position can be:
According to the corresponding relationship of preset cursor position and target position, determine that the cursor position is corresponding
First object position, and the status bar is shown in the first object position;Or
The second target position of the status bar is determined according to the input parameter of the description target position received, and
The status bar is shown in second target position.
It further, can also be when showing status bar, by state in order to which status bar does not block the other content that screen is shown
Item is adjusted to translucent.
In this embodiment, if user switches input method, and the input method after switching has corresponding shape
Then the status bar then can be shown position (wherein, the status bar shown by the status bar with hidden state item by state item
Also adjustable is translucent).Wherein, the content shown in status bar may include:Entirely, half-angle, Chinese, English etc.
Correlated condition.Specific method of calling can be:
It calls Windows API GetKeyboardLayout to obtain input method, calls Windows API
ImmGetConversionStatus obtains the related status informations such as complete/half-angle.
In this embodiment it is possible to which translucent item is shown in the cursor lower right corner.It is customized for user semi-transparent
Bright status bar, translucent item is shown according to the defined position of user.
But when the position of calculated position to screen frame is not enough to put down translucent, then half
Pellucidity item is moved to reverse position.
Embodiment three
As shown in figure 5, the embodiment of the present invention provides a kind of electronic equipment, which includes:
Status bar generation unit 501, for detecting whether focus window is editable state, if it is, obtaining electronics
The status information of equipment current input method, and status bar is generated according to the state information;
In embodiments of the present invention, the status information is for describing the current state of system input method, wherein state letter
Breath can be the related status informations such as full-shape, half-angle, Chinese, English in input method.And focus window is in editable state
Under, the content in focus window can be adjusted.
When the operating system of the electronic equipment is form Windows operating system, the status bar generation unit 501 detection
Whether focus window is that editable state includes:
The handle of window where calls application interface GetGUIThreadInfo obtains the cursor;
Whether the handle of window where detecting the cursor is empty, if being not sky, it is determined that the focus window is can
Editing mode;If it is sky, it is determined that the focus window is can not editing mode.
Output unit 502, for showing the status bar in target position, wherein the target position and the coke
The distance between cursor position is less than preset threshold in point window.
It can be specifically, the output unit 502 shows the status bar in the specific implementation operation of target position:
According to the corresponding relationship of preset cursor position and target position, determine that the cursor position is corresponding
First object position, and the status bar is shown in the first object position;Or
The second target position of the status bar is determined according to the input parameter of the description target position received, and
The status bar is shown in second target position.
Further, it is exported in order to avoid status bar blocks other display contents if electronic equipment switches focus window
Unit 502 shows the status bar after target position,
Status bar generation unit 501 is also used to detect whether current focus window is editable state again, if described
Current focus window be can not editing mode, then hide or minimize the status bar.
Optionally, because status bar is to follow the change in location of cursor and adjust position, if directly displaying shape
State item then will lead to the problem of status bar blocks screen display content, and in order to avoid this problem, which further includes:
Transparency adjustment unit, for showing the status bar before target position, for detecting the target
There is display content in position, then adjusts the transparency of the status bar, so that the display content is shown through the status bar.
In the scheme provided by the embodiment because setting target position and the cursor position between away from
From being less than preset threshold, thus while cursor adjusts position the status bar that shows also can corresponding adjustment position, cursor exists
During adjusting position, the corner of display unit may move, so if by the relative position of cursor and status bar
Relationship is fixed, then will lead to cannot correctly show status bar in certain positions, in order to solve this problem, when the focus window
It is shown by the display unit of electronic equipment, which further includes:
Target position adjustment unit, for showing the status bar before target position, for determining the cursor
The distance between each edge frame of position and the display unit;The target position is determined according to the distance, wherein
When the target position is corresponding with the top left co-ordinate of the status bar, then the hemline of the target position and the display unit
The distance between be greater than the status bar height;The distance between the target position and the right side sideline of the display unit are big
In the width of the status bar.
Example IV
As shown in fig. 6, the embodiment of the present invention also provides another electronic equipment, which specifically includes place
Manage device 601 and display 602:
Processor 601, for detecting whether focus window is editable state, if it is, it is current to obtain electronic equipment
The status information of input method, and status bar is generated according to the state information;And the display 602 is controlled by the status bar
It is shown in target position, wherein the distance between cursor position is less than pre- in the target position and the focus window
If threshold value;
In embodiments of the present invention, the status information is for describing the current state of system input method, wherein state letter
Breath can be the related status informations such as full-shape, half-angle, Chinese, English in input method.And focus window is in editable state
Under, the content in focus window can be adjusted.
Display 602, for showing the status bar.
When the operating system of the electronic equipment is form Windows operating system, the processor 602 detection focus window is
It is no to include for editable state:
The handle of window where calls application interface GetGUIThreadInfo obtains the cursor;
Whether the handle of window where detecting the cursor is empty, if being not sky, it is determined that the focus window is can
Editing mode;If it is sky, it is determined that the focus window is can not editing mode.
Specifically, the status bar is shown that the display 602 of the control in target position will by the processor 601 control
The status bar is shown in target position specific implementation and can be:
According to the corresponding relationship of preset cursor position and target position, determine that the cursor position is corresponding
First object position, and the status bar is shown in the first object position;Or
The second target position of the status bar is determined according to the input parameter of the description target position received, and
The status bar is shown in second target position.
Further, it is handled in order to avoid status bar blocks other display contents if electronic equipment switches focus window
Device 601 is also used to detect whether current focus window is editable state again, if the current focus window is that can not compile
The status bar is then hidden or minimized to the state of collecting.
Optionally, because status bar is to follow the change in location of cursor and adjust position, if directly displaying shape
State item then will lead to the problem of status bar blocks screen display content, and in order to avoid this problem, which further includes:
Processor 601 is also used to show the status bar before target position, for detecting the target position
There is display content, then adjust the transparency of the status bar, so that the display content is shown through the status bar.
In the scheme provided by the embodiment because setting target position and the cursor position between away from
From being less than preset threshold, thus while cursor adjusts position the status bar that shows also can corresponding adjustment position, cursor exists
During adjusting position, the corner of display unit may move, so if by the relative position of cursor and status bar
Relationship is fixed, then will lead to cannot correctly show status bar in certain positions, in order to solve this problem, when the focus window
It is shown by the display unit of electronic equipment, which further includes:
Processor 601 is also used to show the status bar before target position, for determining that the cursor institute is in place
Set the distance between each edge frame of the display unit;The target position is determined according to the distance, wherein when the mesh
Cursor position is corresponding with the top left co-ordinate of the status bar, then between the target position and the hemline of the display unit
Distance is greater than the height of the status bar;The distance between the target position and the right side sideline of the display unit are greater than described
The width of status bar.
Said one or multiple technical solutions in the embodiment of the present application, at least have the following technical effect that:
When method and apparatus disclosed by the invention detect that user operates text edit box, electronic equipment is currently inputted
The status display of method can allow user directly to observe input method status at cursor near cursor, reduce the several of user's trial and error
Rate, to improve the text entry rates and working efficiency of user.
The present invention display input method and its Language State at cursor, so that user be allowed once accurately to complete desired cut
It changes.
Scheme provided by the invention solves the whether editable decision problem of self-defined control under Windows, reaches
The whether editable beneficial effect of accurate judgement focus window.
Method of the present invention is not limited to embodiment described in specific embodiment, those skilled in the art according to
Technical solution of the present invention obtains other embodiments, also belongs to the scope of the technical innovation of the present invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (6)
1. a kind of text input implementation method, which is characterized in that this method specifically includes:
Electronic equipment detects whether focus window is editable state, if it is, obtaining the shape of electronic equipment current input method
State information, and status bar is generated according to the state information;
The status bar is shown in target position, wherein cursor position in the target position and the focus window
The distance between be less than preset threshold;Wherein,
When the focus window is shown by the display unit of electronic equipment, then the status bar is shown in target position
Before, including:
Determine the distance between each edge frame of the cursor position Yu the display unit;
The target position is determined according to the distance, wherein when the top left co-ordinate pair of the target position and the status bar
It answers, then the distance between hemline of the target position and the display unit is greater than the height of the status bar;The target
The distance between position and the right side sideline of the display unit are greater than the width of the status bar;
Wherein, the status bar is shown before target position, this method further comprises:
If detecting, there is display content in the target position, adjusts the transparency of the status bar, so that the display content
It is shown through the status bar;
Described to show the status bar after target position, this method further comprises:
Electronic equipment detects whether current focus window is editable state again, if the current focus window is that can not compile
The status bar is then hidden or minimized to the state of collecting.
2. the method as described in claim 1, which is characterized in that when the operating system of the electronic equipment is form Windows
Operating system, then whether the electronic equipment detection focus window is that editable state includes:
The handle of window where calls application interface GetGUIThreadInfo obtains the cursor;
Whether the handle of window where detecting the cursor is empty, if being not sky, it is determined that the focus window is editable
State;If it is sky, it is determined that the focus window is can not editing mode.
3. method according to claim 1 or 2, which is characterized in that show the status bar and include in target position:
According to the corresponding relationship of preset cursor position and target position, the cursor position corresponding first is determined
Target position, and the status bar is shown in the first object position;Or
Determine the second target position of the status bar according to the input parameter of the description target position received, and by institute
It states status bar and is shown in second target position.
4. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Status bar generation unit, for detecting whether focus window is editable state, if it is, it is current to obtain electronic equipment
The status information of input method, and status bar is generated according to the state information;
Output unit, for showing the status bar in target position, wherein in the target position and the focus window
The distance between cursor position is less than preset threshold;
When the focus window is shown by the display unit of electronic equipment, which further includes:
Target position adjustment unit, for showing the status bar before target position, for determining the cursor place
The distance between each edge frame of position and the display unit;The target position is determined according to the distance, wherein when this
Target position is corresponding with the top left co-ordinate of the status bar, then between the target position and the hemline of the display unit
Distance be greater than the status bar height;The distance between the target position and the right side sideline of the display unit are greater than institute
State the width of status bar;
The electronic equipment further includes transparency adjustment unit, for showing the status bar before target position, for examining
Measuring the target position has display content, then adjusts the transparency of the status bar, so that described in display content transmission
Status bar is shown;
The status bar is shown after target position that the status bar generation unit is also used to examine again by the output unit
Survey current focus window whether be editable state, if the current focus window be can not editing mode, hide or most
The smallization status bar.
5. electronic equipment as claimed in claim 4, which is characterized in that when the operating system of the electronic equipment is form
Windows operating system, whether the status bar generation unit detection focus window is that editable state includes:
The handle of window where calls application interface GetGUIThreadInfo obtains the cursor;
Whether the handle of window where detecting the cursor is empty, if being not sky, it is determined that the focus window is editable
State;If it is sky, it is determined that the focus window is can not editing mode.
6. electronic equipment as described in claim 4 or 5, which is characterized in that the output unit shows the status bar
Target position includes:
According to the corresponding relationship of preset cursor position and target position, the cursor position corresponding first is determined
Target position, and the status bar is shown in the first object position;Or
Determine the second target position of the status bar according to the input parameter of the description target position received, and by institute
It states status bar and is shown in second target position.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510369086.XA CN106325840B (en) | 2015-06-29 | 2015-06-29 | A kind of text input implementation method and device |
PCT/CN2016/085118 WO2017000754A1 (en) | 2015-06-29 | 2016-06-07 | Method and device for text input |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510369086.XA CN106325840B (en) | 2015-06-29 | 2015-06-29 | A kind of text input implementation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106325840A CN106325840A (en) | 2017-01-11 |
CN106325840B true CN106325840B (en) | 2018-11-30 |
Family
ID=57607713
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510369086.XA Active CN106325840B (en) | 2015-06-29 | 2015-06-29 | A kind of text input implementation method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106325840B (en) |
WO (1) | WO2017000754A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3699731B1 (en) * | 2018-06-27 | 2023-10-04 | Huawei Cloud Computing Technologies Co., Ltd. | Method and device for calling input method, and server and terminal |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103809844A (en) * | 2012-11-12 | 2014-05-21 | 联想(北京)有限公司 | State prompting method and electronic equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2700528A3 (en) * | 2008-03-19 | 2014-12-24 | Denso Corporation | Vehicular manipulation input apparatus |
CN101286096A (en) * | 2008-05-26 | 2008-10-15 | 孙强国 | Digit, letter and punctuation and input mode direct switching method |
KR20140052505A (en) * | 2012-10-24 | 2014-05-07 | 삼성전자주식회사 | Electronic apparatus and control method thereof |
WO2015019396A1 (en) * | 2013-08-05 | 2015-02-12 | 株式会社野村総合研究所 | Screen display program |
-
2015
- 2015-06-29 CN CN201510369086.XA patent/CN106325840B/en active Active
-
2016
- 2016-06-07 WO PCT/CN2016/085118 patent/WO2017000754A1/en active Application Filing
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103809844A (en) * | 2012-11-12 | 2014-05-21 | 联想(北京)有限公司 | State prompting method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106325840A (en) | 2017-01-11 |
WO2017000754A1 (en) | 2017-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10929013B2 (en) | Method for adjusting input virtual keyboard and input apparatus | |
CN103339593B (en) | The system and method for multiple frames to be presented on the touchscreen | |
CN105940365B (en) | A kind of notification information processing method, device and terminal | |
EP2466423A1 (en) | Image recognition device, operation determination method, and program | |
US11175798B2 (en) | Moving method of floating toolbar in touch display apparatus and touch display apparatus | |
CN109155821A (en) | The mobile user interface shutter release button of camera | |
JP2501293B2 (en) | Method and system for displaying pressure on input device | |
EP3007441A1 (en) | Interactive displaying method, control method and system for achieving displaying of a holographic image | |
US20180046366A1 (en) | Method for processing user interface of terminal, user interface, and terminal | |
CN106911863A (en) | A kind of false-touch prevention method and device of terminal | |
CN110096319A (en) | A kind of method and electronic equipment for opening camera applications | |
CN106681503A (en) | Display control method, terminal and display device | |
CN106094203A (en) | VR system, for controlling wearable device and the method thereof of VR equipment | |
CN106445347A (en) | Interface displaying method and device | |
CN106775199A (en) | The touch operation method and terminal of screen interface | |
CN106873783A (en) | Information processing method, electronic equipment and input unit | |
CN106325840B (en) | A kind of text input implementation method and device | |
CN106648402A (en) | Information sending method and device and information processing method and device | |
CN103870158A (en) | Information processing method and electronic equipment | |
CN104978030A (en) | Left and right hand based software and method for automatically adjusting display interface of mobile phone | |
CN105138173B (en) | A kind of control method of touching display screen | |
CN104166508A (en) | Touch implementation method and device | |
US10318131B2 (en) | Method for scaling down effective display area of screen, and mobile terminal | |
CN103914228A (en) | Mobile terminal and touch screen operating method thereof | |
CN110647240A (en) | VR driving based multi-screen display and switching system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |