Discussion:
Translation tables
(too old to reply)
Russell Shaw
2005-11-27 04:16:03 UTC
Permalink
Hi,
On P.257 of "X Toolkit Intrinsics Programming Manual"
(Volume Four Motif Edition, OSF/Motif 1.2 Edition) it says
all <Key>b events not preceded by <Key>a events are discarded
with a translation table:

<Key>a,<Key>b : something()
<Key> : else()

Why? Was there a design decision to do that, or was it just
a quirk that a particular algorithm happen to have?

It says <Key>b events will work as expected with:

<Key>a,<Key>b : something()
<Key>b : else()
<Key> : else()
KV-2
2005-11-28 17:21:41 UTC
Permalink
Hi!
It looks meeningfuly to me - it says that translation " <Key>a,<Key>b
: something()" fires up something() only if you have pushed <Key>a and
then <Key> b. Remember that each line decribes one translation, its
simple...
Post by Russell Shaw
On P.257 of "X Toolkit Intrinsics Programming Manual"
(Volume Four Motif Edition, OSF/Motif 1.2 Edition) it says
all <Key>b events not preceded by <Key>a events are discarded
<Key>a,<Key>b : something()
<Key> : else()
Why? Was there a design decision to do that, or was it just
a quirk that a particular algorithm happen to have?
<Key>a,<Key>b : something()
<Key>b : else()
<Key> : else()
Russell Shaw
2005-11-29 01:33:03 UTC
Permalink
Post by KV-2
Hi!
It looks meeningfuly to me - it says that translation " <Key>a,<Key>b
: something()" fires up something() only if you have pushed <Key>a and
then <Key> b. Remember that each line decribes one translation, its
simple...
Yes but for the sequence <Key>x, <Key>b, ...
then <Key>b is discarded instead of reaching the catch-all <Key>.
Post by KV-2
Post by Russell Shaw
On P.257 of "X Toolkit Intrinsics Programming Manual"
(Volume Four Motif Edition, OSF/Motif 1.2 Edition) it says
all <Key>b events not preceded by <Key>a events are discarded
<Key>a,<Key>b : something()
<Key> : else()
Why? Was there a design decision to do that, or was it just
a quirk that a particular algorithm happen to have?
<Key>a,<Key>b : something()
<Key>b : else()
<Key> : else()
Loading...