c# - WPF Textbox is not capturing the delete key -
i creating extension visual studio 2015. have popup window made wpf , xaml. in window have search bar, when try use delete key, doesn't work. focus seems on solution explorer because when typing in search box, pressing delete key brings message asking if want delete selected project solution.
i have tried of events can think of, including: keydown, keyup, previewkeydown, previewkeyup, textchanged. when focused on text box, these work other keys on keyboard (even backspace), none of these events called when delete key pressed.
i know delete key works, because brings message deleting project solution, doesn't work in text box.
any help/suggestions appreciated.
thanks sergey comment. changes way window worked, fixed problem me: visual studio editor window stealing focus
Comments
Post a Comment