On second thoughts, isFocused() is likely a better idea.
Attached is a diff file (against r447:4deb61ae7d2c) implementing the feature. Like the event module this only checks SDL_APPINPUTFOCUS. My only worry is that it doesn't check whether isCreated() is true. Should it do this?
Note: the diff does not update the changes.txt file.