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

List:       kde-core-devel
Subject:    Problem with accent keys in konsole
From:       Henrik Johnson <hpj () globecom ! se>
Date:       2002-03-09 21:13:24
[Download RAW message or body]

In konsole (CVS from yesterday) you can't use the double characters like 
accents etc. This is troublesome for most european users (And US?) since 
the characters ~ and ` are accents and only available this way and they 
come in handy when shelling (I've posted about this before). Anyway, 
I've been doing some digging and it comes down to this patch which 
solves the problem.

The problem is that I'm pretty sure that those lines are there for a 
reason, but I can't understand what. perhaps someone could enlighten me 
on why it is needed, if no one has a problem with it I can just commit this.

/Mauritz
Spinbox AB

Index: TEWidget.cpp
===================================================================
RCS file: /home/kde/kdebase/konsole/konsole/TEWidget.cpp,v
retrieving revision 1.132
diff -u -U5 -r1.132 TEWidget.cpp
--- TEWidget.cpp        2002/03/06 00:43:14     1.132
+++ TEWidget.cpp        2002/03/09 21:05:27
@@ -1255,16 +1255,10 @@
   scrollbar->setValue(scrollbar->value()+lines);
 }

 bool TEWidget::eventFilter( QObject *obj, QEvent *e )
 {
-  if ( (e->type() == QEvent::Accel ||
-       e->type() == QEvent::AccelAvailable ) && qApp->focusWidget() == 
this )
-  {
-      static_cast<QKeyEvent *>( e )->ignore();
-      return true;
-  }
   if ( obj != this /* when embedded */ && obj != parent() /* when 
standalone */ )
       return FALSE; // not us
   if ( e->type() == QEvent::Wheel)
   {
     QApplication::sendEvent(scrollbar, e);


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

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