editor: handle DEL at prompt()
README: small corrections
This commit is contained in:
parent
60db522e87
commit
18b95b6bb6
2 changed files with 16 additions and 9 deletions
|
|
@ -390,8 +390,7 @@ begin
|
|||
if numMode then
|
||||
isValidChar := isDigit(ch)
|
||||
else
|
||||
isValidChar := (ord(ch) >= 32) and
|
||||
(ord(ch) <> 127); (* don't want DEL character *)
|
||||
isValidChar := (ord(ch) >= 32)
|
||||
end;
|
||||
|
||||
begin
|
||||
|
|
@ -427,7 +426,7 @@ begin
|
|||
c := chr(key);
|
||||
l := length(strReturn);
|
||||
|
||||
if c = #8 then
|
||||
if (c = #8) or (c = #127) then
|
||||
doBackspace
|
||||
else
|
||||
if isValidChar(c) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue