<reponame>bforest-ariadne/Live-AV-Template
# me - This DAT
# 
# dat - The DAT that received the key event
# key - The name of the key attached to the event.
#		This tries to be consistent regardless of which language
#		the keyboard is set to. The values will be the english/ASCII
#		values that most closely match the key pressed.
#		This is what should be used for shortcuts instead of 'character'.
# character - The unicode character generated.
# alt - True if the alt modifier is pressed
# ctrl - True if the ctrl modifier is pressed
# shift - True if the shift modifier is pressed
# state - True if the event is a key press event
# time - The time when the event came in milliseconds

def onKey(dat, key, character, alt, lAlt, rAlt, ctrl, lCtrl, rCtrl, shift, lShift, rShift, state, time):
	return

# shortcutName is the name of the shortcut

def onShortcut(dat, shortcutName, time):
	if shortcutName == 'ctrl.shift.c':
		# toggle cook_bar Active
		op('/scripts/cook_bar').par.Active = not op('/scripts/cook_bar').par.Active
	return
	
# me - This DAT
# 
# dat - The DAT that received the key event
# key - The name of the key attached to the event.
#		This tries to be consistent regardless of which language
#		the keyboard is set to. The values will be the english/ASCII
#		values that most closely match the key pressed.
#		This is what should be used for shortcuts instead of 'character'.
# character - The unicode character generated.
# alt - True if the alt modifier is pressed
# ctrl - True if the ctrl modifier is pressed
# shift - True if the shift modifier is pressed
# state - True if the event is a key press event
# time - The time when the event came in milliseconds

def onKey(dat, key, character, alt, lAlt, rAlt, ctrl, lCtrl, rCtrl, shift, lShift, rShift, state, time):
	return

# shortcutName is the name of the shortcut

def onShortcut(dat, shortcutName, time):
	if shortcutName == 'ctrl.shift.c':
		# toggle cook_bar Active
		op('/scripts/cook_bar').par.Active = not op('/scripts/cook_bar').par.Active
	return
# me - This DAT # # dat - The DAT that received the key event # key - The name of the key attached to the event. #		This tries to be consistent regardless of which language #		the keyboard is set to. The values will be the english/ASCII #		values that most closely match the key pressed. #		This is what should be used for shortcuts instead of 'character'. # character - The unicode character generated. # alt - True if the alt modifier is pressed # ctrl - True if the ctrl modifier is pressed # shift - True if the shift modifier is pressed # state - True if the event is a key press event # time - The time when the event came in milliseconds # shortcutName is the name of the shortcut # toggle cook_bar Active