Lineeditor icon indicating copy to clipboard operation
Lineeditor copied to clipboard

Examples don't seem to pick up non-character keyes

Open sadmac7000 opened this issue 1 year ago • 4 comments

Describe the bug I checked out the source and ran several of the examples. In all cases the prompt wouldn't respond to the enter or backspace key, or any other keys I tried other than typing letters or spaces.

To Reproduce Steps to reproduce the behavior: Check out source. cargo run --example cursor_style Try to enter a command

Expected behavior Should be able to enter commands with enter and delete characters with backspace

GQL (please complete the following information): 0.2.0

sadmac7000 avatar Dec 31 '23 09:12 sadmac7000

Hello @sadmac7000,

In the key bindings and drop down auto complete examples you can find an examples for binding common non-character keyes and custom key bindings,

If you have suggestion to improve samples and add any case feel free to suggest

Thank you, Amr Hesham

AmrDeveloper avatar Dec 31 '23 19:12 AmrDeveloper

Not binding enter in the examples means it is impossible to quit them. I had to kill the application from another window.

sadmac7000 avatar Dec 31 '23 19:12 sadmac7000

Oh, you are right i think we should register at least quit binding for all examples,

AmrDeveloper avatar Dec 31 '23 20:12 AmrDeveloper

Done, Thank you @sadmac7000

AmrDeveloper avatar Dec 31 '23 20:12 AmrDeveloper