CN104461240A - Focus selection method and terminal device - Google Patents

Focus selection method and terminal device Download PDF

Info

Publication number
CN104461240A
CN104461240A CN201410719896.9A CN201410719896A CN104461240A CN 104461240 A CN104461240 A CN 104461240A CN 201410719896 A CN201410719896 A CN 201410719896A CN 104461240 A CN104461240 A CN 104461240A
Authority
CN
China
Prior art keywords
window
focus
target
chosen
hardware button
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
Application number
CN201410719896.9A
Other languages
Chinese (zh)
Inventor
任亮
赵鸿飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ThunderSoft Co Ltd
Original Assignee
ThunderSoft Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ThunderSoft Co Ltd filed Critical ThunderSoft Co Ltd
Priority to CN201410719896.9A priority Critical patent/CN104461240A/en
Publication of CN104461240A publication Critical patent/CN104461240A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0489Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof
    • G06F3/04892Arrangements for controlling cursor position based on codes indicative of cursor displacements from one discrete location to another, e.g. using cursor control keys associated to different directions or using the tab key

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a focus selection method and a terminal device. The method comprises the steps: a first display window is determined; the first display window is divided into n window bodies according to n set hardware keys, wherein one hardware key corresponds to one window body; a triggered target hardware key in the n hardware keys is detected, and the window body corresponding to the target hardware key is selected from the n window bodies to serve as a target window body; the number of objects capable of being selected by a focus in the target window body is determined; if the number of the objects capable of being selected by the focus in the target window body meets a set value, it is determined that the objects capable of being selected by the focus are the selection objects of the focus. By means of the focus selection method and the terminal device, focus selection operations of a user can be facilitated.

Description

A kind of focus system of selection and terminal device
Technical field
The present invention relates to technical field of data processing, more particularly, relate to a kind of focus system of selection and terminal device.
Background technology
Focus is the position that the cursor in terminal device (electronic equipment such as computer or mobile phone) is activated, and can be determined the destination object (as chained address in webpage, the control etc. in application) chosen by cursor by the selection of focus.
Along with popularizing of intelligent operating system (as operating systems such as Android, Window Phone), the terminal device loading touch screen gets more and more, and user realizes the selection of focus easily by touch screen; In addition, still the terminal device that there is part lift-launch intelligent operating system at present adopts hardware keyboards to carry out information input, the mode that these terminal devices adopting hardware keyboards to carry out information input carry out focus selection is mainly: adopt the navigation key up and down of hardware keyboards to control the movement of screen part of the body cavity above the diaphragm housing the heart and lungs point, time on Focal Point Shift to destination object, realized the selection of focus by the acknowledgement key of hardware keyboards.
The present inventor finds in research process: intelligent operating system is all the terminal device design in order to have touch-screen substantially, the selection operation of focus is generally suitable with the touch control operation of touch-screen, this makes the terminal device with hardware keyboards when adopting existing focus selection mode to carry out focus selection, operates comparatively loaded down with trivial details inconvenience; As some application interface shown the more object clicked (the multiple links shown in such as webpage), adopt hardware keyboards to carry out focus and select to need the operation carried out repeatedly.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of focus system of selection and terminal device, to solve the existing terminal device with hardware keyboards when carrying out focus and selecting, operates the problem of comparatively loaded down with trivial details inconvenience.
For achieving the above object, the embodiment of the present invention provides following technical scheme:
A kind of focus system of selection, comprising:
Determine the first display window;
Described first display window is divided into n window by n the hardware button according to setting, a corresponding window of hardware button;
Detect the target hardware button be triggered in a described n hardware button, from a described n window, select the window corresponding with described target hardware button as target window;
Determine the quantity of the object can chosen by focus in described target window;
If the quantity of the object can chosen by focus in described target window meets setting value, then determine that the described object can chosen by focus is the alternative of focus.
Wherein, describedly determine that the first display window comprises:
If setting value can not met by the number of objects that focus is chosen, then using described target window as the first display window in described target window.
Wherein, describedly determine that the first display window comprises:
Determine that the window of the visible display area being shown in the first application is the first display window, the window that described first display window has for the first application.
Wherein, described first display window is divided into n window and comprises by described n the hardware button according to setting:
Determine the boundary coordinate of described first display window;
Determine the layout of a described n window, the boundary coordinate according to described first display window calculates the position, boundary line with described n window of described layout;
First display window is divided into n window by the position, boundary line according to a determined n window.
Wherein, describedly determine that the layout of a described n window comprises:
According to the layout of a described n hardware button in hardware keyboards, determine the layout of a described n window at described first display window, wherein the layout of each hardware button in hardware keyboards, corresponding to the layout of corresponding window on described first display window.
Wherein, describedly determine that the layout of a described n window comprises:
Setting according to a described n hardware button puts in order, determine a described n window putting in order on described first display window, the wherein tagmeme of each hardware button in described setting puts in order, corresponding to the tagmeme of corresponding window on described first display window.
Wherein, select from a described n window window corresponding with described target hardware button as target window after, described method also comprises:
To selected described target window to flash the display mode of the boundary line of described target window, point out.
Wherein, describedly determine that the quantity of the object can chosen by focus in described target window comprises:
Determine the object can chosen by focus in described first display window;
Calculate point coordinate in the object respectively can chosen by focus in described first display window;
Determine to be positioned at described target window scope, the quantity of point coordinate in the object can chosen by focus in described first display window;
Determined quantity is defined as the quantity of the object can chosen by focus in described target window.
Wherein, after the object can chosen by focus described in determining is the alternative of focus, described method also comprises:
To the alternative of described focus to flash the display mode of the boundary line of the alternative of described focus, point out.
The embodiment of the present invention also provides a kind of terminal device, comprising:
First determination module, for determining the first display window;
Divide module, for described first display window being divided into n window according to n hardware button of setting, a corresponding window of hardware button;
Button detection module, for detecting the target hardware button be triggered in a described n hardware button;
Target window determination module, for selecting the window corresponding with described target hardware button as target window from a described n window;
Number of objects determination module, for determining the quantity of the object can chosen by focus in described target window;
Object of focus determination module, if meet setting value for the quantity of the object can chosen by focus in described target window, then determines that the described object can chosen by focus is the alternative of focus.
Based on technique scheme, the focus system of selection that the embodiment of the present invention provides, by determining the first display window; Described first display window is divided into n window by n the hardware button according to setting, a corresponding window of hardware button; Detect the target hardware button be triggered in a described n hardware button, from a described n window, select the window corresponding with described target hardware button as target window; Determine the quantity of the object can chosen by focus in described target window; When the quantity of the object can chosen by focus in described target window meets setting value, determine that the described object can chosen by focus is the alternative of focus.Visible, the embodiment of the present invention is by carrying out the division of n window to the first display window, make n hardware button one_to_one corresponding of divided a n window and setting, like this, user is for the operation of a described n hardware button, the selection operation of a paired n window can be fed back, when the quantity of the object of target window selected from n window meets setting value, then can complete the determination of the alternative of focus.The embodiment of the present invention is by n window of the corresponding first display window division of n hardware button of setting, by the operation to n hardware button, to realize the alternative of focus in n window be positioned at choosing of region, the fit that the selection of the operation and focus that improve hardware button operates, alleviate the loaded down with trivial details degree of user operation when carrying out focus and selecting, make user carry out the simple operation of focus selection.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The process flow diagram of the focus system of selection that Fig. 1 provides for the embodiment of the present invention;
The schematic diagram that the window that Fig. 2 provides for the embodiment of the present invention divides;
Another schematic diagram that the window that Fig. 3 provides for the embodiment of the present invention divides;
Another process flow diagram of the focus system of selection that Fig. 4 provides for the embodiment of the present invention;
A process flow diagram again of the focus system of selection that Fig. 5 provides for the embodiment of the present invention;
The schematic diagram again that the window that Fig. 6 provides for the embodiment of the present invention divides;
The method flow diagram of the first display window division n window that Fig. 7 provides for the embodiment of the present invention;
The another schematic diagram that the window that Fig. 8 provides for the embodiment of the present invention divides;
Fig. 9 provides the method flow diagram of the quantity of the object can chosen by focus in the window that really sets the goal for the embodiment of the present invention;
The another process flow diagram of the focus system of selection that Figure 10 provides for the embodiment of the present invention;
The structured flowchart of the terminal device that Figure 11 provides for the embodiment of the present invention;
The structured flowchart of the first determination module that Figure 12 provides for the embodiment of the present invention;
Another structured flowchart of the first determination module that Figure 13 provides for the embodiment of the present invention;
Another structured flowchart of the terminal device that Figure 14 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The process flow diagram of the focus system of selection that Fig. 1 provides for the embodiment of the present invention, the method can be applicable to can the terminal device of display window, some objects (as link etc.) can chosen by focus are carried herein, the subscriber equipmenies such as this terminal device can be mobile phone, computer in window; With reference to Fig. 1, the method can comprise:
Step S100, determine the first display window;
Optionally, the first display window can for being shown in the window of the visible display area of the first application, and this first display window can be had by the first application, and first applies the application (as browser etc.) can loaded for terminal device; The embodiment of the present invention can run first application of loading in terminal device, then the window shown by the visible display area of the first application can think the first display window, and this first display window can think the first initial display window; Optionally, in embodiments of the present invention, any window and the object that can be chosen by focus can by the first application have.
Optionally, the first display window also can think that the embodiment of the present invention has been carried out n follow-up window and divided rear (see step S110), and the quantity of the object can chosen by focus selected in the n a divided window does not meet the window of setting value;
In embodiments of the present invention, the first display window comprises above-mentioned two situations, hereafter will be elaborated again.
Step S110, according to n hardware button of setting, described first display window is divided into n window, hardware button correspondence window;
Optionally, the embodiment of the present invention can select n hardware button from hardware keyboards, the first display window is divided into the identical n of a quantity window, and by this n window one_to_one corresponding to this n hardware button, makes the corresponding window of a hardware button; N is greater than 1.
Optionally, be the mobile phone with hardware keyboards for terminal device, or terminal device adopts the situation with the hardware keyboards of digital keys, described n hardware button of embodiment of the present invention indication can be digital keys; To choose the digital keys of 1 ~ 9, corresponding, the first display window can be divided into 9 windows, and a corresponding digital keys of window; Fig. 2 shows the first display window and is divided into 9 windows, and the schematic diagram corresponding to digital keys, can reference be carried out, the digital keys that each numeral in Fig. 2 in 9 windows is corresponding;
Optionally, terminal device is adopted there is English or special character (@, $, the characters such as %) the situation of hardware keyboards (as international keyboard), then the embodiment of the present invention can choose n hardware button from the button of English or special character, to make the first display window be divided into n window, and a corresponding window of hardware button; To choose the English button QWEASDZXC of international keyboard, corresponding, the first display window can be divided into 9 windows, and a corresponding English button of window; Fig. 3 shows the first display window and is divided into 9 windows, and the schematic diagram corresponding to the English button of QWEASDZXC, can carry out reference, the English character in Fig. 3 in 9 windows represents corresponding English button.
Obviously, the embodiment of the present invention also supports choosing of an arbitrary n hardware button, after choosing n hardware button, described first display window can be divided into n window, a corresponding window of hardware button.
Step S120, detect the target hardware button be triggered in a described n hardware button, from a described n window, select the window corresponding with described target hardware button as target window;
Optionally, after the first display window is divided into n window, user can click the arbitrary button in a described n hardware button, after the button clicked is detected by terminal device, can determine that the button that user clicks is the target hardware button be triggered; Obviously, user according to the position of object interested in the first display window, can carry out the click of target hardware button;
Owing to having set each window in a described n window above, with each button one_to_one corresponding in a described n hardware button, therefore target hardware button is clicked user and after being detected by terminal device, terminal device can determine the window corresponding with described target hardware button, and this window is the target window that user chooses.
Step S130, determine the quantity of the object can chosen by focus in described target window;
Optionally, the embodiment of the present invention can calculate the coordinate position of the object can chosen by focus in the first display window, therefrom determine the coordinate of the object fallen within the scope of described target window, thus determine the quantity of the coordinate of the object fallen within the scope of described target window, this quantity is the quantity of the object can chosen by focus in target window; Optionally, the coordinate position of object of the embodiment of the present invention by respectively being chosen by focus in the first display window, with the comparison of target window scope, realizes the determination of the coordinate of the object fallen within the scope of described target window.
If the quantity of the object can chosen by focus in the described target window of step S140 meets setting value, then determine that the described object can chosen by focus is the alternative of focus.
Optionally, setting value can be 1, obviously also can need setting according to practical application.
The focus system of selection that the embodiment of the present invention provides, by determining the first display window; Described first display window is divided into n window by n the hardware button according to setting, a corresponding window of hardware button; Detect the target hardware button be triggered in a described n hardware button, from a described n window, select the window corresponding with described target hardware button as target window; Determine the quantity of the object can chosen by focus in described target window; When the quantity of the object can chosen by focus in described target window meets setting value, determine that the described object can chosen by focus is the alternative of focus.Visible, the embodiment of the present invention is by carrying out the division of n window to the first display window, make n hardware button one_to_one corresponding of divided a n window and setting, like this, user is for the operation of a described n hardware button, the selection operation of a paired n window can be fed back, when the quantity of the object of target window selected from n window meets setting value, then can complete the determination of the alternative of focus.The embodiment of the present invention is by n window of the corresponding first display window division of n hardware button of setting, by the operation to n hardware button, to realize the alternative of focus in n window be positioned at choosing of region, the fit that the selection of the operation and focus that improve hardware button operates, alleviate the loaded down with trivial details degree of user operation when carrying out focus and selecting, make user carry out the simple operation of focus selection.
Already described above, the first display window can not meet the window of setting value for the quantity of the object can chosen by focus selected in divided a n window; Under regard to this kind of situation and be introduced, another process flow diagram of the focus system of selection that Fig. 4 provides for the embodiment of the present invention, with reference to Fig. 4, the method can comprise:
Step S200, determine the first display window;
Step S210, according to n hardware button of setting, described first display window is divided into n window, hardware button correspondence window;
Step S220, detect the target hardware button be triggered in a described n hardware button, from a described n window, select the window corresponding with described target hardware button as target window;
Step S230, determine the quantity of the object can chosen by focus in described target window to judge whether described quantity meets setting value, if so, perform step S240, if not, perform step S250;
Step S240, determine that the object can chosen by focus in described target window is the alternative of focus;
Step S250, using described target window as the first display window, return step S200.
It should be noted that, in embodiments of the present invention, the quantity of the object can chosen by focus in described target window does not meet setting value and does not comprise: the quantity of the object can chosen by focus in determined target window is zero; The quantity of the object can chosen by focus in target window does not meet setting value, is based upon the basis that the quantity of the object can chosen by focus in target window is non-vanishing; The quantity of the object can chosen by focus in determined target window is zero, then illustrate that user have selected the target window of mistake, user need carry out reselecting (namely terminal device need detect other hardware button be triggered in n hardware button) of target window, the embodiment of the present invention can particular hint mode point out current target window to be wrong target window, and turns back to the selection that the first display window prompting user re-starts target window; Concrete, when the quantity of the object that the embodiment of the present invention can be chosen by focus in determined target window is zero, flash determined target window, and after flashing determined target window, flash the first display window, with the selection of pointing out user to re-start target window.
Visible, when the number of objects can chosen by focus in the secondary target window determined does not meet setting value, the embodiment of the present invention need to work as the secondary target window determined as the first display window, repeat step shown in Fig. 4, until when can be met setting value by the number of objects that focus is chosen in determined target window, just can be considered the determination of the alternative of focus.
Already described above, the window shown by visible display area of the first application can think the first display window, this first display window can think initial first display window, under regard to this kind of situation and be introduced, a process flow diagram again of the focus system of selection that Fig. 5 provides for the embodiment of the present invention, with reference to Fig. 5, the method can comprise:
Step S300, operation first application, at the visible display area display window of the first application;
Step S310, determine the first display window;
Optionally, first time carry out the division of n window time, the embodiment of the present invention can first application visible display area show window as the first display window;
Step S320, according to n hardware button of setting, described first display window is divided into n window, hardware button correspondence window;
Step S330, detect the target hardware button be triggered in a described n hardware button, from a described n window, select the window corresponding with described target hardware button as target window;
Step S340, determine the quantity of the object can chosen by focus in described target window to judge whether described quantity meets setting value, if so, perform step S350, if not, perform step S360;
Step S350, determine that the object can chosen by focus in described target window is the alternative of focus;
Step S360, using described target window as the first display window, return step S310.
Optionally, the quantity of the object can chosen by focus in target window does not meet setting value, is based upon the basis that the quantity of the object can chosen by focus in target window is non-vanishing; The quantity of the object can chosen by focus in determined target window is zero, then illustrate that user have selected the target window of mistake, user need carry out reselecting of target window, the embodiment of the present invention can particular hint mode point out current target window to be wrong target window, and turns back to the selection that the first display window prompting user re-starts target window.
Fig. 5 shows the scene of two kinds of situations combinations that the first display window comprises, for ease of understanding, Fig. 6 shows the schematic diagram that a kind of window divides, reference can be carried out, Fig. 6 is the digital keys of 1 ~ 9 for n hardware button, the window of the visible display area display of the first application is as primary first display window, be divided into 9 windows, when the quantity of the object can chosen by focus in the target window that first time is chosen does not meet setting value, the target window that first time is chosen by the embodiment of the present invention is as secondary first display window, be divided into 9 windows, if the quantity of the object of the target window chosen from 9 windows that second time is divided into meets setting value, then determine that the object can chosen by focus that described quantity meets setting is the alternative of focus, if the quantity of the object of the target window chosen from 9 windows that second time is divided into does not meet setting value again, then carry out the determination of the first display window next time, until when the quantity of the object of the target window chosen from 9 windows that the first display window divides meets setting value, complete the determination of the alternative of focus.
Optionally, the embodiment of the present invention according to the layout of described n window of setting, can realize the division of n window in the first display window.The first display window that Fig. 7 shows the embodiment of the present invention to be provided divides the method flow diagram of n window, and with reference to Fig. 7, the method can comprise:
Step S400, determine the boundary coordinate of described first display window;
It is the situation of the window (the first initial display window) of the visible display area being shown in the first application for the first display window, the embodiment of the present invention can the coordinate figure of the visual boundary of the window of the WindowsState object record of WindowsManagerService class in terminal device system, determines the boundary coordinate of the first display window.
Although, the function that the operating system of different terminal devices adopts is not necessarily the same, but no matter which kind of operating system terminal device adopts, all should have WINDOWS management method, for android, there is WindowsManagerService class in Android system, wherein there is in such WindowsState object, in this object, preserve the coordinate figure of the visual boundary of window.
For the embodiment of the present invention, provide in window management method and determine that the current window being shown in the visible display area of the first application is the function of which window, it realizes principle is by judging the sequence of window on Z axis, determine the window of the superiors, if this window is not the window of specific properties, as floating frame, transparent window etc., then this window is the current window being shown in the visible display area of the first application.
The first display window quantity that is the object can chosen by focus selected in divided a n window is not met to the situation of the window of setting value, the embodiment of the present invention is when carrying out primary n window and dividing, with the coordinate figure of the visual boundary of the window of WindowsState object record, determine the boundary coordinate of visible display area, thus carry out window division; Carrying out after follow-up n at least one times window divide, the embodiment of the present invention determines the boundary coordinate of the first display window by the coordinate of determined each partition window; Window ranges as initial window is (0,0,360,720), after first time window division, suppose that the target window scope that user selects is (0,0,120,240), as setting value can not met by the number of objects that focus is chosen in this target window, then this target window scope (0,0,120,240) boundary coordinate of the first display window is; After further window division is carried out to this window ranges (0,0,120,240), middle window coordinates just become (40,80,80,160), namely it is that the window being (0,0,120,240) for scope carries out that follow-up window divides.
Step S410, determine the layout of a described n window, the boundary coordinate according to described first display window calculates the position, boundary line with described n window of described layout;
Optionally, determine that the mode of the layout of a described n window can be: according to the layout of a described n hardware button in hardware keyboards, determine the layout of a described n window at described first display window, as shown in Figure 2, the layout of digital keys with 1 ~ 9 in hardware keyboards, determines the layout of 9 divided windows at the first display window, wherein, the layout of each hardware button in hardware keyboards is corresponding to the layout of corresponding window on described first display window.
Optionally, determine that the mode of the layout of a described n window also can be: the setting according to n hardware button puts in order, determine n window putting in order on described first display window, the wherein tagmeme of each hardware button in described setting puts in order, corresponding to the tagmeme of corresponding window on described first display window; The QWERTYUIO button on international keyboard is chosen as n hardware button, then can to arrange the tagmeme of window corresponding with hardware button in n window in the first display window consistent with the tagmeme of corresponding hardware button for the embodiment of the present invention, Fig. 8 shows corresponding window and divides schematic diagram, reference can be carried out, as shown in Figure 8, the tagmeme of each window divided is consistent with the tagmeme of corresponding hardware button.
Obviously, the embodiment of the present invention determines that the mode of the layout of a described n window also can be carried out not in accordance with the layout of n hardware button, can arrange arbitrarily divided window and the corresponding relation of hardware button, as long as one_to_one corresponding; The division carrying out a described n window according to the layout of n hardware button is only a kind of optimal way.
Step S420, according to the position, boundary line of a determined n window, the first display window is divided into n window.
Optionally, the embodiment of the present invention can arrange prompt class; In order to the effect that user can be allowed on interface to see selection intuitively, the embodiment of the present invention can arrange new window prompting class.Such is embodied as a transparent floating frame, and function is by flashing the mode of boundary line on interface, prompting user current selected be which in divided n window, or point out the current object which can be chosen by focus of user selected.Concrete, the embodiment of the present invention after the window corresponding with described target hardware button of selection from a described n window is as target window, to selected described target window to flash the display mode of the boundary line of described target window, can be pointed out; After determining that the described object can chosen by focus is the alternative of focus, to the alternative of described focus to flash the display mode of the boundary line of the alternative of described focus, point out.
Already described above, the embodiment of the present invention can calculate the coordinate position of the object can chosen by focus in the first display window, determine the coordinate of the object can chosen by focus fallen within the scope of described target window, thus determine the quantity of the coordinate of the object can chosen by focus fallen within the scope of described target window, this quantity is the quantity of the object can chosen by focus in target window.Corresponding, Fig. 9 shows the method flow diagram that the embodiment of the present invention provides the quantity of the object can chosen by focus in the window that really sets the goal, and with reference to Fig. 9, the method can comprise:
Step S500, determine the object that can be chosen by focus in described first display window;
The object can determining in target window owing to not having function in terminal device, therefore the embodiment of the present invention is by after all listing all objects in the first display window, learns which object is in target window by calculating.
Step S510, calculate point coordinate in the object that respectively can be chosen by focus in described first display window;
Optionally, for android, each can be that a VIEW (it should be noted that VIEW is the call in android by the object that focus is chosen, perhaps, other system is not VIEW, such as may be widget, or object etc.), VIEW self has property value to identify the boundary coordinate of this VIEW, the boundary coordinate of this VIEW can save as (top, left, right, bottom); Corresponding, the account form of middle point coordinate is xmiddle=INT ((left+right)/2), ymiddle=INT ((top+bottom)/2.
Step S520, determine to be positioned at described target window scope, the quantity of point coordinate in the object can chosen by focus in described first display window;
By obtaining point coordinate in the object that respectively can be chosen by focus, the quantity of the point coordinate fallen within the scope of target window can be determined;
Step S530, determined quantity is defined as the quantity of the object can chosen by focus in described target window.
Can know have how many centre coordinates to fall within the scope of target window, then to how many objects should be had to be within the scope of target window; The quantity of the determined centre coordinate fallen within the scope of target window is the quantity of the object that target window can be chosen by focus.
It should be noted that the mode of the quantity utilizing the centre coordinate fallen within the scope of target window, determine that the quantity of the object can chosen by focus in described target window is only a kind of optional manner; The embodiment of the present invention, also by the scope of object and the overlapping region of target window scope, determines that the object with target window scope with overlapping region is the object be in target window; It should be noted that, the complexity of function calculating overlapping region is higher, therefore adopts the mode of centre coordinate comparatively easy, and compares and meet acceptable understanding form on most of user habit.
There is provided a kind of preferred focus system of selection below, the another process flow diagram of the focus system of selection that Figure 10 provides for the embodiment of the present invention, with reference to Figure 10, the method can comprise:
Step S600, operation first application, at the visible display area display window of the first application;
Step S610, determine the first display window;
First display window comprises the window (the first initial display window) of the visible display area display of the first application, or the quantity of the object can chosen by focus selected in the n a divided window does not meet the window (the first display window of non-initial) of setting value.
Step S620, determine the boundary coordinate of described first display window;
Step S630, according to setting the layout of n hardware button in hardware keyboards, determine the layout of n window in the first display window, boundary coordinate according to described first display window calculates the position, boundary line with described n window of described layout, and the first display window is divided into n window by the position, boundary line according to a determined n window;
The wherein layout of each hardware button in hardware keyboards, corresponding to the layout of corresponding window on the first display window, a corresponding window of hardware button;
Step S640, detect the target hardware button be triggered in a described n hardware button, from a described n window, select the window corresponding with described target hardware button as target window;
Step S650, determine the object that can be chosen by focus in described first display window;
Step S660, calculate point coordinate in the object that respectively can be chosen by focus in described first display window;
Step S670, determine to be positioned at described target window scope, the quantity of point coordinate in the object can chosen by focus in described first display window;
Step S680, judge whether described quantity meets setting value, if so, perform step S690, if not, perform step S700;
Step S690, determine that the object can chosen by focus in described target window is the alternative of focus;
Step S700, using described target window as the first display window, return step S610.
The quantity of the object can chosen by focus in target window does not meet setting value, is based upon the basis that the quantity of the object can chosen by focus in target window is non-vanishing; The quantity of the object can chosen by focus in determined target window is zero, then illustrate that user have selected the target window of mistake, user need carry out reselecting of target window, the embodiment of the present invention can particular hint mode point out current target window to be wrong target window, and turns back to the selection that the first display window prompting user re-starts target window.
The focus system of selection that the embodiment of the present invention provides is by n window of the corresponding first display window division of n hardware button of setting, by the operation to n hardware button, to realize the alternative of focus in n window be positioned at choosing of region, the fit that the selection of the operation and focus that improve hardware button operates, alleviate the loaded down with trivial details degree of user operation when carrying out focus and selecting, make user carry out the simple operation of focus selection.
Be introduced the terminal device that the embodiment of the present invention provides below, there is the part corresponding to above-described focus system of selection in terminal device described below, can mutual corresponding reference.
The structured flowchart of the terminal device that Figure 11 provides for the embodiment of the present invention, with reference to Figure 11, this terminal device can comprise:
First determination module 100, for determining the first display window;
Divide module 200, for described first display window being divided into n window according to n hardware button of setting, a corresponding window of hardware button;
Button detection module 300, for detecting the target hardware button be triggered in a described n hardware button;
Target window determination module 400, for selecting the window corresponding with described target hardware button as target window from a described n window;
Number of objects determination module 500, for determining the quantity of the object can chosen by focus in described target window;
Object of focus determination module 600, if meet setting value for the quantity of the object can chosen by focus in described target window, then determines that the described object can chosen by focus is the alternative of focus.
Optionally, Figure 12 shows a kind of alternate configurations of the first determination module 100, and with reference to Figure 12, this first determination module 100 can comprise:
Circulation determining unit 110, if for not met setting value by the number of objects that focus is chosen, then using described target window as the first display window in described target window.
Optionally, Figure 13 shows the another kind of alternate configurations of the first determination module 100, and with reference to Figure 13, this first determination module 100 can comprise:
Initial determining unit 120, for determining that the window of the visible display area being shown in the first application is the first display window, the window that described first display window has for the first application.
Optionally, Figure 14 shows another structured flowchart of the terminal device that the embodiment of the present invention provides, and shown in Figure 11 and Figure 14, this terminal device can also comprise:
First reminding module 700, for selected described target window to flash the display mode of the boundary line of described target window, point out;
Second reminding module 800, for the alternative of described focus to flash the display mode of the boundary line of the alternative of described focus, point out.
It should be noted that, above-described functional module can think the functional module framework that can realize the focus system of selection that the embodiment of the present invention provides being arranged at terminal device inside, and it can be arranged in the focus selecting arrangement that is installed in terminal device.
The fit that the selection of operation and focus that the terminal device that the embodiment of the present invention provides improves hardware button operates, alleviates the loaded down with trivial details degree of user operation when carrying out focus and selecting, makes user carry out the simple operation of focus selection.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Professional can also recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a focus system of selection, is characterized in that, comprising:
Determine the first display window;
Described first display window is divided into n window by n the hardware button according to setting, a corresponding window of hardware button;
Detect the target hardware button be triggered in a described n hardware button, from a described n window, select the window corresponding with described target hardware button as target window;
Determine the quantity of the object can chosen by focus in described target window;
If the quantity of the object can chosen by focus in described target window meets setting value, then determine that the described object can chosen by focus is the alternative of focus.
2. focus system of selection according to claim 1, is characterized in that, describedly determines that the first display window comprises:
If setting value can not met by the number of objects that focus is chosen, then using described target window as the first display window in described target window.
3. focus system of selection according to claim 1, is characterized in that, describedly determines that the first display window comprises:
Determine that the window of the visible display area being shown in the first application is the first display window, the window that described first display window has for the first application.
4. the focus system of selection according to any one of claim 1-3, is characterized in that, described first display window is divided into n window and comprises by described n the hardware button according to setting:
Determine the boundary coordinate of described first display window;
Determine the layout of a described n window, the boundary coordinate according to described first display window calculates the position, boundary line with described n window of described layout;
First display window is divided into n window by the position, boundary line according to a determined n window.
5. focus system of selection according to claim 4, is characterized in that, describedly determines that the layout of a described n window comprises:
According to the layout of a described n hardware button in hardware keyboards, determine the layout of a described n window at described first display window, wherein the layout of each hardware button in hardware keyboards, corresponding to the layout of corresponding window on described first display window.
6. focus system of selection according to claim 4, is characterized in that, describedly determines that the layout of a described n window comprises:
Setting according to a described n hardware button puts in order, determine a described n window putting in order on described first display window, the wherein tagmeme of each hardware button in described setting puts in order, corresponding to the tagmeme of corresponding window on described first display window.
7. focus system of selection according to claim 1, is characterized in that, select from a described n window window corresponding with described target hardware button as target window after, described method also comprises:
To selected described target window to flash the display mode of the boundary line of described target window, point out.
8. focus system of selection according to claim 1, is characterized in that, describedly determines that the quantity of the object can chosen by focus in described target window comprises:
Determine the object can chosen by focus in described first display window;
Calculate point coordinate in the object respectively can chosen by focus in described first display window;
Determine to be positioned at described target window scope, the quantity of point coordinate in the object can chosen by focus in described first display window;
Determined quantity is defined as the quantity of the object can chosen by focus in described target window.
9. focus system of selection according to claim 1, is characterized in that, after the object can chosen by focus described in determining is the alternative of focus, described method also comprises:
To the alternative of described focus to flash the display mode of the boundary line of the alternative of described focus, point out.
10. a terminal device, is characterized in that, comprising:
First determination module, for determining the first display window;
Divide module, for described first display window being divided into n window according to n hardware button of setting, a corresponding window of hardware button;
Button detection module, for detecting the target hardware button be triggered in a described n hardware button;
Target window determination module, for selecting the window corresponding with described target hardware button as target window from a described n window;
Number of objects determination module, for determining the quantity of the object can chosen by focus in described target window;
Object of focus determination module, if meet setting value for the quantity of the object can chosen by focus in described target window, then determines that the described object can chosen by focus is the alternative of focus.
CN201410719896.9A 2014-12-01 2014-12-01 Focus selection method and terminal device Pending CN104461240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410719896.9A CN104461240A (en) 2014-12-01 2014-12-01 Focus selection method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410719896.9A CN104461240A (en) 2014-12-01 2014-12-01 Focus selection method and terminal device

Publications (1)

Publication Number Publication Date
CN104461240A true CN104461240A (en) 2015-03-25

Family

ID=52907388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410719896.9A Pending CN104461240A (en) 2014-12-01 2014-12-01 Focus selection method and terminal device

Country Status (1)

Country Link
CN (1) CN104461240A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155516A (en) * 2015-04-28 2016-11-23 阿里巴巴集团控股有限公司 Operation button exhibiting method and equipment
CN111459582A (en) * 2019-01-22 2020-07-28 深圳市茁壮网络股份有限公司 Focus element processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060117272A1 (en) * 2004-11-30 2006-06-01 Sanyo Electric Co., Ltd. Display and display program
CN102375657A (en) * 2010-08-09 2012-03-14 晨星软件研发(深圳)有限公司 Display control device and method for controller to select display image interaction objects
CN103353897A (en) * 2013-07-23 2013-10-16 深圳市佳创软件有限公司 Method and device for webpage anchor point navigation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060117272A1 (en) * 2004-11-30 2006-06-01 Sanyo Electric Co., Ltd. Display and display program
CN102375657A (en) * 2010-08-09 2012-03-14 晨星软件研发(深圳)有限公司 Display control device and method for controller to select display image interaction objects
CN103353897A (en) * 2013-07-23 2013-10-16 深圳市佳创软件有限公司 Method and device for webpage anchor point navigation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155516A (en) * 2015-04-28 2016-11-23 阿里巴巴集团控股有限公司 Operation button exhibiting method and equipment
CN111459582A (en) * 2019-01-22 2020-07-28 深圳市茁壮网络股份有限公司 Focus element processing method and device

Similar Documents

Publication Publication Date Title
US11487426B2 (en) Apparatus and method for cursor control and text selection and editing based on gesture-based touch inputs received in a virtual keyboard display area
US11327649B1 (en) Facilitating selection of keys related to a selected key
JP6557213B2 (en) Page back
AU2017203910B2 (en) Glove touch detection
CN108064368A (en) The control method and device of flexible display device
CN108829314B (en) Screenshot selecting interface selection method, device, equipment and storage medium
CN104541239A (en) Text select and enter
US10802710B2 (en) System and method for inputting one or more inputs associated with a multi-input target
CN102272699A (en) Gesture detection zones
CN105824496A (en) Method for setting icon brightness based on use of users and mobile terminal
CN106293328A (en) Icon display method and device
CN103492981A (en) Touch screen selection
CN103955327B (en) Information processing method and electronic equipment
JP2011034216A (en) Selection object decision method, decision method for anteroposterior relation of object, and apparatus therefor
CN103389862A (en) Information processing apparatus, information processing method, and program
AU2014242161B2 (en) Off-center sensor target region
CN105468243A (en) Page returning method and page returning device
US20110316887A1 (en) Electronic device with a touch screen and touch operation control method utilized thereby
JP2015230693A (en) Information processing device, input method, computer program, and recording medium
CN104461240A (en) Focus selection method and terminal device
CN104978135A (en) Icon display method and device, and mobile terminal
CN110347327B (en) Item editing method and touch terminal
CN105653145A (en) Method and device for processing display object
CN105302466B (en) A kind of text operation method and terminal
US9635170B2 (en) Apparatus and method for controlling terminal to expand available display region to a virtual display space

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325

RJ01 Rejection of invention patent application after publication