Modify japaneseinputidle to take multiple elements.