Re: [Gambas-user] Control + key combination detection Q

2010-10-08 Thread Benoît Minisini
> > > It works as expected with gb.qt4. > > > > > > That Key.Code is the code of the CTRL key. You receive it when the CTRL > > > key > > > > > > is pressed, not when the R key is pressed. > > > > > > Note that gb.gtk makes a difference between the Key.Code of 'R' and > > > 'r', whereas it shou

Re: [Gambas-user] Control + key combination detection Q

2010-10-08 Thread Benoît Minisini
> > > > It works as expected with gb.qt4. > > > > That Key.Code is the code of the CTRL key. You receive it when the CTRL > > key > > > > is pressed, not when the R key is pressed. > > > > Note that gb.gtk makes a difference between the Key.Code of 'R' and 'r', > > whereas it should not. I wil

Re: [Gambas-user] Control + key combination detection Q

2010-10-07 Thread richard terry
On Friday 08 October 2010 11:05:18 Benoît Minisini wrote: > > On Friday 08 October 2010 01:11:02 Jack wrote: > > > richard terry a écrit : > > > >>From the docs: > > > > > > > >If Key.Code = Key["R"] And If Key.Control Then > > > > > > > >Print "You hit CTRL+R" > > > > > > > >End If

Re: [Gambas-user] Control + key combination detection Q

2010-10-07 Thread Benoît Minisini
> On Friday 08 October 2010 01:11:02 Jack wrote: > > richard terry a écrit : > > >>From the docs: > > >If Key.Code = Key["R"] And If Key.Control Then > > > > > >Print "You hit CTRL+R" > > > > > >End If > > > > > > If my hands this does the following > > > > > > Key.code

Re: [Gambas-user] Control + key combination detection Q

2010-10-07 Thread Jack
richard terry a écrit : > On Friday 08 October 2010 01:11:02 Jack wrote: >> richard terry a écrit : >>> >From the docs: >>> >>>If Key.Code = Key["R"] And If Key.Control Then >>>Print "You hit CTRL+R" >>>End If >>> >>> If my hands this does the following >>> Key.code = 1677724 >>>

Re: [Gambas-user] Control + key combination detection Q

2010-10-07 Thread richard terry
On Friday 08 October 2010 01:11:02 Jack wrote: > richard terry a écrit : > >>From the docs: > > > >If Key.Code = Key["R"] And If Key.Control Then > >Print "You hit CTRL+R" > >End If > > > > If my hands this does the following > > Key.code = 1677724 > > Key["R"] = 82 > > Key.cont

Re: [Gambas-user] Control + key combination detection Q

2010-10-07 Thread Jack
richard terry a écrit : >>From the docs: > >If Key.Code = Key["R"] And If Key.Control Then >Print "You hit CTRL+R" >End If > > If my hands this does the following > Key.code = 1677724 > Key["R"] = 82 > Key.control = true > > but I'm probably pressing ctrl + small r I guess: >

[Gambas-user] Control + key combination detection Q

2010-10-07 Thread richard terry
>From the docs: If Key.Code = Key["R"] And If Key.Control Then Print "You hit CTRL+R" End If If my hands this does the following Key.code = 1677724 Key["R"] = 82 Key.control = true but I'm probably pressing ctrl + small r I guess: Clearly they don't match If I put on the capsl