wanadev / PhotonUI

A javascript framework to create user interfaces
http://wanadev.github.io/PhotonUI/
BSD 3-Clause "New" or "Revised" License
63 stars 20 forks source link

Slider + AccelManager conflict #51

Closed PierreHei closed 8 years ago

PierreHei commented 8 years ago

The slider element blocks all keyboard inputs if it's focused, even with the safe argument passed to false in the addAccel method, like in the following code :

var slider = new photonui.Slider({
    fieldVisible: true,
    min: 0, max: 100,
    step: 10,
    value: 50
});
photonui.domInsert(slider, "demo");

var label = new photonui.Label({text: ""});
photonui.domInsert(label, "demo");

var accel = new photonui.AccelManager();

accel.addAccel("accel3", "ctrl + q", function() {
    label.text += "'Ctrl + Q' accelerator\n";
}, false);
Breush commented 8 years ago

So it's closed by f6a1751, right?

flozz commented 8 years ago

Yes f6a1751 fixes this issue. This issue will automatically be closed when the fix will be merged into master (for the next release).