removeAccelerators          package:iSPlot          R Documentation

_R_e_m_o_v_e _A_c_c_e_l_e_r_a_t_o_r_s _R_e_l_a_t_i_n_g _t_o _a _W_i_n_d_o_w

_D_e_s_c_r_i_p_t_i_o_n:

     removeAccelerators removes all accelerators from the environment 
     variable, keyVals, in controlEnv that have a winNum element.  The 
     keyVals variable stores all the accelerator keys for the control
     window.  Using the keyVals variable, any new window that opens can
      have the same key press events as the control window.  The
     function, removeAccelerators, is called whenever a view window is
     destroyed and thus, the accelerator for that window must be
     removed.

_U_s_a_g_e:

     removeAccelerators()

_A_u_t_h_o_r(_s):

     Elizabeth Whalen

_S_e_e _A_l_s_o:

     'setDeleteEvents',  'createMenuItem'

_E_x_a_m_p_l_e_s:

       if (interactive())
       {
         createControlWindow()
         # should load data through Open Data or Open File under the File menu
         data(USArrests)
         loadDFData(USArrests,"USArrests")
         # plotting the data should occur through Plot Data under 
         # the Display menu
         createView(type = "plotView", dataName = "USArrests", 
                    plotType = "sPlotView", dfRows = 1:nrow(USArrests), 
                    dfColumns = 1:2)  

         # now close the scatterplot window; the Window menu on the control
         # window will no longer have Window 1 as a sub menu item and pressing
         # Ctrl+1 will not result in any action    
       }

