Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3 keys event_mapping won't work #132

Closed
kurokirasama opened this issue Jul 22, 2024 · 2 comments
Closed

3 keys event_mapping won't work #132

kurokirasama opened this issue Jul 22, 2024 · 2 comments

Comments

@kurokirasama
Copy link

Describe the bug
when defining key binds with 3 keys, for instance ctrl_shift_h, the function for that key bind won't run, even more I think the key bind isn't recognized.

To Reproduce
For instance:

-- duplicate the current line
    ["ctrl_shift_d"] = function()
        local current_line = editor:get_line()
        editor:insert_line_at(current_line, editor.cursor.y + 1)
        editor:move_down()
    end,

when pressing ctrl_shift_d the ctrl_d activates.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS] ubuntu 24.04, ox 0.4.2
@curlpipe
Copy link
Owner

From what I remember, this issue was raised previously.

I think it's to do with the library crossterm not supporting it by default (see the issue I opened here )

It looks like there is a way to do it on certain terminals with this.

I'll have a go at implementing this.

@curlpipe
Copy link
Owner

curlpipe commented Aug 5, 2024

Fixed in 0.4.3

@curlpipe curlpipe closed this as completed Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants