|
|
@ -82,7 +82,6 @@ KShortcutDialog::KShortcutDialog( const KShortcut& shortcut, bool bQtShortcut, T
|
|
|
|
|
|
|
|
|
|
|
|
m_bQtShortcut = bQtShortcut;
|
|
|
|
m_bQtShortcut = bQtShortcut;
|
|
|
|
|
|
|
|
|
|
|
|
m_bGrab = false;
|
|
|
|
|
|
|
|
m_iSeq = 0;
|
|
|
|
m_iSeq = 0;
|
|
|
|
m_iKey = 0;
|
|
|
|
m_iKey = 0;
|
|
|
|
m_ptxtCurrent = 0;
|
|
|
|
m_ptxtCurrent = 0;
|
|
|
@ -291,22 +290,20 @@ bool KShortcutDialog::x11Event( XEvent *pEvent )
|
|
|
|
x11KeyReleaseEvent( pEvent );
|
|
|
|
x11KeyReleaseEvent( pEvent );
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
case XFocusIn:
|
|
|
|
case XFocusIn:
|
|
|
|
if (!m_bGrab) {
|
|
|
|
{
|
|
|
|
//kdDebug(125) << "FocusIn and Grab!" << endl;
|
|
|
|
XFocusInEvent *fie = (XFocusInEvent*)pEvent;
|
|
|
|
grabKeyboard();
|
|
|
|
if (fie->mode != NotifyGrab && fie->mode != NotifyUngrab) {
|
|
|
|
m_bGrab = true;
|
|
|
|
grabKeyboard();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//else
|
|
|
|
|
|
|
|
// kdDebug(125) << "FocusIn" << endl;
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case XFocusOut:
|
|
|
|
case XFocusOut:
|
|
|
|
if (m_bGrab) {
|
|
|
|
{
|
|
|
|
//kdDebug(125) << "FocusOut and Ungrab!" << endl;
|
|
|
|
XFocusOutEvent *foe = (XFocusOutEvent*)pEvent;
|
|
|
|
releaseKeyboard();
|
|
|
|
if (foe->mode != NotifyGrab && foe->mode != NotifyUngrab) {
|
|
|
|
m_bGrab = false;
|
|
|
|
releaseKeyboard();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//else
|
|
|
|
|
|
|
|
// kdDebug(125) << "FocusOut" << endl;
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
//kdDebug(125) << "x11Event->type = " << pEvent->type << endl;
|
|
|
|
//kdDebug(125) << "x11Event->type = " << pEvent->type << endl;
|
|
|
|