Java(GWT) API for MouseTrap (https://github.com/ccampbell/mousetrap)
JavaScript Java XML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ahome-mousetrap
LICENSE
README.md

README.md

Ahomé-MouseTrap

About Ahomé-Enquire

Built on-top of Mousetrap.js, Ahomé-Enquire is a GWT-based library that helps you easely handle keyboard events in your web application.

Enterprise Support

Get high quality support through Ahomé (Note that all Ahomé Tools are FREE to use with an Apache 2 License).

Community

Getting Started with Ahomé-MouseTrap

1) Download the jar file

2) Inherit the ahome-enquire module

<inherits name='com.ait.toolkit.mouseTrap.MouseTrap'/>

3) Start coding

package com.ait.toolkit.playground.client;

import com.ait.toolkit.mousetrap.client.MouseTrap;
import com.ait.toolkit.mousetrap.client.MouseTrapEvent;
import com.ait.toolkit.mousetrap.client.MouseTrapHandler;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;

public class MouseTrapExample implements EntryPoint {

    @Override
    public void onModuleLoad() {
        MouseTrap.bind("command+shift+k", new MouseTrapHandler() {
            @Override
            public void onEvent(MouseTrapEvent event, String combo) {
                Window.alert("You pressed command+shift+k !");
            }
        });

    }

}

4) Find more code in the Examples folder

5) Learn more about our Open Source tools HERE