Project

General

Profile

Actions

Bug #360

closed

Inkey$ returning multi-character results for modifier keys. (Should return nothing.)

Added by Brian Flanagan over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
04/28/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Inkey$ should always return a single character code. It should also save a copy of the current value of the modifier keys in ScanShift

In the following example:

Curs Off
prevKY$=""
Do
    KY$=Inkey$ : Wait Vbl
    If KY$<>prevKY$ And KY$ <> "" Then Locate 0,0 : Print KY$;"                     "
    prevKY$=KY$
Loop

Typing a capital A will result in:

ShiftA

...instead of:

A
Actions

Also available in: Atom PDF