Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Focus (computing)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|The active GUI component receiving input}} In a [[computing]] [[graphical user interface]] (GUI), a component has '''focus''' when it is selected to receive input from the user by an event such as a mouse button click or keypress.<ref>{{cite web | title=Managing UI Component Focus - Concept of Focus| website=Enlightenment| url=https://www.enlightenment.org/develop/legacy/program_guide/focus_ui_pg#Concept_of_Focus | access-date=4 June 2023}}</ref> Moving the focus away from a specific user interface element is known as a '''blur''' event in relation to this element.<ref>{{cite web | title=Javascript Window Blur() and Window Focus() Method|first=Naman|last=Garg| website=GeeksforGeeks | date=12 October 2018 | url=https://www.geeksforgeeks.org/javascript-window-blur-and-window-focus-method/ | access-date=4 June 2023}}</ref> Typically, the focus is withdrawn from an element by giving another element the focus. This means that focus and blur [[Event (computing)|events]] are virtually simultaneous in relation to different user interface elements, one that becomes focused and one that is "blurred" (in the computing, not visual, sense). The concept is similar to a [[Cursor (user interface)|cursor]] in a text-based environment. However, when considering a graphical interface, there is also a [[mouse pointer]] involved. Moving the mouse will typically move the mouse pointer without changing the focus. The focus can usually be changed by clicking on a component that can receive focus with the mouse. Many [[Desktop environment|desktops]] also allow the focus to be changed with the keyboard. By convention, the [[Tab key|{{key press|Tab}}]] key is used to move the focus to the next focusable component and [[Shift key|{{key press|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 [[Computer accessibility|people unable to use a mouse]] to use the user interface. In certain circumstances the [[arrow keys]] can be used to change focus.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)