[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdecore
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2005-03-16 22:35:02
Message-ID: 20050316223502.3C73317D06 () office ! kde ! org
[Download RAW message or body]

CVS commit by staniek: 

KAccelPrivate
- KAccelPrivate::eventFilter() only makes sense if KAccelEventHandler 
  is working (i.e. for X11). This fixes problems when having e.g. QLineEdit
  focused we're pressing, say, Alt+1 keys (defined as an action shortcut) 
  : either the action was executed and '1' characted was inserted. 
  Now only the action is executed.


big thanks for dfaure for his help and incredible patience :)


  M +2 -0      kaccel.cpp   1.153


--- kdelibs/kdecore/kaccel.cpp  #1.152:1.153
@@ -169,6 +169,8 @@ KAccelPrivate::KAccelPrivate( KAccel* pP
         connect( (QAccel*)m_pAccel, SIGNAL(activated(int)), this, SLOT(slotKeyPressed(int)) );
 
+#ifdef Q_WS_X11 //only makes sense if KAccelEventHandler is working
         if( m_pWatch )
                 m_pWatch->installEventFilter( this );
+#endif
         KAccelEventHandler::self();
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic