Closed Breush closed 8 years ago
In the following example, "accel2" should still be active, but is not:
"accel2"
var label = new photonui.Label({text: ""}); photonui.domInsert(label, "demo"); var accel = new photonui.AccelManager(); accel.addAccel("accel1", "ctrl + a", function() { label.text += "1\n"; }); accel.addAccel("accel2", "ctrl + a", function() { label.text += "2\n"; }); accel.removeAccel("accel1");
In the following example,
"accel2"
should still be active, but is not: