client: fix for undesired and annoying CAPS_LOCK behavior fixes #317