]> git.neil.brown.name Git - edlib.git/commit
Start changing rules about ->focus and ->home
authorNeilBrown <neil@brown.name>
Fri, 11 Dec 2015 00:21:52 +0000 (11:21 +1100)
committerNeilBrown <neil@brown.name>
Fri, 11 Dec 2015 00:21:52 +0000 (11:21 +1100)
commit1898f1ac80248904f4f04c7df562d5e04692b2b3
treef109e66c6ed8648721a7f819fa9d09eb7df6e2c7
parentf182cea3e447b7cf6279b6970544440be81a64c3
Start changing rules about ->focus and ->home

I'm still thinking this through....

'home' must always be the pane where the command was found.
'focus' should be where the action happens.

Previously 'home' would always end up being a parent of 'focus' but
sometimes, particularly calls from popup to target, we want something else.

So allow the caller to set 'focus' to themselves and 'home' to where
to start looking for the command.
If either is home is not set, focuses it moved out to a leaf first.

This still seems a bit clumsy...

Signed-off-by: NeilBrown <neil@brown.name>
core-keymap.c