Project

General

Profile

Bug #6249

SELECTION-LIST: lookup items beginning with SPACE issue

Added by Vladimir Tsichevski about 2 years ago. Updated about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:

History

#2 Updated by Vladimir Tsichevski about 2 years ago

SELECTION-LIST lookup feature: go to first or next item beginning with the character pressed.

When the user presses and releases SPACE, both pressed and released events cause lookup: so lookup is called twice, and selection also moves twice.

Note: the same event is processed twice, the second time the event is already consumed, but this fact is not checked.

The SPACE key is special, since both pressed and released events are generated by FWD for this key only.

The quick fix would be to check the event consumed status, and do nothing if event is consumed, but this needs some discussion, because:

  1. there are several places in FWD, where this check can be added. Currently this lookup operation is not the only one which happens with a consumed event
  2. IMO it would be better if we could test the key event type (is the event pressed or released) and do action based on this type.

See also the discussion around #6178-90.

Also available in: Atom PDF