title: WPF do inputbindings take priotiy over keyboard focus?
body: <p>My question probably sounds really strange, but basically I wanted to have a command (ZoomCommand) available at the application level. However, when I set it in the input bindings of the control like this:</p>
  
  <pre><code> &lt;UserControl&gt;    
      &lt;UserControl.InputBindings&gt;
         &lt;KeyBinding
                Command="{x:Static ViewModels:GraphViewerViewModel.ZoomToFitCommand}"
                Key="F"
                /&gt;
       &lt;/UserControl.InputBindings&gt;
  
      &lt;Searchbox /&gt;
  
      &lt;OtherControl /&gt;
      &lt;OtherControl /&gt;
      &lt;OtherControl /&gt;
   &lt;/UserControl&gt;
  </code></pre>
  
  <p>my search box stops working correctly. When I am typing in the searchbox, the command takes place when the hotkey is pressed. I want to have the command not take place when the searchbox has keyboard focus. I am actually rather surprised that bindings on keys at the control level take place even when a subcontrol has keyboard focus. Is there any way around this? </p>
  
  <p>I just want the inputbinding to take place when most portions of the control have focus, but not have it take place when the searchbox has keyboard focus?</p>
  
  <p>or do I have to just place my inputbinding manually on every control other than the searchbox, like I have done:</p>
  
  <pre><code>  &lt;UserControl&gt;    
  
      &lt;Searchbox /&gt;
  
      &lt;OtherControl&gt;
         &lt;OtherControl.InputBindings&gt;
           &lt;KeyBinding
                Command="{x:Static ViewModels:GraphViewerViewModel.ZoomToFitCommand}"
                Key="F"
                /&gt;
         &lt;/OtherControl.InputBindings&gt;
      &lt;/OtherControl&gt;
  
  
      &lt;OtherControl&gt;
         &lt;OtherControl.InputBindings&gt;
           &lt;KeyBinding
                Command="{x:Static ViewModels:GraphViewerViewModel.ZoomToFitCommand}"
                Key="F"
                /&gt;
         &lt;/OtherControl.InputBindings&gt;
      &lt;/OtherControl&gt;
  
      &lt;OtherControl&gt;
         &lt;OtherControl.InputBindings&gt;
           &lt;KeyBinding
                Command="{x:Static ViewModels:GraphViewerViewModel.ZoomToFitCommand}"
                Key="F"
                /&gt;
         &lt;/OtherControl.InputBindings&gt;
      &lt;/OtherControl&gt;
   &lt;/UserControl&gt;
  </code></pre>