a3d68d2b21
The Xaml input stack doesn't allow an application to suppress the "caret browsing" dialog experience triggered when you press F7. The official recommendation from the Xaml team is to catch F7 before we hand it off. This commit introduces a special F7 handler and an ad-hoc implementation of event bubbling. Runtime classes implementing a custom IF7Listener interface are considered during a modified focus parent walk to determine who can handle F7 specifically. If the recipient control handles F7, we suppress the message completely. This event bubbler has some minor issues -- the search box will not be able to receive F7 because its parent control implements the handler. Since search is already mostly a text box, it doesn't _need_ special caret browsing functionality as far as I can tell. TermControl implements its OnF7Pressed handler by synthesizing a keybindings event and an event to feed into Terminal Core directly. It's not possible to create a synthetic KeyPressRoutedEvent; if it were, I would have just popped one into the traditional input queue. :) Fixes #638. |
||
---|---|---|
.. | ||
Resources | ||
init.cpp | ||
packages.config | ||
pch.cpp | ||
pch.h | ||
SearchBoxControl.cpp | ||
SearchBoxControl.h | ||
SearchBoxControl.idl | ||
SearchBoxControl.xaml | ||
TermControl.cpp | ||
TermControl.h | ||
TermControl.idl | ||
TermControl.xaml | ||
TermControlAutomationPeer.cpp | ||
TermControlAutomationPeer.h | ||
TermControlAutomationPeer.idl | ||
TerminalControl.def | ||
TerminalControl.vcxproj | ||
TerminalControl.vcxproj.filters | ||
TSFInputControl.cpp | ||
TSFInputControl.h | ||
TSFInputControl.idl | ||
TSFInputControl.xaml | ||
XamlUiaTextRange.cpp | ||
XamlUiaTextRange.h |