BUT if no text selected, the entire document is changed

AkelPad 4 - User's Manual [url=file:///C:/Programs2/AkelPad/AkelFiles/Docs/AkelHelp-Eng.htm#ch5]Keyboard commands[/url] states "selected text"
And if Commands are assigned to hot-keys the same behaviour occurs.
It is catastrophic on some large code files !
Is there a way of trapping/filtering "no selection" ?
(In Metapad if nothing is selected an alert shows and no changes are made)
I would appreciate any guidance
