Closed daiyi closed 7 years ago
Thanks! and good catch.
I was actually just working on a related issue yesterday in Maria, and found a helpful google closure function that normalizes keycodes across browsers:
https://github.com/google/closure-library/blob/master/closure/goog/events/keycodes.js#L393
I used it here:
https://github.com/mhuebert/maria/blob/master/src/maria/commands/registry.cljs#L113
Ohh this is great, I was looking for something like this the other day! Thanks!
Making the examples friendly to non-Mac non-Chrome users (:
I propose changing the evaluate keybinding to ctrl-enter rather than cmd-enter because the
KeyboardEvent.metaKey
is not available on Firefox 48+ for non-Mac users:(source)