The invention relates to an electronic device and to enhancing the viewing documents in an electronic device, wherein documents comprising several elements capable of obtaining focus are displayed on a display.
Many electronic devices comprising a display are used to view documents. The devices may be used to execute applications which display many kinds of documents on the display of the device. The documents may comprise many elements, some of which may be links to other parts of the document or to another document. An example of such an application is a web browser which displays web documents.
Elements in a document may be so-called focus elements. A focus element is capable of obtaining focus. Focus refers to a property of a display element. The element having focus receives the keyboard commands given by the user. In many cases, a cursor is shown on the screen surrounding or underlining the element having focus. This way the user knows which element has focus. Changing focus from one element to another may be done using a keyboard, for instance by pressing a given key, such as a tabulator or an arrow key. Displaying a focus element also facilitates document scrolling by moving the focus element over the edge of the browser area.
Typically, when a new document is displayed on the display, no element has focus. When the user presses a key reserved for focus selection, focus is typically given to the first element capable of obtaining focus, starting from the top left corner of the document.
The solution for giving focus to the first element of a document is not ideal for navigating the document with keys. In many cases, especially when the document is a web page, the user wishes to set focus to the last focusable element of the document, not to the first. In order to change focus to the wanted element, or to scroll the document by moving the focus over the edge of the display, the user must in almost every situation move focus across each individual focusable element on the document with several key presses. Especially in limited-resource devices, such as mobile phones or personal digital assistants (PDA), moving focus across multiple elements on the display may be quite slow, and more intelligent mechanisms of focus setting and behaviour are required.
An object of the invention is to provide an improved solution for enhancing document viewing in an electronic device. According to an aspect of the invention, there is provided a method of enhancing document viewing in an electronic device, wherein a document comprising several elements capable of obtaining focus is displayed on a display of the device. The method comprises defining a predetermined number of focus nodes on the display; associating each focus node with a predetermined key press; detecting a key press; selecting a focus node on the basis of the key press; determining the element capable of obtaining focus, which is closest to the selected focus node; and setting focus to the determined element.
According to another aspect of the invention, there is provided an electronic device, comprising a display, a keyboard, and a controller operationally connected to the keyboard and the display, wherein the controller is configured to display on the display a document comprising several elements capable of obtaining focus. The controller is further configured to define a pre-determined number of focus nodes on the display, associate each focus node with a press of a predetermined key of the keyboard, detect a press of a key of the keyboard, select a focus node on the basis of the detected key press, determine the element capable of obtaining focus, which is closest to the selected focus node, and set focus to the determined element.
According to another aspect of the invention, there is provided a computer program product encoding a computer program of instructions for executing a computer process for enhancing document viewing in an electronic device, wherein a document comprising several elements capable of obtaining focus is displayed on a display of the device, the process comprising: defining a predetermined number of focus nodes on the display, associating each focus node with a predetermined key press, detecting a key press, selecting a focus node on the basis of the key press, determining the element capable of obtaining focus, which is closest to the selected focus node, and setting focus to the determined element.
According to yet another aspect of the invention, there is provided a computer program distribution medium readable by a computer and encoding a computer program of instructions for executing a computer process for enhancing document viewing in an electronic device, wherein a document comprising several elements capable of obtaining focus is displayed on a display of the device, the process comprising: defining a predetermined number of focus nodes on the display, associating each focus node with a predetermined key press, detecting a key press, selecting a focus node on the basis of the key press, determining the element capable of obtaining focus, which is closest to the selected focus node, and setting focus to the determined element.
The invention provides several advantages. The invention enhances document viewing especially in devices in which a keyboard is the main input device and where a mouse is not necessarily utilised.
For example, when browsing a web page, scrolling a page is the most common user action, since typically a part or most of the web page is outside the visible web page window. Prior-art solutions require that a user move focus over the whole visible web page area in order to scroll with a single hard key, or press a rather strange combination of direction keys to achieve this kind of scrolling. This usually requires several key presses.
The presented solution allows a user quickly to set focus to a certain web page window area and to scroll the web page with a minimum number (usually two) of key presses and with a single hardware key. Furthermore, in the presented solution, the position where focus will be on the screen is more consistent with user expectations than with the prior-art solutions. Also, the average distance to reach any link element on the screen after focus setting is shorter than with the prior-art solutions, i.e. fewer key presses are required to reach an element.
In the following, the invention will be described in greater detail with reference to the embodiments and the accompanying drawings, in which
With reference to
In an embodiment of
The electronic device is not restricted to the above example. The electronic device may be a personal computer, a personal digital assistant, terminal equipment or any other device comprising a display, keyboard and means to display documents on the display.
With reference to the flowchart of
In step 202, a predetermined number of focus nodes are defined on the display. In an embodiment, the focus nodes are defined in the area of the display where the document is shown. The area may be the area of the display used by the application. In an embodiment, the area is the client area of the application displaying the document on the display. The client area is the application content area within the application window. The application window is the area used by the application on the display, and the client area is the area within the application window reserved for displaying the document.
In step 204, the focus nodes are associated with a predetermined key press. Assume that four nodes are defined in step 202, the nodes being in the top, left, bottom and right section of the display. In step 204, the four nodes are associated with the up, left, down and right arrow keys, for example. Arrow or direction keys are typically suitable for associations, but it is naturally possible to associate any key of the keyboard with any node.
It should be noted that the above steps may also be performed in a different order. The steps 202 and 204 may be performed prior to the step 200 of displaying any document on the display.
In step 206, it is checked whether a key with an association has been pressed. If this is the case, a focus node is selected on the basis of the detected key press in step 208.
In step 210, the element capable of obtaining focus that is closest to the selected focus node is determined. The search for the closest element may be done for instance by calculating the distance from the nearest edge and centre points of elements to the selected node and selecting the element with the shortest distance. There are also other ways of implementing the search, as person skilled in the art is aware.
In step 212, the focus is set to the determined element.
Navigating a document such as a web page, with the keys of a keyboard is usually done with the four arrow or direction keys. In an embodiment of the invention, these arrow keys are used to insert focus to a certain area of the document window. When entering a document, focus is by default not in any particular focus element in the document. The user sets one focus element to be active by pressing a key. According to what key the user has pressed, the starting point of focus is up, down, left, or right on the view.
In the example of
In the case of
Node 336 is defined at the intersection above the centre of the display, node 338 is defined at the intersection left to the centre of the display, node 340 is defined at the intersection below the centre of the display, and node 342 is defined at the intersection right to the centre of the display.
Referring to
Referring to the example of
It should be noted that the focus nodes may also be defined without the help of lines 344 to 348 and 350 to 354 and their intersections. If segments are utilised, their number may naturally be other than 16.
In some embodiments, an application may utilise frames when displaying documents. When frames are utilised, the client area of an application window is divided into two or more individually scrollable regions.
The embodiments of the invention may be realized in an electronic device, comprising a display, a keyboard, and a controller operationally connected to the keyboard and the display, for example. The controller may be configured to perform the steps described in connection with the flowchart of
The computer program may be stored on a computer program distribution medium readable by a computer or a processor. The computer program medium may be, for example, but not limited to, an electric, magnetic, optical, infrared, or semiconductor system, device, or transmission medium. The medium may be a computer-readable medium, a program storage medium, a record medium, a computer-readable memory, a random access memory, an erasable programmable read-only memory, a computer-readable software distribution package, a computer-readable signal, a computer-readable telecommunications signal, and a computer-readable compressed software package.
Even though the invention is described above with reference to an example according to the accompanying drawings, it is clear that the invention is not restricted thereto but can be modified in several ways within the scope of the appended claims.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/FI2005/050258 | 6/30/2005 | WO | 00 | 12/20/2007 |