"""Set the key bindings for the PsychoPy app"""
# NB Ctrl- becomes Cmd- automatically on Apple platform
# All letter keys should be upper case

open = "Ctrl+O"
new = 'Ctrl+N'
save = "Ctrl+S"
saveAs = "Ctrl+Shift+S"
close = 'Ctrl+W'
quit = 'Ctrl+Q'

cut = 'Ctrl+X'
copy = 'Ctrl+C'
paste = 'Ctrl+V'
duplicate = 'Ctrl+D'  # duplicate the current line
indent = 'Ctrl+]'  # indent all the selected lines by 4 spaces
dedent = 'Ctrl+['
smartIndent = 'Shift+Tab'
find = 'Ctrl+F'
findAgain = 'Ctrl+G'
undo = 'Ctrl+Z'
redo = 'Ctrl+Y'

compileScript = 'Ctrl+Shift+F5'  # builder only
analyseCode = 'F4'  # coder only
runScript = 'F5'
stopScript = 'Shift+F5'
comment = "Ctrl+'"
uncomment = "Ctrl+Shift+'"
fold = 'Ctrl+Home'

switchToBuilder = "Ctrl+L"
switchToCoder = "Ctrl+L"