Editbox
   HOME

TheInfoList



OR:

type=search placeholder=An example text box, which can be used to search the English Wikipedia. A text box (input box), text field or text entry box is a control element of a
graphical user interface The GUI ( "UI" by itself is still usually pronounced . or ), graphical user interface, is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, inste ...
, that should enable the user to input text information to be used by a program. Human Interface Guidelines recommend a single-line text box when only one line of input is required, and a multi-line text box only if more than one line of input may be required. Non-editable text boxes can serve the purpose of simply displaying text. A typical text box is a rectangle of any size, possibly with a border that separates the text box from the rest of the interface. Text boxes may contain zero, one, or two
scrollbar A scrollbar is an interaction technique or widget in which continuous text, pictures, or any other content can be scrolled in a predetermined direction (up, down, left, or right) on a computer display, window, or viewport so that all of the con ...
s. Text boxes usually display a
text cursor In human–computer interaction, a cursor is an indicator used to show the current position on a computer monitor or other display device that will respond to input from a text input or pointing device. The mouse cursor is also called a Pointer ...
(commonly a blinking vertical line), indicating the current region of text being edited. It is common for the
mouse A mouse ( : mice) is a small rodent. Characteristically, mice are known to have a pointed snout, small rounded ears, a body-length scaly tail, and a high breeding rate. The best known mouse species is the common house mouse (''Mus musculus' ...
cursor Cursor may refer to: * Cursor (user interface), an indicator used to show the current position for user interaction on a computer monitor or other display device * Cursor (databases), a control structure that enables traversal over the records in ...
to change its shape when it hovers over a text box.


Standard functionality

Typical implementations allow a user to do the following: * Type in text using a keyboard ** When keys are pressed, the text appears where the caret is. Some very simple text boxes may not show a caret, which would suggest that new characters typed in will appear at the end of the current text. * Navigate and select portions of text ** Using a mouse: *** Change the caret position by clicking the desired point with a mouse cursor; *** Select a portion of text by pressing the main mouse button while pointing the cursor at one end of the desired part of the text and dragging the cursor to the other end while holding the button pressed. ** Using the keyboard: *** Pressing
arrow keys Arrow keys or cursor movement keys are buttons on a computer keyboard that are either programmed or designated to move the cursor (computers), cursor in a specified direction. The term "cursor movement key" is distinct from "arrow key" in that ...
changes caret position by one character or line (in multiline text boxes); *** Pressing Home / End keys ( Microsoft's Windows OS) or
Command Command may refer to: Computing * Command (computing), a statement in a computer language * COMMAND.COM, the default operating system shell and command-line interpreter for DOS * Command key, a modifier key on Apple Macintosh computer keyboards * ...
-left arrow / Command-right arrow (
Apple An apple is an edible fruit produced by an apple tree (''Malus domestica''). Apple fruit tree, trees are agriculture, cultivated worldwide and are the most widely grown species in the genus ''Malus''. The tree originated in Central Asia, wh ...
's
Mac OS Two major famlies of Mac operating systems were developed by Apple Inc. In 1984, Apple debuted the operating system that is now known as the "Classic" Mac OS with its release of the original Macintosh System Software. The system, rebranded "M ...
) moves the caret to the beginning / end of the line; *** Pressing Page Up / Down moves the caret a page (the number of lines that can be displayed in the text box at a time) backward / forward (Windows) or moves the
scrollbar A scrollbar is an interaction technique or widget in which continuous text, pictures, or any other content can be scrolled in a predetermined direction (up, down, left, or right) on a computer display, window, or viewport so that all of the con ...
thumb a page backward / forward without changing the caret position (Mac OS); *** Holding the
Ctrl In computing, a Control key is a modifier key which, when pressed in conjunction with another key, performs a special operation (for example, ); similar to the Shift key, the Control key rarely performs any function when pressed by itself. ...
key (Windows) while pressing arrow keys or Home / End keys makes the caret move at larger steps, e.g. words, paragraphs or beginning / end of document; *** Holding the
Option key The Option key, , is a modifier key present on Apple keyboards. It is located between the Control key and Command key on a typical Mac keyboard. There are two Option keys on modern (as of 2020) Mac desktop and notebook keyboards, one on each si ...
(Mac OS) while pressing arrows moves the caret whole words or paragraphs; *** Holding the
Command key The Command key (sometimes abbreviated as Cmd key), , formerly also known as the Apple key or open Apple key, is a modifier key present on Apple keyboards. The Command key's purpose is to allow the user to enter keyboard commands in applicati ...
while pressing up or down arrows (Mac OS) or Holding the Ctrl key while pressing home / end (Windows) moves the caret to the beginning or end of the document; *** Holding the
shift key The Shift key is a modifier key on a keyboard, used to type capital letters and other alternate "upper" characters. There are typically two shift keys, on the left and right sides of the row below the home row. The Shift key's name originated f ...
while changing the caret position with a mouse or keyboard selects the text between the caret position from when shift was first pressed and its current position. *** Pressing Control-A, Ctrl+A (Windows) selects all text. * Edit the text (enable changing the text already entered) ** Work in insert or overwrite mode, typically switched using
Insert key The Insert key (often abbreviated Ins) is a key commonly found on computer keyboards. It is primarily used to switch between the two text-entering modes on a personal computer (PC) or word processor: * overtype mode, in which the cursor, when ...
. In insert mode if there is a character to the right of the caret, the new character will be inserted before it, while in overwrite mode typing a new character will replace (overwrite) the character to the right of the caret position. ** Typing in a text while some part of the text already entered is selected will replace the selected text. ** Delete /
Backspace Backspace () is the keyboard key that originally pushed the typewriter carriage one position backwards and in modern computer systems moves the display cursor one position backwards,"Backwards" means to the left for left-to-right languages. delete ...
keys remove one character right / left of current caret position, while pressing them together with the Ctrl or command key removes one word. ** Edit the text using standard
clipboard A clipboard is a thin, rigid board with a clip at the top for holding paper in place. A clipboard is typically used to support paper with one hand while writing on it with the other, especially when other writing surfaces are not available. Th ...
operations. *
Undo Undo is an interaction technique which is implemented in many computer programs. It erases the last change done to the document, reverting it to an older state. In some more advanced programs, such as graphic processing, undo will negate the las ...
/
Redo Undo is an interaction technique which is implemented in many computer programs. It erases the last change done to the document, reverting it to an older state. In some more advanced programs, such as graphic processing, undo will negate the las ...
changes with Ctrl+Z / Ctrl+Y (Windows) or command-Z / command-shift-Z (Mac OS) The keys indicated relate to the text box widgets in Microsoft Windows and Mac OS X; similar if not identical keyboard bindings exist under the
X Window System The X Window System (X11, or simply X) is a windowing system for bitmap displays, common on Unix-like operating systems. X provides the basic framework for a GUI environment: drawing and moving windows on the display device and interacting wit ...
and other systems, and typically follow the same scheme as Windows.


References

{{Graphical control elements Graphical control elements