For the record, a workaround is to send #whenTextIsAcceptedDo: to the SpTextPresenter.

Cheers,

Hern��n

El jue., 30 jul. 2020 a las 0:10, Hern��n Morales Durand (<hernan.morales@gmail.com>) escribi��:
I found a difference in shortcut handling between Pharo 8 and Pharo 9 which you can reproduce with the attached minimum working example. In the example, the halt in the Command's #execute method in P9 is sent but not in P8.

SpComm2SaveTextMWE show.

The problem seems to be Pharo 8 doesn't execute the KMKeymap callback configured for Cmd+s in SpKMCategoryBuilder>>visitCommand: while Pharo 9 does.

In some way the only way to capture the Accept keypress is to modify the #buildShortcutsOn: method in RubTextEditor, but I'd like to avoid such approach.

Is there any workaround to this?

Cheers,

Hern��n