Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sushi Fix handling of the backspace and delete keys...



details:   https://anonhg.NetBSD.org/src/rev/16d13b098178
branches:  trunk
changeset: 503141:16d13b098178
user:      garbled <garbled%NetBSD.org@localhost>
date:      Thu Feb 01 08:43:46 2001 +0000

description:
Fix handling of the backspace and delete keys when editing a field.

diffstat:

 usr.sbin/sushi/scanform.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 39fd4b721759 -r 16d13b098178 usr.sbin/sushi/scanform.c
--- a/usr.sbin/sushi/scanform.c Thu Feb 01 08:29:46 2001 +0000
+++ b/usr.sbin/sushi/scanform.c Thu Feb 01 08:43:46 2001 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: scanform.c,v 1.12 2001/02/01 08:29:46 garbled Exp $       */
+/*      $NetBSD: scanform.c,v 1.13 2001/02/01 08:43:46 garbled Exp $       */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -351,8 +351,10 @@
                return REQ_RIGHT_CHAR;
        case 0x0f:              /* ^O */
                return REQ_INS_LINE;
+       case KEY_DC:
        case 0x16:              /* ^V */
                return REQ_DEL_CHAR;
+       case KEY_BACKSPACE:
        case 0x08:              /* ^H */
                return REQ_DEL_PREV;
        case 0x19:              /* ^Y */



Home | Main Index | Thread Index | Old Index