bugGNUstep - Bugs: bug #30539, Backspace key sends DEL (0x7f)...

Group
 
 

bug #30539: Backspace key sends DEL (0x7f) character on OSX, whereas GS X backend does not

Submitter:  Derek Fawcus <dfawcus>
Submitted:  Sat 24 Jul 2010 12:05:30 PM UTC
   
 
Category:  Backend Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  FredKiefer
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 26 Jul 2010 08:08:30 PM UTC, comment #2: 

Applied this patch plus a few changes in gui to have this working again with the changed key behaviour.

Fred Kiefer <FredKiefer>
Group Member
Sun 25 Jul 2010 09:27:06 PM UTC, comment #1: 

This is another controversial change. When changing the key mapping here we also need to adjust the mapping in NSInputManager and make sure that all applications relying on the current behaviour get corrected as well.

As I understand it, you tested the behaviour on an Apple computer and found that the backspace key produces an NSDeleteCharacter.
Looking through the Google hit for NSDeleteCharacter there seems to be a lot of confusion even among the Apple developers.

Fred Kiefer <FredKiefer>
Group Member
Sat 24 Jul 2010 12:05:30 PM UTC, original submission:  

If this is to match the OSX behaviour,  then the backspace key should generate the DEL character.  The change is obvious:

--- a/Source/x11/XGServerEvent.m
+++ b/Source/x11/XGServerEvent.m
@@ -2296,7 +2296,7 @@ process_char (KeySym keysym, unsigned *eventModifierFlags)
 #endif
       /* FIXME: The following line ? */
     case XK_Escape:       return 0x1b;
-    case XK_BackSpace:    return NSBackspaceKey;
+    case XK_BackSpace:    return NSDeleteCharacter;

       /* The following keys need to be reported as function keys */
 #define XGPS_FUNCTIONKEY \

Derek Fawcus <dfawcus>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by FredKiefer (Posted a comment)
  • -email is unavailable- added by dfawcus (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-10-03 FredKiefer StatusReady For Test Fixed
        Open/ClosedIn Test Closed
    2010-07-26 FredKiefer StatusNone Ready For Test
        Assigned toNone FredKiefer
        Open/ClosedOpen In Test

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code