k icon indicating copy to clipboard operation
k copied to clipboard

"*" and "x + *" don't work

Open darsain opened this issue 9 years ago • 7 comments

I assume * is supposed to be an "any character" flag, in which case these shortcuts don't work:

  • *
  • x + *

Why would I want it?

I was recently working on a UI element that needed to be populated with different sets of data for the purposes of testing, so I imagined streamlining it into something like:

k('s + *', function (event){
  // make s+0 to s+9 shortcuts (determined based on `event.which`,
  // which should be a number button) populate the element with different data sets
  // if `event.which` isn't a number key, ignore
});

The way how I made it to work was with s * shortcut, which is just awkward to use, as you have to completely release all keys before trying out different one.

darsain avatar Nov 23 '14 10:11 darsain