View Issue Details

IDProjectCategoryView StatusLast Update
0007721Multi Theft Auto : San AndreasClientpublic2013-08-05 04:47
ReporterWafamde Assigned Toccw  
Status resolvedResolutionfixed 
Target Version1.3.4Fixed in Version1.3.4 
Summary0007721: cancelEvent() onClientKey escape key bug

Cancelling "escape" onClientKey works like:

  • Press "escape", cancelEvent(), cancel SUCCESS.
  • Press other keys.
  • Press "escape" again, cancelEvent() cancel SUCCESS.

Other keys needs to be pressed in order to cancel it again.
But I can do:

  • Press ESC, cancel SUCCESS.
  • spam other keys.
  • press ESC again, cancel FAIL.

So there obviously is an issue with it somewhere.

Steps To Reproduce

Use runcode or move "crun" from line below.

crun addEventHandler( "onClientKey", root, function(button,state) if button == "escape" and state then cancelEvent() outputDebugString( "Main menu should NOT open!" ) end end )

Additional Information

TagsNo tags attached.

Issue History

Date Modified Username Field Change