-
Translation tables
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()
-
Re: Translation tables
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...
[color=blue]
> 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()[/color]
-
Re: Translation tables
KV-2 wrote:[color=blue]
> 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...[/color]
Yes but for the sequence <Key>x, <Key>b, ...
then <Key>b is discarded instead of reaching the catch-all <Key>.
[color=blue][color=green]
>>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()[/color]
>
>[/color]