I would anticipate it would be, since it uses View.SelectText - which, according to MSDN:
This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.
You've verified your command works in Preview (i.e. Filler)?