jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

RE: ctrl-backspace and wjed


Greetings,

I fixed this and the other combinations of shift/alt/control plus backspace a long while ago and sent a patch to John E. Davis, but it didn't make it into v0.99.15 for some reason.

A diff between the 0.99.15 code is below (I've done other things to wterm.c as well, but this is the only relevent bit).

John Skilleter

--- ..\..\jed09915\src\wterm.c	Fri Jan 18 13:48:53 2002
+++ wterm.c	Fri Jan 18 15:18:50 2002
@@ -1627,11 +1705,31 @@
    switch (scan)
      {
       default: return DefWindowProc(hWnd, msg, wParam, lParam);
 
       case 0x00E:           /* backspace */
+      // [JMS:BKSP] - Added the if() around the _putkey() to make ALT+BKSP = ALT CHAR, ^H
+      // [JMS:BKSP] - as the 3-char sequence generate before rarely registered correctly
+      // [JMS:BKSP] - though I've no idea why it doesn't!
+      // [JMS:BKSP] - Also, mapped shift+bksp as ALT+"?", control+bksp as ALT+"@"
+      if ((key_state & KEY_ALT) == 0)
+      {
+         if ((key_state & KEY_CONTROL) != 0)
+         {
+            _putkey(PC_Alt_Char);
+            _putkey('@');
+         }
+         else if ((key_state & KEY_SHIFT) != 0)
+         {
+            _putkey(PC_Alt_Char);
+            _putkey('?');
+         }
+         else
+         {
    _putkey (127);
+         }
+      }
    Ignore_Wchar_Message = 1;
    return 0;
 
       case 0x039:              /* space */
    if (key_state & KEY_CONTROL)

-----Original Message-----
From: owner-jed-users-l@xxxxxxxxxxxxxx
[mailto:owner-jed-users-l@xxxxxxxxxxxxxx]On Behalf Of Paul Shirley
Sent: 03 March 2002 23:01
To: jed-users@xxxxxxxxxxx
Subject: Re: ctrl-backspace and wjed


In message <D1F89976277ED311873A0090279D07C606DE09D0@exchhpt>, 
Jens.Wulf@xxxxxxxxxxxxxxxx writes
>I'm happily using jed on linux for long now, but at work I have to use
>windoze and so am quite pleased that there is wjed. There's one problem
>left, though: I can't get ctrl-backspace working, it sends the same code
>(^?) as backspace. I just searched the old mailing list but found nothing
>helpful, only messages stating this problem...

What code are you expecting to see?

I'm currently fixing wjed keyboard code and might as well fix this ;)
-- 
Paul Shirley

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2002 date index] [2002 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]