()
| 177 | |
| 178 | d3.select(window).on('resize.keyboard', redrawKeyboard) |
| 179 | function redrawKeyboard() { |
| 180 | xScale = d3.scale.linear().range(["0px", (module.sel.node().offsetWidth / keyboardWidth)+"px"]); |
| 181 | keyboard.selectAll(".key") |
| 182 | .style("width", _.compose(xScale, ƒ('dx'))) |
| 183 | .style("height", xScale.range()[1]); |
| 184 | } |
| 185 | |
| 186 | function typeKey(e) { |
| 187 | // Get the key code |
nothing calls this directly
no outgoing calls
no test coverage detected