﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2839	GUISetAccelerators - accelerators 1D Array - AutoIt HardCrash	mLipok	Jon	"Here is repro script:

{{{
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>

Example()

Func Example()
	GUICreate(""Custom MsgBox"", 225, 80)

	GUICtrlCreateLabel(""Please select a button."", 10, 10)
	Local $idYes = GUICtrlCreateButton(""Yes"", 10, 50, 65, 25)
	Local $idNo = GUICtrlCreateButton(""No"", 80, 50, 65, 25)
	Local $idExit = GUICtrlCreateButton(""Exit"", 150, 50, 65, 25)

	; Set GUIAccelerators for the button controlIDs, these being Ctrl + y and Ctrl + n

	; Below Original line from HelpFile
	; Local $aAccelKeys[2][2] = [[""^y"", $idYes], [""^n"", $idNo]]

	; Below my modified line
	Local $aAccelKeys[2] = [""^y"", $idYes]

	; HereIs HardCrash
	GUISetAccelerators($aAccelKeys)

	GUISetState(@SW_SHOW) ; Display the GUI.

	While 1
		Switch GUIGetMsg()
			Case $GUI_EVENT_CLOSE
				MsgBox($MB_SYSTEMMODAL, ""You selected"", ""Close"")
				ExitLoop

			Case $idYes
				MsgBox($MB_SYSTEMMODAL, ""You selected"", ""Yes"") ; Displays if the button was selected or the hotkey combination Ctrl + y was pressed.

			Case $idNo
				MsgBox($MB_SYSTEMMODAL, ""You selected"", ""No"") ; Displays if the button was selected or the hotkey combination Ctrl + n was pressed.

			Case $idExit
				MsgBox($MB_SYSTEMMODAL, ""You selected"", ""Exit"")
				ExitLoop

		EndSwitch
	WEnd
	GUIDelete() ; Delete the GUI.
EndFunc   ;==>Example

}}}

tested on Relase and Beta version"	Bug	closed	3.3.13.18	AutoIt	3.3.12.0	None	Fixed		
