private void onEnterPressed() {

        if (isEnabled()) {
            if (m_widget.hasSubMenu()) {
                if (!m_widget.isSubmenuOpen()) {
                    boolean menuClosed = m_widget.onItemClicked();
                    m_contextMenuRpc.itemClicked(m_widget.getId(), menuClosed);
                }
            } else {
                boolean menuClosed = m_widget.onItemClicked();
                m_contextMenuRpc.itemClicked(m_widget.getId(), menuClosed);
            }
        }
    }
private void onEnterPressed ( ) { if ( isEnabled ( ) ) { if ( m_widget . hasSubMenu ( ) ) { if ( ! m_widget . isSubmenuOpen ( ) ) { boolean menuClosed = m_widget . onItemClicked ( ) ; m_contextMenuRpc . itemClicked ( m_widget . getId ( ) , menuClosed ) ; } } else { boolean menuClosed = m_widget . onItemClicked ( ) ; m_contextMenuRpc . itemClicked ( m_widget . getId ( ) , menuClosed ) ; } } }
On enter press.<p>