title: Angular 2+ elegant way to intercept Command+S
body: <p>Trying to implement a shortcut key combination for Command+S to save a form.</p>
  
  <p>I've read this - <a href="https://angular.io/guide/user-input" rel="noreferrer">https://angular.io/guide/user-input</a>, but it does not say anything about meta or command.</p>
  
  <p>Tried surrounding the form with:</p>
  
  <pre><code>&lt;div
    (keyup.command.s)="save()"
    (keyup.command.u)="save()"
    (keyup.control.u)="save()"
    (keyup.control.s)="save()"
    (keyup.meta.u)="save()"
  &gt;
  </code></pre>
  
  <p>Of those, only <code>control.u</code> and <code>control.s</code> worked.</p>
  
  <p>With all the power and cross-browser capabilities of Angular 2+, I was hoping that this is somehow handled in an elegant way, using <code>(keyup...)</code>.</p>
  
  <p>And for sure many Angular Devs use Macs :).</p>
  
  <p>I've also read <a href="https://stackoverflow.com/questions/3902635/how-does-one-capture-a-macs-command-key-via-javascript">How does one capture a Mac&#39;s command key via JavaScript?</a> and <a href="http://unixpapa.com/js/key.html" rel="noreferrer">http://unixpapa.com/js/key.html</a> but still hoping for Angular elegant solution instead of fighting with browser-specific stuff...</p>