Exemplo n.º 1
0
 private void GlobalHookKeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     if (!IsKeyboardFocusWithin)
     {
         if (_modified)
         {
             ScriptTextBox.GetBindingExpression(
                 TextBox.TextProperty)
             .UpdateSource();
             _modified = false;
         }
         ForView.Unwrap <MainViewModel>(DataContext, vm => vm.KeyDown(e));
     }
 }