Try It Out

Try the following keyboard shortcuts in your browser window:

 

What is this?

This is an example of manipulating window position using keyboard shortcuts similar to the mac application Magnet. This jQuery plugin binds keyboard shortcut events to the window element and when a key combination is pressed, an event is triggered following that keyboard shortcut.

 

Options

 

Get Started

  1. Include jQuery
  2. Include Keyboard Shortcuts jQuery Plugin
  3. Initialize
    • $(window).initKeyboard()
  4. Add events
    • $(window).on('Shift+▶', function(){
          // Execute function here
      });