diff options
author | Keith Packard <keithp@keithp.com> | 2022-01-09 11:23:01 -0800 |
---|---|---|
committer | Thomas E. Dickey <dickey@his.com> | 2022-06-20 23:07:40 +0000 |
commit | cbbf610bfbef2f8a20c8a2886a8a9c1ec94d4a66 (patch) | |
tree | bed1927ba097d2f241066d0f5b30b6ea99bccf67 /specs/appB.xml | |
parent | 215b8ee1d3231dd34a9e8002832cd028a6728dc7 (diff) |
Support buttons > 5 in translation tables [v2]
Add support for arbitrary button numbers by replacing the table-driven
detail parsing for BtnDown/ButtonPress and BtnUp/ButtonRelease with a
custom parser that allows for an arbitrary button number (1-255) after
the 'Button' prefix.
Document what this syntax looks like in the table of detail information.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'specs/appB.xml')
-rw-r--r-- | specs/appB.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/specs/appB.xml b/specs/appB.xml index 93a2cf6..74ac82c 100644 --- a/specs/appB.xml +++ b/specs/appB.xml @@ -729,11 +729,11 @@ The detail field is supported for the following event types: </row> <row> <entry>ButtonPress</entry> - <entry>button from event <emphasis>detail</emphasis></entry> + <entry>“Button” followed by button from event <emphasis>detail</emphasis> (e.g. <function>Button1</function>)</entry> </row> <row> <entry>ButtonRelease</entry> - <entry>button from event <emphasis>detail</emphasis></entry> + <entry>“Button” followed by button from event <emphasis>detail</emphasis> (e.g. <function>Button42</function>)</entry> </row> <row> <entry>MotionNotify</entry> |