Text box

Last updated
A text entry box Textbox2.gif
A text entry box
A multi-line "textarea" text box in a web browser Textarea text entry box.png
A multi-line "textarea" text box in a web browser

A text box also called an input box, text field or text entry box, is a control element of a graphical user interface, that should enable the user to input text information to be used by a program. [1] [2] 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.

Contents

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 scrollbars. Text boxes usually display a text cursor (commonly a blinking vertical line), indicating the current region of text being edited. It is common for the mouse cursor to change its shape when it hovers over a text box.

Standard functionality

Typical implementations allow a user to do the following. (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 and other systems, and typically follow the same scheme as Windows.)

Enter text

When keys are pressed on a keyboard, 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.

Using a mouse:

Using the keyboard:

Edit text

Work in insert or overwrite mode, typically switched using Insert key . 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 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 operations.

Edits can be undone and redone with Ctrl+Z / Ctrl+Y (Windows) or ⌘ Command+Z / ⌘ Command+⇧ Shift+Z (Mac OS)

References and notes

    1. "What does text box mean?". www.definitions.net. Retrieved 2020-08-08.
    2. "Text Box Definition". techterms.com. Retrieved 2020-08-08.

    Related Research Articles

    <span class="mw-page-title-main">Scroll Lock</span> Computer key

    Scroll Lock is a lock key on most IBM-compatible computer keyboards. Depending on the operating system, it may be used for different purposes, and applications may assign functions to the key or change their behavior depending on its toggling state. The key is not frequently used, and therefore some reduced or specialized keyboards lack Scroll Lock altogether.

    <span class="mw-page-title-main">Scrollbar</span> Graphical user interface element

    A scrollbar is an interaction technique or widget in which continuous text, pictures, or any other content can be scrolled in a predetermined direction on a computer display, window, or viewport so that all of the content can be viewed, even if only a fraction of the content can be seen on a device's screen at one time. It offers a solution to the problem of navigation to a known or unknown location within a two-dimensional information space. It was also known as a handle in the very first GUIs. They are present in a wide range of electronic devices including computers, graphing calculators, mobile phones, and portable media players. The user interacts with the scrollbar elements using some method of direct action, the scrollbar translates that action into scrolling commands, and the user receives feedback through a visual updating of both the scrollbar elements and the scrolled content.

    Cut, copy, and paste are essential commands of modern human–computer interaction and user interface design. They offer an interprocess communication technique for transferring data through a computer's user interface. The cut command removes the selected data from its original position, and the copy command creates a duplicate; in both cases the selected data is kept in temporary storage called the clipboard. Clipboard data is later inserted wherever a paste command is issued. The data remains available to any application supporting the feature, thus allowing easy data transfer between applications.

    <span class="mw-page-title-main">Control key</span> Key on computer keyboards

    In computing, a Control keyCtrl is a modifier key which, when pressed in conjunction with another key, performs a special operation. Similarly to the Shift key, the Control key rarely performs any function when pressed by itself. The Control key is located on or near the bottom left side of most keyboards, with many featuring an additional one at the bottom right.

    <span class="mw-page-title-main">Tab key</span> Key on a keyboard for tabulation

    The tab keyTab ↹ on a keyboard is used to advance the cursor to the next tab stop.

    <span class="mw-page-title-main">Keyboard shortcut</span> Assignments for computer keyboard keys

    In computing, a keyboard shortcut is a software-based assignment of an action to one or more keys on a computer keyboard. Most operating systems and applications come with a default set of keyboard shortcuts, some of which may be modified by the user in the settings.

    <span class="mw-page-title-main">Shift key</span> Key on typewriter or computer keyboard

    The Shift key⇧ Shift 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 from the typewriter, where one had to press and hold the button to shift up the case stamp to change to capital letters; the Shift key was first used in the Remington No. 2 Type-Writer of 1878; the No. 1 model was capital-only. On the US layout and similar keyboard layouts, characters that typically require the use of the Shift key include the parentheses, the question mark, the exclamation point, and the colon.

    <span class="mw-page-title-main">Alt key</span> Computer key

    The Alt keyAlt on a computer keyboard is used to change (alternate) the function of other pressed keys. Thus, the Alt key is a modifier key, used in a similar fashion to the Shift key. For example, simply pressing A will type the letter 'a', but holding down the Alt key while pressing A will cause the computer to perform an Alt+A function, which varies from program to program. The international standard ISO/IEC 9995-2 calls it Alternate key. The key is located on either side of the space bar, but in non-US PC keyboard layouts, rather than a second Alt key, there is an 'Alt Gr' key to the right of the space bar. Both placements are in accordance with ISO/IEC 9995-2. With some keyboard mappings, the right Alt key can be reconfigured to function as an AltGr key although not engraved as such.

    <span class="mw-page-title-main">Backspace</span> Key on a keyboard

    Backspace is the keyboard key that in typewriters originally pushed the carriage one position backwards, and in modern computer systems typically moves the display cursor one position backwards, deletes the character at that position, and shifts back any text after that position by one character.

    <span class="mw-page-title-main">Arrow keys</span> Set of keys on a typical computer keyboard

    Arrow keys or cursor movement keys are keys on a computer keyboard that are either programmed or designated to move the cursor in a specified direction.

    <span class="mw-page-title-main">Option key</span> Modifier key present on Apple keyboards

    The Option key, , is a modifier key present on Apple keyboards. It is located between the Control key and the Command key on a typical Mac keyboard. There are two Option keys on modern Mac desktop and notebook keyboards, one on each side of the space bar.

    In computing, caret navigation is a kind of keyboard navigation where a caret is used to navigate within a text document.

    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, such as a text cursor or a mouse pointer.

    <span class="mw-page-title-main">Insert key</span> Computer keyboard key

    The Insert keyInsert is a key commonly found on computer keyboards.

    On personal computers with numeric keypads that use Microsoft operating systems, such as Windows, many characters that do not have a dedicated key combination on the keyboard may nevertheless be entered using the Alt code. This is done by pressing and holding the Alt key, then typing a number on the keyboard's numeric keypad that identifies the character and then releasing Alt.

    Alt+Tab ↹ is the common name for a keyboard shortcut that has been in Microsoft Windows since Windows 1.0 (1985). This shortcut switches between application-level windows without using the mouse; hence it was named Task Switcher.

    <span class="mw-page-title-main">Hebrew keyboard</span> Keyboard layout

    A Hebrew keyboard comes in two different keyboard layouts. Most Hebrew keyboards are bilingual, with Latin characters, usually in a US Qwerty layout. Trilingual keyboard options also exist, with the third script being Arabic or Russian, due to the sizable Arabic- and Russian-speaking populations in Israel.

    <span class="mw-page-title-main">Home key</span> Computer keyboard key

    The Home key is commonly found on desktop and laptop keyboards. The key has the opposite effect of the End key. In limited-size keyboards where the Home key is missing the same functionality can be reached via the key combination of Fn+.

    <span class="mw-page-title-main">End key</span> Computer keyboard key

    The End key is a key commonly found on desktop and laptop keyboards. The key has the opposite effect of the Home key. In some limited-size keyboards where the End key is missing the same functionality can be reached via the key combination of Fn+ or Control + End keys

    <span class="mw-page-title-main">Computer keyboard</span> Data input device

    A computer keyboard is a peripheral input device modeled after the typewriter keyboard which uses an arrangement of buttons or keys to act as mechanical levers or electronic switches. Replacing early punched cards and paper tape technology, interaction via teleprinter-style keyboards have been the main input method for computers since the 1970s, supplemented by the computer mouse since the 1980s.