Adrian Robert wrote:
> Hmm, thanks -- interesting page.  I don't know if the Apple US  
> Powerbook and PowerMac keyboards are really nonstandard or what,  
> because the upper right key definitely says "Delete" not Backspace,  
> and sends an NSDeleteCharacter heyboard event, NOT an  
> NSBackspaceCharacter.

I think its another case of Apple doing things otherwise on principle
:-) they may have started out labeling the Backspace key with "Delete",
because it does in fact delete things and at the time there was no
forward-delete key on a mac. Maybe then they got confused by their own
choices.

It adds to the confusion that the ASCII character "rubout" (127) that
deletes to the left has the mnemonic "DEL".

What is the NSDeleteCharacter event supposed to do? Does it have a
standard binding? Is there a NSBackspaceCharacter? (Maybe its about
ASCII DEL?)

> It's clear that Backspace should be mapped to 'DEL' and KP-Del should  
> be mapped to 'delete-char', but what to map Delete to is less clear.   
> For example, terminal-mode emacs 21 that comes on my Macs maps my  
> "Delete" (which SHOULD be backspace) to delete-char, which is wrong.

I would think that the Delete key in the small key block with
PageUp/Down should be Delete and the 0-key in the keypad in function
mode should be KP-Del because its on the keypad but I'm not really shure
about Emacs conventions.

The problem with console-mode Emacs is that it has to go through the
extra layer of terminal emulation (for some issues see e.g.
http://www.columbia.edu/kermit/backspace.html) so I would not count on
it as standard behaviour.

> I think the code needs to somehow ascertain whether a backspace key  
> exists on the user's keyboard.  I'll have to look more into this  
> before the release..

I don't think the code needs to do different things on different
keyboards. I would assume that the Backspace key exists on all keyboards
even though it may be labeled Delete and it should do DEL. And the
Delete key (in the cursor block or Fn-Backspace) should do forward-delete.

I would not assume that the NS-character events to be different on
different keyboards (but I may be wrong).

Cheers
        Robert



_______________________________________________
Emacs-app-dev- mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-

Reply via email to