Method: RubyCurses::TextView#fire_action_event
- Defined in:
- lib/rbcurse/core/widgets/rtextview.rb
#fire_action_event ⇒ Object
on pressing ENTER we send user some info, the calling program would bind :PRESS – FIXME we can create this once and reuse ++
640 641 642 643 644 645 |
# File 'lib/rbcurse/core/widgets/rtextview.rb', line 640 def fire_action_event return if @list.nil? || @list.size == 0 require 'rbcurse/core/include/ractionevent' aev = TextActionEvent.new self, :PRESS, current_value().to_s, @current_index, @curpos fire_handler :PRESS, aev end |