The problem is, I have editor gadget and "return" as a keyboard shortcut so when I press enter while cursor is in editor gadget it does not move the cursor to the next line. im using purebasic 4.1 by the way I dont know of this happens with later versions?
I really needed that code as well I really wanted to turn wordwrap on so thank you so much.
is there any way to send the next line command through a similar method so i can attach it to the keyboard shortcut action of its the active gadget and enter is pushed?
Another possibility. If the Editor Gadget is the Active Gadget, Then use RemoveKeyboardShortcut() to stop the Window Event picking-up on the <Enter> key. When the Editor Gadget loses focus, re-create the Shortcut.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
IdeasVacuum wrote:Another possibility. If the Editor Gadget is the Active Gadget, Then use RemoveKeyboardShortcut() to stop the Window Event picking-up on the <Enter> key. When the Editor Gadget loses focus, re-create the Shortcut.