Rules priority

I realized that, in the following example, when pressing ‘b’ after ‘a’, the second rule of the “main” group is executed instead of the first one. Why? (I attach project)

begin Unicode > use(main)

group(main) using keys

+ 'b' > 'b' use(Handle_B)
'a' + 'b' > 'Group Main '

group(Handle_B)

'b' > 'Group Handle_B '

Thanks

Test.zip (5.9 KB)

Rules are considered in a “longest first” order. Because the second line includes ‘a’ as context it is considered “longer”.

@drowe Fine, thanks.

Documentation here: Using Rules

The conversation has resolved.