def enable_normal_mode(self):
        """Assign normal mode behaviour to event handling."""
        ### store name of current mode
        mode_name = self.get_mode()

        ### change mode to normal mode by assigning the
        ### respective handle_input behaviour
        self.handle_input = self.normal_mode_handling

        ### disable text editing events
        stop_text_input()

        ### admin task: move the cursor one character to
        ### the left if previous mode was 'insert' mode;
        ###
        ### this behaviour is the same as the one performed
        ### in the vim editor, and I assume it exists to
        ### prevent the cursor from resting at the right
        ### side of the last character, in case it is
        ### positioned there when leaving insert mode
        if mode_name == "insert":
            self.go_left()

        ### indicate the normal mode in the statusbar
        ### (by having it show nothing, just like in Vim
        ### software)
        self.te.statusbar.set("")
Assign normal mode behaviour to event handling.
nodezator/textman/editor/cursor/op.py