diff --git a/FL/Fl_Input.H b/FL/Fl_Input.H index 10b0882df..9e5550cbb 100644 --- a/FL/Fl_Input.H +++ b/FL/Fl_Input.H @@ -44,57 +44,225 @@ Characters can be input using the keyboard or the character palette/map. Character composition is done using dead keys and/or a compose key as defined by the operating system. -
- -Mouse button 1 | Moves the cursor to - this point. Drag selects characters. Double click selects words. - Triple click selects all text. Shift+click extends the selection. - When you select text it is automatically copied to the clipboard. - |
Mouse button 2 | Insert the clipboard at - the point clicked. You can also select a region and replace it with the - clipboard by selecting the region with mouse button 2. - |
Mouse button 3 | Currently acts like button 1. |
Backspace | Deletes one character to the left, or - deletes the selected region. |
Enter | May cause the callback, see when(). |
^A or Home | Go to start of line. |
^B or Left | Move left |
^C | Copy the selection to the clipboard |
^D or Delete | Deletes one character to the right - or deletes the selected region. |
^E or End | Go to the end of line. |
^F or Right | Move right |
^K | Delete to the end of line (next \\n character) - or deletes a single \\n character. These deletions are all concatenated - into the clipboard. |
^N or Down | Move down (for Fl_Multiline_Input - only, otherwise it moves to the next input field). |
^P or Up | Move up (for Fl_Multiline_Input only, - otherwise it moves to the previous input field). |
^U | Delete everything. |
^V or ^Y | Paste the clipboard |
^X or ^W | Copy the region to the clipboard and - delete it. |
^Z or ^_ | Undo. This is a single-level undo - mechanism, but all adjacent deletions and insertions are concatenated - into a single "undo". Often this will undo a lot more than you - expected. |
Shift+move | Move the cursor but also extend the - selection. |
+
+ Mouse button 1 + | + Moves the cursor to this point. + Drag selects characters. + Double click selects words. + Triple click selects all text. + Shift+click extends the selection. + When you select text it is automatically copied to the clipboard. + |
+ Mouse button 2 + | + Insert the clipboard at the point clicked. + You can also select a region and replace it with the clipboard + by selecting the region with mouse button 2. + |
+ Mouse button 3 + | + Currently acts like button 1. + |
+ Backspace + | + Deletes one character to the left, or deletes the selected region. + |
+ Delete + | + Deletes one character to the right, or deletes the selected region. + Combine with Shift for equivalent of ^X (copy+cut). + |
+ Enter + | + May cause the callback, see when(). + |
+ +
Windows/Linux | +Mac | +Function | + +
^A | +Command-A | ++ Selects all text in the widget. + + |
^C | +Command-C | ++ Copy the current selection to the clipboard. + + |
^I | +^I | ++ Insert a tab. + + |
^J | +^J | +
+ Insert a Line Feed. + (Similar to literal 'Enter' character) + + |
^L | +^L | ++ Insert a Form Feed. + + |
^M | +^M | ++ Insert a Carriage Return. + + |
^V, Shift-Insert |
+ Command-V | +
+ Paste the clipboard. + (Macs keyboards don't have "Insert" keys, + but if they did, Shift-Insert would work) + + |
^X, Shift-Delete |
+ Command-X, Shift-Delete |
+
+ Cut. + Copy the selection to the clipboard and delete it. + (If there's no selection, Shift-Delete acts like Delete) + + |
^Z | +Command-Z | +
+ Undo. + This is a single-level undo mechanism, but all adjacent + deletions and insertions are concatenated into a single "undo". + Often this will undo a lot more than you expected. + + |
Shift-^Z | +Shift-Command-Z | +
+ Redo. + Currently same behavior as ^Z. + Reserved for future multilevel undo/redo. + + |
Arrow Keys | +Arrow Keys | +
+ Standard cursor movement. + Can be combined with Shift to extend selection. + + |
Home | + Command-Up, Command-Left |
+
+ Move to start of line. + Can be combined with Shift to extend selection. + + |
End | + Command-Down, Command-Right |
+
+ Move to end of line. + Can be combined with Shift to extend selection. + + |
Ctrl-Home | +Command-Up, Command-PgUp, Ctrl-Left |
+
+ Move to top of document/field. + In single line input, moves to start of line. + In multiline input, moves to start of top line. + Can be combined with Shift to extend selection. + + |
Ctrl-End | + Command-End, Command-PgDn, Ctrl-Right |
+
+ Move to bottom of document/field. + In single line input, moves to end of line. + In multiline input, moves to end of last line. + Can be combined with Shift to extend selection. + + |
Ctrl-Left | +Alt-Left | +
+ Word left. + Can be combined with Shift to extend selection. + + |
Ctrl-Right | +Alt-Right | +
+ Word right. + Can be combined with Shift to extend selection. + + |
Ctrl-Backspace | +Alt-Delete, Alt-Backspace | ++ Delete word left. + + |
Ctrl-Delete | +Alt-Delete | ++ Delete word right. + + |