Commit d63e8547 authored by Mathieu Giraud's avatar Mathieu Giraud

scatterPlot.js, shortcut.js: numeric keypad shortcuts work again

Was broken since 19ebae45.
parent 6107deb8
......@@ -649,6 +649,7 @@ ScatterPlot.prototype = {
}
this.select_preset = document.createElement('select');
this.select_preset.className = "axis_select_preset_select";
//Initialisation du menu déroulant
this.select_preset.setAttribute('name', 'select_preset[]');
this.select_preset.onchange = function() {
......
......@@ -96,7 +96,7 @@ Shortcut.prototype = {
break;
default:
if ((key >= 96) && (key <= 105)) { // Numeric keypad, 0-9
var select_preset = document.getElementById("select_preset")
var select_preset = document.getElementsByClassName("axis_select_preset_select")[0]
select_preset.selectedIndex = key - 95
try {
sp.changePreset(select_preset)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment