From b07d922488d9ecc844b45c68c07bfb77633385d2 Mon Sep 17 00:00:00 2001 From: Amila Welihinda Date: Sat, 15 Sep 2018 11:41:22 -0700 Subject: [PATCH] Migrate example to es6 --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 81a91409..05ad432c 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ It has support for ``keypress``, ``keydown``, and ``keyup`` events on specific k or install `mousetrap` from `npm` and require it ```js - var Mousetrap = require('mousetrap'); + const Mousetrap = require('mousetrap'); ``` 2. Add some keyboard events to listen for @@ -33,15 +33,15 @@ It has support for ``keypress``, ``keydown``, and ``keyup`` events on specific k ```html