• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daviferreira / medium-editor / 1841
96%
master: 95%

Build:
Build:
LAST BUILD BRANCH: custom-events-fix
DEFAULT BRANCH: master
Ran 28 May 2015 01:14PM UTC
Jobs 1
Files 23
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1841

push

travis-ci

j0k3r
Create Util.isKey to check if key is in an event

Instead of always trying to find which key is associated to an event for all browsers, I created a helper in Util to check if the associated key of an event is the one (or multiple) we are looking for.

I follow what is already done by jQuery to detect the key code from an event.

It'll ease the transition when the `.key` will be compatible with all browsers (https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key)

2060 of 2156 relevant lines covered (95.55%)

291.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1841.1 28 May 2015 01:14PM UTC 0
95.55
Travis Job 1841.1
Source Files on build 1841
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1841
  • 8934a0cd on github
  • Prev Build on keycode (#1835)
  • Next Build on keycode (#1842)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc