gtkMenuShellSetTakeFocus        package:RGtk2        R Documentation

_g_t_k_M_e_n_u_S_h_e_l_l_S_e_t_T_a_k_e_F_o_c_u_s

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

     If 'take.focus' is 'TRUE' (the default) the menu shell will take
     the keyboard  focus so that it will receive all keyboard events
     which is needed to enable keyboard navigation in menus.

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

     gtkMenuShellSetTakeFocus(object, take.focus)

_A_r_g_u_m_e_n_t_s:

'object': ['GtkMenuShell']  a 'GtkMenuShell'

'take.focus': [logical] 'TRUE' if the menu shell should take the
          keyboard focus on popup.

_D_e_t_a_i_l_s:

     Setting 'take.focus' to 'FALSE' is useful only for special
     applications like virtual keyboard implementations which should
     not take keyboard focus.

     The 'take.focus' state of a menu or menu bar is automatically
     propagated to submenus whenever a submenu is popped up, so you
     don't have to worry about recursively setting it for your entire
     menu hierarchy. Only when programmatically picking a submenu and
     popping it up manually, the 'take.focus' property of the submenu
     needs to be set explicitely.

     Note that setting it to 'FALSE' has side-effects:

     If the focus is in some other app, it keeps the focus and keynav
     in the menu doesn't work. Consequently.

     To avoid confusing the user, menus with 'take.focus' set to
     'FALSE' should not display mnemonics or accelerators, since it
     cannot be guaranteed that they will work.

     See also 'gdkKeyboardGrab'  

     Since  2.8

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

     Derived by RGtkGen from GTK+ documentation

