# File locana/l_menu.rb, line 306 def on_enter_key(levent=nil, &block) return bind(:on_enter_key, block) if (block) # this necessary to support Blocks the same as Proc objects if (sub_menu) l_activate_menu(levent) else on_click(levent) # this will eventually trigger a :on_click event for the selected menu end end