Skip to content

bind_key block form can not correct resolve pressing key. #8

@zw963

Description

@zw963

e.g.

bind_key [KEY_LEFTCTRL, KEY_F] do |_ev, op|
  op.press_key [KEY_LEFTCTRL, KEY_L]
  op.release_key [KEY_LEFTCTRL, KEY_L]
end

it worked, But, when keep pressing CTRL-F, it is only move one char forward.
we must CTRL-F CTRL-F to move two char forward.

if not use block form, it worked.

bind_key [KEY_LEFTCTRL, KEY_F], [KEY_LEFTCTRL, KEY_L]

I don't know how pressing_key is used in this case, maybe this method
is for this situation?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions