1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"../docbook-xml/docbookx.dtd"
[
<!ENTITY % myents SYSTEM "../fvwm.ent" >
%myents;
]>
<!-- $Id: PointerKey.xml,v 1.3 2007/06/16 12:38:46 griph Exp $ -->
<section id='PointerKey'>
<title>PointerKey</title>
<cmdsynopsis>
<command>PointerKey</command
><arg choice='opt'
>(<replaceable>window</replaceable
>)</arg
><arg choice='plain'
><replaceable>Keyname</replaceable
></arg
><arg choice='plain'
><replaceable>Context</replaceable
></arg
><arg choice='plain'
><replaceable>Modifiers</replaceable
></arg
><arg choice='plain'
><replaceable>Function</replaceable
></arg>
</cmdsynopsis>
<para>This command works exactly like the
<fvwmref cmd="Key"/>
command. The only difference is that the binding operates on the
window under the pointer. Normal key bindings operate on the
focused window instead. The
<emphasis remap='B'>PointerKey</emphasis>
command can for example be used to bind keys to the root window if
you are using
<fvwmref cmd="Style" opt="SloppyFocus"/> or
<fvwmref cmd="Style" opt="ClickToFocus"/>.
However, some applications (xterm is one example) are unable to
handle this key anymore, even if the pointer is over the xterm
window. It is recommended to use the
<emphasis remap='B'>PointerKey</emphasis>
command only for key combinations that are not needed in any
application window.</para>
<para>Example:</para>
<programlisting>
<fvwmref cmd="Style"/> * <fvwmref cmd="Style" opt="SloppyFocus"/>
PointerKey f1 a m <fvwmref cmd="Menu"/> MainMenu
</programlisting>
</section>
|