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

List:       kde-commits
Subject:    koffice/kspread/ui
From:       Marijn Kruisselbrink <m.kruisselbrink () student ! tue ! nl>
Date:       2010-10-07 13:55:56
Message-ID: 20101007135556.0DB1DAC894 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1183477 by mkruisselbrink:

always forward tab and backtab keys to the parent. This makes it possible to always \
use tab to go to the next cell when entering data. Entering literal tab characters is \
                still possible in the external editor.
BUG: 253514

 M  +7 -2      CellEditor.cpp  


--- trunk/koffice/kspread/ui/CellEditor.cpp #1183476:1183477
@@ -618,8 +618,6 @@
     case Qt::Key_Down:
     case Qt::Key_PageDown:
     case Qt::Key_PageUp:
-    case Qt::Key_Tab:
-    case Qt::Key_Backtab:
         // Forward left/right arrows to parent, so that pressing left/right
         // in this editor leaves editing mode, unless this editor has been
         // set to capture arrow key events.
@@ -628,6 +626,13 @@
         }
         event->ignore(); // pass to parent
         return;
+    case Qt::Key_Tab:
+    case Qt::Key_Backtab:
+        // Always forward tab/backtab to parent, so that pressing them leaves
+        // editing mode. To insert literal tabs you can always use the external
+        // editor.
+        event->ignore();
+        return;
     case Qt::Key_Return:
     case Qt::Key_Enter:
         // Shift + Return: manual line wrap


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

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