- Jun 6, 2020
- 11,559
- 4,422
I tried to implement two buttons with Undo Redo functionality to step backwards and forward in a textarea control.
As well as with the codearea library. By using jAWTRobot library v1.61 and setting focus to the control while performing
Works:
undoredo:
Undo works on my system (Windows 10 running on an Intel i7 CPU, but ctrl_y does not work in jAWTRobot library.
The default manual keys ctrl+z and ctrl+y works as it should in Windows 10. But my "hack" is not a preffered method.
That's why I am reaching out to get help with this, and perhaps Reflector library could be better for such tasks.
So to sum this up I want the users to be able to step back and forth between code using buttons that sets focus on the textarea and gets the job done.
Let me add that I have tried the solution below but that only highlighted where the cursor is from the default ctrl key on Windows 10.
Does not work:
hack:
As well as with the codearea library. By using jAWTRobot library v1.61 and setting focus to the control while performing
Works:
undoredo:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
Undo works on my system (Windows 10 running on an Intel i7 CPU, but ctrl_y does not work in jAWTRobot library.
The default manual keys ctrl+z and ctrl+y works as it should in Windows 10. But my "hack" is not a preffered method.
That's why I am reaching out to get help with this, and perhaps Reflector library could be better for such tasks.
So to sum this up I want the users to be able to step back and forth between code using buttons that sets focus on the textarea and gets the job done.
Let me add that I have tried the solution below but that only highlighted where the cursor is from the default ctrl key on Windows 10.
Does not work:
hack:
txtAreaDocs.RequestFocus...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید