> From: James Paige <[email protected]>
> Sent: Thursday, November 04, 2010 10:51 AM
>
> On Wed, Nov 03, 2010 at 08:24:52PM -0700, Jay Tennant wrote:
> > > From: [email protected]
> > > Sent: Wednesday, November 03, 2010 10:02 PM
> > >
> > > jay
> > > 2010-11-03 20:01:02 -0700 (Wed, 03 Nov 2010)
> > > 83
> > > Rewrote CapsLock check to strgrabber. I don't know if it works. (Can't
> > > compile fb.)
> > > ---
> > > U wip/customsubs.bas
> >
> > Can someone verify this works? It'd finish fixing bug 856 if it does.
>
> XOR was the wrong operator to be using. It was actually working for some
> letters but not for others. I decided it was cleaner to use a separate
> variable to track capslock state instead of making capslock modify the
> shift state.
Oops. I meant to toggle shift state when it was a letter. Isn't XOR used for
toggling bits? As in:
shift = 1 (shift is 1)
shift = shift xor 1 (shift is now 0)
shift = 0
shift = shift xor 1 (shift is now 1)
Well, I'm happy its working now anyway. :)
I guess we can close bug 856 then.
> And your IF statement for checking the alphabetic keys was perfect, but
> I replaced it with a SELECT because it turned out to be easier to read
> that way.
_______________________________________________________
Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting
http://www.doteasy.com
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org