Blame tests/doc/PressKey.3X

Packit b099d7
.\" Motif
Packit b099d7
.\"
Packit b099d7
.\" Copyright (c) 1987-2012, The Open Group. All rights reserved.
Packit b099d7
.\"
Packit b099d7
.\" These libraries and programs are free software; you can
Packit b099d7
.\" redistribute them and/or modify them under the terms of the GNU
Packit b099d7
.\" Lesser General Public License as published by the Free Software
Packit b099d7
.\" Foundation; either version 2 of the License, or (at your option)
Packit b099d7
.\" any later version.
Packit b099d7
.\"
Packit b099d7
.\" These libraries and programs are distributed in the hope that
Packit b099d7
.\" they will be useful, but WITHOUT ANY WARRANTY; without even the
Packit b099d7
.\" implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
Packit b099d7
.\" PURPOSE. See the GNU Lesser General Public License for more
Packit b099d7
.\" details.
Packit b099d7
.\"
Packit b099d7
.\" You should have received a copy of the GNU Lesser General Public
Packit b099d7
.\" License along with these librararies and programs; if not, write
Packit b099d7
.\" to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
Packit b099d7
.\" Floor, Boston, MA 02110-1301 USA
Packit b099d7
...\" 
Packit b099d7
...\" 
Packit b099d7
...\" HISTORY
Packit b099d7
# $XConsortium: PressKey.3X /main/4 1995/07/13 20:04:08 drk $
Packit b099d7
...\" **
Packit b099d7
...\" **
Packit b099d7
...\" **  (c) Copyright 1991, 1992 by Open Software Foundation, Inc.
Packit b099d7
...\" **      All Rights Reserved.
Packit b099d7
...\" **
Packit b099d7
...\" **
Packit b099d7
.TH PressKey 3X
Packit b099d7
.SH NAME
Packit b099d7
\*LPressKey \*O\(em Command to press a standard key.
Packit b099d7
.SH SYNOPSIS
Packit b099d7
\*LPressKey\*O
Packit b099d7
\*V[ModifierList]* Key\*O
Packit b099d7
.SH DESCRIPTION
Packit b099d7
The
Packit b099d7
\*LPressKey\*O
Packit b099d7
command will simulate the pressing of a key on the standard keyboard
Packit b099d7
(including Motif Virtual Keys).
Packit b099d7
The key press maybe modified by any of the standard X modifiers (any
Packit b099d7
combination). This function is usually accompanied by doing a 
Packit b099d7
\*LLocatePointer\*O first to a region which accepts keyboard input. 
Packit b099d7
Be sure that \*LPressKey\*O is executed over a widget in the current
Packit b099d7
widget hierarchy.
Packit b099d7
.IP "\*V[ModifierList]*\*O" 14n
Packit b099d7
List of Modifiers to modify the key press. For a full list of available
Packit b099d7
Modifiers see \*LModifierList(3X)\*O. The default is no modifiers.
Packit b099d7
.IP "\*VButton\*O"
Packit b099d7
Key to be pressed. For a full list of available Keys see \*LKeyList(3X)\*O.
Packit b099d7
.PP 
Packit b099d7
For more information about \*LPressKey\*O, see
Packit b099d7
the \*EOSF/Motif Quality Assurance Test Suite User's Guide\*O.
Packit b099d7
.SH EXAMPLE
Packit b099d7
\*LPressKey <Alt> KRight\*O
Packit b099d7
.PP
Packit b099d7
This will press the KRight (right arrow) key with the modifier Alt.
Packit b099d7
.PP
Packit b099d7
.SH "RELATED INFORMATION"
Packit b099d7
.na
Packit b099d7
\*LLocatePointer(3X)\*O, \*LReleaseKey(3X)\*O, \*LClickKey(3X)\*O, 
Packit b099d7
\*LKeyList(3X)\*O, \*LModifierList(3X)\*O
Packit b099d7
.ad