if (isEnabled() && isCapsLockOn(event)) {
warning.showRelativeTo(passwordWidget);
rpc.isCapsLockEnabled(true); // Added to send message to the
// server
} else {
warning.hide();
rpc.isCapsLockEnabled(false); // Added to send message to
// the server
}
}
}, KeyPressEvent.getType());