here is the snippet of code.

      keypress do |key|
        case key 

#only enter key (that's above the right hand shift) key works!!!
        when :enter, '\n'    
          what_has_data

#uncomment the 2 lines below, (remove the comma and '\n' above) and I at least 
#get the response expected
#        when "\n"
#         what_has_data
          
        end  

now if i changed the '\n' for a "\n" or the \ for a / ONLY 1 of the 2 enter 
keys works (you may have return and an enter on your keyboard).

Dave.

Reply via email to