def _on_char(self, event):

        # Trait notification.
        self.key_pressed = event.GetKeyCode()

        return

#### EOF ######################################################################
Called when a key is pressed when the tree has focus.
dataset/ETHPy150Open enthought/pyface/pyface/viewer/tree_viewer.py/TreeViewer._on_char