# TextArea Behavior

## Key Bindings

|Key Combination|Platform|Function|
|---------------|--------|--------|
|ctrl-BACK_SLASH|linux, win|deselect|
|BACKSPACE| |delete previous char|
|alt-BACKSPACE|mac|delete previous word|
|ctrl-BACKSPACE|linux, win|delete previous word|
|shift-BACKSPACE| |delete previous char|
|shortcut-BACKSPACE|mac|delete from line start|
|COPY| |copy|
|CUT| |cut|
|DELETE| |delete next char|
|alt-DELETE|mac|delete next word|
|ctrl-DELETE|linux, win|delete next word|
|ctrl-shift-DIGIT9| |toggle the virtual keyboard (if supported)|
|DOWN| |**line down**|
|alt-DOWN|mac|**paragraph down**|
|alt-shift-DOWN|mac|**select paragraph down**|
|ctrl-DOWN|linux, win|**paragraph down**|
|ctrl-shift-DOWN|linux, win|**select paragraph down**|
|shift-DOWN| |**select line down**|
|shift-shortcut-DOWN|mac|**extend selection to document end**|
|shortcut-DOWN| |**move to document end**|
|END| |**line end**|
|shift-END| |**select to line end**|
|shortcut-END| |move to document end|
|shortcut-shift-END| |select to document end|
|ENTER| |**insert new line**|
|ESCAPE| |cancel edit (forwarded to the parent container)|
|HOME| |**line start**|
|shift-HOME| |**select to line start**|
|shift-shortcut-HOME| |select to document start|
|shortcut-HOME| |move to document start|
|shift-INSERT| |paste|
|shortcut-INSERT| |copy|
|LEFT| |previous character|
|alt-LEFT| |left word|
|alt-shift-LEFT|mac|select left word|
|ctrl-LEFT|linux, win|left word|
|ctrl-shift-LEFT|linux, win|select left word|
|shift-LEFT| |select left|
|shift-shortcut-LEFT|mac|**select to line start**|
|shortcut-LEFT|mac|**move to line start**|
|PAGE_DOWN| |**page down**|
|shift-PAGE_DOWN| |**select page down**|
|PAGE_UP| |**page up**|
|shift-PAGE_UP| |**select page up**|
|PASTE| |paste|
|RIGHT| |next character|
|alt-RIGHT|mac|right word|
|alt-shift-RIGHT|mac|select right word|
|ctrl-RIGHT|linux, win|right word|
|ctrl-shift-RIGHT|linux, win|select right word|
|shift-RIGHT| |select right|
|shift-shortcut-RIGHT|mac|**select to line end**|
|shortcut-RIGHT|mac|**move to line end**|
|TAB| |**insert tab**|
|ctrl-TAB| |focus next|
|ctrl-shift-TAB| |focus previous|
|shift-TAB| |focus previous|
|UP| |**line up**|
|alt-UP|mac|**paragraph up**|
|alt-shift-UP|mac|**select paragraph up**|
|ctrl-UP|linux, win|**paragraph up**|
|ctrl-shift-UP|linux, win|**select paragraph up**|
|shift-UP| |**select line up**|
|shift-shortcut-UP|mac|**extend selection to document start**|
|shortcut-UP|mac|**move to document start**|
| | |  |
|shortcut-A| |select all|
|shortcut-C| |copy|
|ctrl-H|linux, win|delete previous char|
|shortcut-V| |paste|
|shortcut-X| |cut|
|ctrl-Y|win|redo|
|ctrl-shift-Z|linux|redo|
|shift-shortcut-Z|mac|redo|
|shortcut-Z| |undo|


Notes:

1. Base class mappings modified by the TextArea class are highlighted in bold.
2. On Mac, alt is represented by the Option key.
3. On Mac, shortcut is represented by the Command key.
