addToKeyVals             package:iSPlot             R Documentation

_A_d_d _v_a_l_u_e_s _f_o_r _t_h_e _k_e_y _p_r_e_s_s _e_v_e_n_t

_D_e_s_c_r_i_p_t_i_o_n:

     The addToKeyVals function will add to the keyVals variable stored
     in controlEnv.  It is this variable, keyVals, that determines what
     key press events the Gtk windows will respond to.  Thus, the
     keyVals variable will be  different if the views are created
     through the command line functions or through the user interface.

_U_s_a_g_e:

     addToKeyVals(text, action, ...)

_A_r_g_u_m_e_n_t_s:

    text: the text that would be placed on the menu item label 

  action: the response should occur when the key press event occurs
          (this may either be a function name or the text used in
          updateControlWindow)

     ...: only used when the action corresponds to focusing on a view
          so this parameter will contain the window number of the view 

_D_e_t_a_i_l_s:

     If the control window is created, then there will be key press
     events for all menu items (this is done through two function
     calls, createMenuItem and createView). If the views are created
     through the command line functions, then there will be key press
     events for quitting and for setting the focus on a view (this is
     done through the functions createMenuItemVariables and
     createView).

_A_u_t_h_o_r(_s):

     Elizabeth Whalen

_S_e_e _A_l_s_o:

     'addMenuItem'

_E_x_a_m_p_l_e_s:

       if (interactive())
       {
         loadData("USArrests")
         setActiveMVC("USArrests")
         createSpreadsheet()
         # now while the spreadsheet is active, press Ctrl+Q and a window will
         # appear asking if you would like to quit
       }

