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 '


'b' > 'Group Handle_B '

Thanks (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.