Shift down

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 6.0


Shift down Boolean

ParameterTypeDescription
This command does not require any parameters
Function resultBooleanState of the Shift key

Description

Shift down returns TRUE if the Shift key is pressed.

Example

The following object method for the button bAnyButton performs different actions, depending on which modifier keys are pressed when the button is clicked:

      ` bAnyButton Object Method
   Case of
            ` Other multiple key combinations could be tested here
            ` ...
      : (Shift down & Windows Ctrl down)
            ` Shift and Windows Ctrl (or Macintosh Command) keys are pressed
         DO ACTION1
            ` ...
      : (Shift down)
            ` Only Shift key is pressed
         DO ACTION2
            ` ...
      : (Windows Ctrl down)
            ` Only Windows Ctrl (or Macintosh Command) key is pressed
         DO ACTION3
            ` ...
            ` Other individual keys could be tested here
            ` ...
   End case

See Also

Caps lock down, Macintosh command down, Macintosh control down, Macintosh option down, Windows Alt down, Windows Ctrl down.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next