method on_cursor_moved =
      if self#has_focus then
        self#update_my_location
      else
        ()