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.
e.g.
it worked, But, when keep pressing
CTRL-F, it is only move one char forward.we must
CTRL-FCTRL-Fto move two char forward.if not use block form, it worked.
I don't know how
pressing_keyis used in this case, maybe this methodis for this situation?
Thanks.