On Thu, 11 Jun 2009, dave wrote:

> No she's right, I have checked also and i didn't show that code only made 

Not sure who "she" is, but no matter.
> comments about it.
> 
> I am happy with it so will run as it is but i _do_ know it failed on me in 
> testing. using the comma as a separator between the :enter and the "\n"

If you can show it fails on your system when it ought to work and we can 
find which systems fail similarly, that would be useful to _Why.

If you keep the code in some version control system, it would help when
trying to move back and forth like this.  Lots to choose from and it's
a topic in itself.  I've not found one that's really intuitive to teach
people, especially those used to GUIs.
> 
> Am just grateful for your help.

That's OK, I see it as a way to help _Why with this project, for one thing!
> 
> cheers,
> 
> Dave.

        Hugh
> 
> 
> On Thursday 11 June 2009 10:50:24 pm Hugh Sasse wrote:
> > On Thu, 11 Jun 2009, dave wrote:
> > > Hugh,
> > >
> > > Yes i did see it but it didn't register with me.
> > >
> > > so can i infer that this would be okay?
> > > when :enter, '\n'    as you had in this (see below)?
> > >
> > > > > > > when :baz, 'baz'
> >
> > That ought to work from what I know of Ruby syntax, provided keypress
> > yields those to the block.
> >
> > > reason why i ask is that the keypress for the enter key above your shift
> > > key returns the :enter value and the enter key on the numeric pad give
> > > the \n or newline character.
> > >
> > > I had tried :enter, '\n' also :enter, "\n" but the numeric keypad
> > > wouldn't respond to the keypress on the numeric pad.
> > >
> > > If you re read my posting i am sure i said i'd tried single & double
> > > qutoes about the \n and had tried , and the ; between the two values  eg
> > > when :enter, '\n'  -  when ęnter;'\n'  - when :enter, "\n"  - when
> > > :enter; "\n" all not responding to the numeric pad enter press.
> >
> > Quickly looking through the postings, I don't see an example of your code
> > using this case form with those.  The use of semi-colon won't work.
> > Your earlier code didn't use a block with keypress, your later code used
> > if statements instead.
> >
> > > can you confirm that what ie say above works or fails on your system?
> >
> > I don't have time to write code and test this at the moment, sorry.
> >
> > > thanks.
> >
> >         Hugh
> >
> 
> 

Reply via email to