]> git.neil.brown.name Git - edlib.git/commit
Clarify key_handle*
authorNeilBrown <neil@brown.name>
Fri, 11 Dec 2015 23:47:21 +0000 (10:47 +1100)
committerNeilBrown <neil@brown.name>
Fri, 11 Dec 2015 23:47:21 +0000 (10:47 +1100)
commitb84ba2c862be7d9b06b3d136ae9381e1d890d47e
tree55508fe0ccbb2e99cd23c724aca61fe890e2cf0c
parent80cce7e3c34f04c3569eb3cb1659cca13c776f33
Clarify key_handle*

key_handle should be used most often.
  It uses the focus given, but moves 'home' out to a leaf and
    searches in from there.
key_handle_filter should be used only when calling a function with
    the same name as self.  It uses focus and home as given and
    only searches home towards root
key_handle_focus should be used when simulting keyboard input.  It
    moves focus out to a leaf, and then sets home from there.
key_handle_xy should be used when simulatiing mouse input.  it follows
    focus out to a root tracking x,y and starts home from there.

key_handle_focus and key_handle_xy also pick-up ->point if it is set on
any pane on the way out.

Signed-off-by: NeilBrown <neil@brown.name>
12 files changed:
core-doc.c
core-keymap.c
core-mark.c
core-pane.c
core.h
display-ncurses.c
doc-text.c
lib-input.c
lib-popup.c
mode-emacs.c
render-complete.c
render-lines.c