fix #30166: cmdSelectAll issues
Merge pull request #1184 from MarcSabatella/30166-select-all

fix #30166: cmdSelectAll issues