Enabling/Disabling on screen keyboard

I think it's essential to enable/disable onscreen keyboards if you switch to tablet or laptop mode. So far (atleast with gnome in Fedora) you would have to manually enable it via system settings.
I propose to set the setting when calling the functions to enable tablet or laptop mode.

In this fork I added working functionality for the gnome on screen keyboard. (testing on Fedora 20 with Gnome 3.10).
It would be nice to have for Ubuntu/Unity, XFCE and KDE aswell.
Can you test, tweak the changes, if appliable for Ubuntu, as I see you are developing on Ubuntu?

best regards,
Tom