diff options
Diffstat (limited to 'tdecore/kkeynative_x11.cpp')
-rw-r--r-- | tdecore/kkeynative_x11.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tdecore/kkeynative_x11.cpp b/tdecore/kkeynative_x11.cpp index a44305dad..d5ecb24da 100644 --- a/tdecore/kkeynative_x11.cpp +++ b/tdecore/kkeynative_x11.cpp @@ -180,10 +180,12 @@ KKey KKeyNative::key() const int KKeyNative::keyCodeQt() const { - int keyQt = KKeyServer::Sym(m_sym).qt(), modQt; + int keyQt = KKeyServer::Sym(m_sym).qt(); + int modQt; - if( keyQt != TQt::Key_unknown && KKeyServer::modXToModQt( m_mod, modQt ) ) + if( (keyQt != TQt::Key_unknown) && (KKeyServer::modXToModQt( m_mod, modQt )) ) { return keyQt | modQt; + } return 0; } |