diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2008-04-22 23:33:17 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2008-04-22 23:33:17 +0000 |
| commit | 8198e51799ba715d27e82b276b93cb39918d3361 (patch) | |
| tree | b21114724d43324e86450d6d43ca56527b14ff7c /documentation | |
| parent | 6a143b1f61533c03ef20a8f2b82d2c90180055bc (diff) | |
Added support for keyboard shortcuts to Fl_Input_ derived widgets (STR #1770). Code added for Fluid. Documentation updated.
This commit must be considered partial because there is no shortcut handling for Fl_Text_Display derived widgets or Fl_Value_Input which is derived form Fl_Valuator.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/Fl_Input_.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/documentation/Fl_Input_.html b/documentation/Fl_Input_.html index 9b7fb34ed..0c6c8fe7b 100644 --- a/documentation/Fl_Input_.html +++ b/documentation/Fl_Input_.html @@ -87,6 +87,7 @@ setting <TT>type()</TT> to one of the following values:</P> </UL> </TD><TD align="left" valign="top"> <UL> +<LI><A href="#Fl_Input_.shortcut">shortcut</A></LI> <LI><A href="#Fl_Input_.undo">undo</A></LI> <LI><A href="#Fl_Input_.up_down_position">up_down_position</A></LI> <LI><A href="#Fl_Input_.wrap">wrap</A></LI> @@ -255,6 +256,23 @@ information to the clipboard. This is used to make ^K work. <P>Gets or sets the read-only state of the input field. +<H4><A name="Fl_Input_.shortcut">ulong Fl_Input_::shortcut() const +<BR> void Fl_Input_::shortcut(ulong key)</A></H4> + The first form returns the current shortcut key for the Input. +<P>The second form sets the shortcut key to <TT>key</TT>. Setting this +overrides the use of '&' in the <TT>label()</TT>. The value is a bitwise +OR of a key and a set of shift flags, for example <CODE>FL_ALT | 'a'</CODE> +, <CODE>FL_ALT | (FL_F + 10)</CODE>, or just <CODE>'a'</CODE>. A value +of 0 disables the shortcut. </P> +<P>The key can be any value returned by <A href="Fl.html#Fl.event_key"> +<TT>Fl::event_key()</TT></A>, but will usually be an ASCII letter. Use +a lower-case letter unless you require the shift key to be held down. </P> +<P>The shift flags can be any set of values accepted by <A href="Fl.html#Fl.event_state"> +<TT>Fl::event_state()</TT></A>. If the bit is on that shift key must +be pushed. Meta, Alt, Ctrl, and Shift must be off if they are not in +the shift flags (zero for the other bits indicates a "don't care" +setting). </P> + <H4><A name="Fl_Input_.wrap">int Fl_Input_::wrap() const <BR>void Fl_Input_::wrap(int)</A></H4> |
