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

List:       kde-commits
Subject:    kdeedu/kiten
From:       Jason Katz-Brown <jason () katzbrown ! com>
Date:       2004-12-26 8:18:38
Message-ID: 20041226081838.F18E91BB42 () office ! kde ! org
[Download RAW message or body]

CVS commit by katz: 

commit patch by Andreas Ramm for pending n at end of romaji editing


  M +15 -0     kromajiedit.cpp   1.13


--- kdeedu/kiten/kromajiedit.cpp  #1.12:1.13
@@ -104,4 +104,5 @@ void KRomajiEdit::setKana(int _kana)
 }
 
+// TODO allow editing not only at end
 void KRomajiEdit::keyPressEvent(QKeyEvent *e)
 {
@@ -236,4 +237,18 @@ void KRomajiEdit::keyPressEvent(QKeyEven
         }
 
+        if ( e->key() == Key_Return || e->key() == Key_Enter ) // take care of pending n
+        {
+                if (kana == "hiragana")
+                {
+                        if (_text[len-1] == 'n')
+                                setText(curKana + hiragana["n'"]);
+                }
+                else
+                {
+                        if (_text[len-1] == 'N')
+                                setText(curKana + katakana["n'"]);
+                }
+        }
+
         KLineEdit::keyPressEvent(e); // don't think we'll get here :)
 }


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

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