locked
Catch Key Event in a Window RRS feed

  • Question

  • Hello

    I have a window with Web view Which uses full available space on screen I need to catch users key down event how can I achieve it?

    Note my webview is navigated to some webpage (already loaded on screen).

    I tried this but not firing

     private void webview_KeyDown(object sender, KeyRoutedEventArgs e)
            {
              // can't catch anything here.
            }
    
        
    
            private void webview_Loaded(object sender, RoutedEventArgs e)
            {
                webview.KeyDown += webview_KeyDown;
            }
    
            private void webview_Unloaded(object sender, RoutedEventArgs e)
            {
                webview.KeyDown -= webview_KeyDown;
            }


    Santana George


    Sunday, November 24, 2013 5:27 PM

Answers