提交 042bda1d 编写于 作者: J Joao Moreno

fix keydown on filter on type

上级 e733f8a6
......@@ -359,7 +359,7 @@ class TypeFilterController<T, TFilterData> implements IDisposable {
const isPrintableCharEvent = keyboardNavigationLabelProvider.mightProducePrintableCharacter ? (e: IKeyboardEvent) => keyboardNavigationLabelProvider.mightProducePrintableCharacter!(e) : (e: IKeyboardEvent) => mightProducePrintableCharacter(e);
const onInput = Event.chain(domEvent(view.getHTMLElement(), 'keydown'))
.filter(e => !isInputElement(e.target as HTMLElement))
.filter(e => !isInputElement(e.target as HTMLElement) || e.target === filterOnType)
.map(e => new StandardKeyboardEvent(e))
.filter(e => e.keyCode === KeyCode.Backspace || e.keyCode === KeyCode.Escape || isPrintableCharEvent(e))
.forEach(e => { e.stopPropagation(); e.preventDefault(); })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册