def _wx_on_char(self, event):

        self.key_pressed = KeyPressedEvent(
            alt_down     = event.m_altDown == 1,
            control_down = event.m_controlDown == 1,
            shift_down   = event.m_shiftDown == 1,
            key_code     = event.m_keyCode,
            event        = event
        )

        event.Skip()

#### EOF ######################################################################
Called when a key is pressed when the tree has focus.
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/window.py/Window._wx_on_char