[Gambas-user] Textedit and Spell checking

Benoit Minisini gambas at ...1...
Sat Mar 29 13:12:38 CET 2008


On samedi 29 mars 2008, richard terry wrote:
> On Sat, 29 Mar 2008 03:29:21 pm Rob wrote:
> > On Friday 28 March 2008 23:47, richard terry wrote:
> > > Using ctrl<enter> is  pain because of the key positioning. In
> >
> > Maybe you could use the Keypress event to intercept Enter and
> > Control-Enter (which does insert a <br />, I just tried it) and swap
> > them like terminal emulators often swap backspace and delete.
> >
> > Since you can't rewrite the key code in the Key class, maybe you can
> > manually insert whichever markup you need at the current position and
> > then use STOP EVENT to prevent the <p> from going in.
>
> Will have a look tonight.
>
> Thanks
>
> Richard
>

As you cannot rewrite the event, you can use Desktop.SendKeys for reemit 
the "CTRL+ENTER" while cancelling the "ENTER" key event.

Regards,

-- 
Benoit Minisini




More information about the User mailing list