<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>117662</bug_id>
          
          <creation_ts>2005-12-04 15:32:41 +0000</creation_ts>
          <short_desc>kate: backspace key does not work when shift key is held</short_desc>
          <delta_ts>2007-05-20 19:32:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kate</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>missive</reporter>
          <assigned_to name="KWrite Developers">kwrite-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>395496</commentid>
    <comment_count>0</comment_count>
    <who name="">missive</who>
    <bug_when>2005-12-04 15:32:42 +0000</bug_when>
    <thetext>Version:           2.5.0 (using KDE 3.5.0, Gentoo)
Compiler:          gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)
OS:                Linux (i686) release 2.6.14-gentoo-r3

When holding down the shift key, the backspace key does not work.

There is a very old bug (#56629) reporting the same behavior, but I guess I should open a new one....
I see the same problem in KWrite (and Kate of course), but not in KEdit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405314</commentid>
    <comment_count>1</comment_count>
    <who name="Davorin Učakar">davorin.ucakar</who>
    <bug_when>2006-01-11 18:07:47 +0000</bug_when>
    <thetext>That bug was already present in some old versions of KatePart (KDE 2.x), but was resolved in recent ones (KDE 3.2, 3.3, 3.4). Now, it&apos;s appeared again in KDE 3.5.
However, it can be circumvented by setting Shift+Backspace shortcut.

Arch Linux 0.7.1, KDE 3.5.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405336</commentid>
    <comment_count>2</comment_count>
    <who name="Anders Lund">anderslund</who>
    <bug_when>2006-01-11 19:25:33 +0000</bug_when>
    <thetext>SVN commit 497013 by alund:

Add shift + backspace and shift + delete as alternate shortcuts for delete char actions.
BUG: 117662


 M  +8 -2      kateview.cpp  


--- branches/KDE/3.5/kdelibs/kate/part/kateview.cpp #497012:497013
@@ -592,13 +592,19 @@
       this, SLOT(deleteWordRight()),
       ac, &quot;delete_word_right&quot; );
 
-    new KAction(i18n(&quot;Delete Next Character&quot;), Key_Delete,
+    KAction *a = new KAction(i18n(&quot;Delete Next Character&quot;), Key_Delete,
                 this, SLOT(keyDelete()),
                 ac, &quot;delete_next_character&quot;);
+    KShortcut cut = a-&gt;shortcut();
+    cut.append( KKey( SHIFT + Key_Delete ) );
+    a-&gt;setShortcut( cut );
 
-    new KAction(i18n(&quot;Backspace&quot;), Key_Backspace,
+    a = new KAction(i18n(&quot;Backspace&quot;), Key_Backspace,
                 this, SLOT(backspace()),
                 ac, &quot;backspace&quot;);
+    cut = a-&gt;shortcut();
+    cut.append( KKey( SHIFT + Key_Backspace ) );
+    a-&gt;setShortcut( cut );
   }
 
   connect( this, SIGNAL(gotFocus(Kate::View*)),
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405416</commentid>
    <comment_count>3</comment_count>
    <who name="Thiago Macieira">thiago</who>
    <bug_when>2006-01-12 04:12:37 +0000</bug_when>
    <thetext>Shift+Del is already an alias for Cut. Please let it be Cut instead of Delete.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405482</commentid>
    <comment_count>4</comment_count>
    <who name="Anders Lund">anderslund</who>
    <bug_when>2006-01-12 13:40:40 +0000</bug_when>
    <thetext>On Thursday 12 January 2006 04:12, Thiago Macieira wrote:
&gt; Shift+Del is already an alias for Cut. Please let it be Cut instead of
&gt; Delete.


Oops sorry, I&apos;ll remove that again then.

-anders
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>405486</commentid>
    <comment_count>5</comment_count>
    <who name="Anders Lund">anderslund</who>
    <bug_when>2006-01-12 13:47:33 +0000</bug_when>
    <thetext>SVN commit 497232 by alund:

Don&apos;t eat shift + del
CCBUG:  117662


 M  +3 -6      kateview.cpp  


--- branches/KDE/3.5/kdelibs/kate/part/kateview.cpp #497231:497232
@@ -592,17 +592,14 @@
       this, SLOT(deleteWordRight()),
       ac, &quot;delete_word_right&quot; );
 
-    KAction *a = new KAction(i18n(&quot;Delete Next Character&quot;), Key_Delete,
+    new KAction(i18n(&quot;Delete Next Character&quot;), Key_Delete,
                 this, SLOT(keyDelete()),
                 ac, &quot;delete_next_character&quot;);
-    KShortcut cut = a-&gt;shortcut();
-    cut.append( KKey( SHIFT + Key_Delete ) );
-    a-&gt;setShortcut( cut );
 
-    a = new KAction(i18n(&quot;Backspace&quot;), Key_Backspace,
+    KAction *a = new KAction(i18n(&quot;Backspace&quot;), Key_Backspace,
                 this, SLOT(backspace()),
                 ac, &quot;backspace&quot;);
-    cut = a-&gt;shortcut();
+    KShortcut cut = a-&gt;shortcut();
     cut.append( KKey( SHIFT + Key_Backspace ) );
     a-&gt;setShortcut( cut );
   }
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>527009</commentid>
    <comment_count>6</comment_count>
    <who name="Dominik Haumann">dhaumann</who>
    <bug_when>2007-05-20 19:32:50 +0000</bug_when>
    <thetext>SVN commit 666725 by dhaumann:

forward port SVN commit 497013 and 497232 by alund:
Add shift + backspace as alternate shortcuts for delete char action.
CCBUG: 117662


 M  +4 -1      kateview.cpp  


--- trunk/KDE/kdelibs/kate/part/view/kateview.cpp #666724:666725
@@ -740,7 +740,10 @@
 
     a = ac-&gt;addAction(&quot;backspace&quot;);
     a-&gt;setText(i18n(&quot;Backspace&quot;));
-    a-&gt;setShortcut(QKeySequence(Qt::Key_Backspace));
+    QList&lt;QKeySequence&gt; scuts;
+    scuts &lt;&lt; QKeySequence(Qt::Key_Backspace)
+          &lt;&lt; QKeySequence(Qt::SHIFT + Qt::Key_Backspace);
+    a-&gt;setShortcuts(scuts);
     connect(a, SIGNAL(triggered(bool)), SLOT(backspace()));
 
 #if 0
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>