Selecting among CSS alternatives by hotkey
Posted: Thu Jan 22, 2015 6:47 pm
My apologies if this has been covered before...
My client wants a hotkey which will toggle between 2 CSS stylesheets in Author mode. The stylesheets are set up in our custom framework -- the users can switch back and forth using the "Author CSS Alternatives" toolbar dropdown. The client just wants to be able to do this without needing to use the mouse.
Is there a way to attach a hotkey to the items in that toolbar dropdown? Failing that, is there an easy way to set up an action which selects the stylesheet? Failing that, can someone point me to the API class which controls the current stylesheet? (Sorry, I can never seem to find anything in javadocs.)
Thanks in advance.
My client wants a hotkey which will toggle between 2 CSS stylesheets in Author mode. The stylesheets are set up in our custom framework -- the users can switch back and forth using the "Author CSS Alternatives" toolbar dropdown. The client just wants to be able to do this without needing to use the mouse.
Is there a way to attach a hotkey to the items in that toolbar dropdown? Failing that, is there an easy way to set up an action which selects the stylesheet? Failing that, can someone point me to the API class which controls the current stylesheet? (Sorry, I can never seem to find anything in javadocs.)
Thanks in advance.