Focus (computing)

Focus (computing)

In computing, the focus indicates the component of the graphical user interface which is currently selected to receive input. Text entered at the keyboard or pasted from a clipboard is sent to the component which currently has the focus. Moving the focus away from a specific user interface element is known as a blur event in relation to this element. Typically, the focus is withdrawn from an element by giving another element the focus. This means that focus and blur events typically both occur virtually simultaneously, but in relation to different user interface elements, one that gets the focus and one that gets blurred.

The concept is similar to a cursor in a text-based environment. However, when considering a graphical interface, there is also a mouse cursor involved. Moving the mouse will typically move the mouse cursor without changing the focus. The focus can usually be changed by clicking on a component that can receive focus with the mouse. Many desktops also allow the focus to be changed with the keyboard. By convention, the tab key is used to move the focus to the next focusable component and shift + tab to the previous one. When graphical interfaces were first introduced, many computers did not have mice, so this alternative was necessary. This feature makes it easier for people that have a hard time using a mouse to use the user interface. In certain circumstances, the arrow keys can also be used to move focus.

Read more about Focus (computing):  Intra-window Component Focus

Famous quotes containing the word focus:

    I don’t have any doubts that there will be a place for progressive white people in this country in the future. I think the paranoia common among white people is very unfounded. I have always organized my life so that I could focus on political work. That’s all I want to do, and that’s all that makes me happy.
    Hettie V., South African white anti-apartheid activist and feminist. As quoted in Lives of Courage, ch. 21, by Diana E. H. Russell (1989)