Skip to content

Commit

Permalink
fix the issue not working w at the last line in notepad.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Feb 24, 2022
1 parent 74f65ba commit ccfe5f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bind/emu/wordmotion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace
auto capture_fwd(unsigned int UNUSED(count)) {
auto& igate = core::InputGate::get_instance() ;
auto res = get_selected_text([&igate] {
igate.pushup(KEYCODE_LSHIFT, KEYCODE_DOWN) ;
igate.pushup(KEYCODE_LSHIFT, KEYCODE_DOWN, KEYCODE_END) ;
Sleep(30) ;
igate.pushup(KEYCODE_LCTRL, KEYCODE_C) ;
}) ;
Expand All @@ -77,7 +77,7 @@ namespace
auto capture_bck(unsigned int UNUSED(count)) {
auto& igate = core::InputGate::get_instance() ;
auto res = get_selected_text([&igate] {
igate.pushup(KEYCODE_LSHIFT, KEYCODE_UP) ;
igate.pushup(KEYCODE_LSHIFT, KEYCODE_UP, KEYCODE_HOME) ;
Sleep(30) ;
igate.pushup(KEYCODE_LCTRL, KEYCODE_C) ;
}) ;
Expand Down

0 comments on commit ccfe5f0

Please sign in to comment.