FIX: ensures keyboard event is not propagated when using c shortcut (PR #9441)

GitHub