Canvas.MouseEvent: fix specific modifier states (ctrl, alt,...)
This commit is contained in:
parent
86ba2a1628
commit
ef3f0a2738
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ naRef f_groupGetElementById(sc::Group& group, const nasal::CallContext& ctx)
|
|||
template<int Mask>
|
||||
naRef f_eventGetModifier(naContext, sc::MouseEvent& event)
|
||||
{
|
||||
return naNum((event.getButtonMask() & Mask) != 0);
|
||||
return naNum((event.getModifiers() & Mask) != 0);
|
||||
}
|
||||
|
||||
naRef to_nasal_helper(naContext c, const sc::ElementWeakPtr& el)
|
||||
|
|
Loading…
Add table
Reference in a new issue