Skip to content

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

Open
@sadmac7000

Description

@sadmac7000

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

Activity

AmrDeveloper

AmrDeveloper commented on Dec 31, 2023

@AmrDeveloper
Owner

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

sadmac7000

sadmac7000 commented on Dec 31, 2023

@sadmac7000
Author

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

AmrDeveloper

AmrDeveloper commented on Dec 31, 2023

@AmrDeveloper
Owner

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

added a commit that references this issue on Dec 31, 2023

Issue #1: Register common control command in all samples

AmrDeveloper

AmrDeveloper commented on Dec 31, 2023

@AmrDeveloper
Owner

Done, Thank you @sadmac7000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sadmac7000@AmrDeveloper

        Issue actions

          Examples don't seem to pick up non-character keyes · Issue #1 · AmrDeveloper/Lineeditor