Skip to content

Commit

Permalink
Debugger: Move shortcut handling to SciTE (ahk.debugger.shortcuts)
Browse files Browse the repository at this point in the history
  • Loading branch information
fincs committed May 11, 2022
1 parent ba04873 commit 9b5af17
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
8 changes: 5 additions & 3 deletions source/SciTEGlobal.properties
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,16 @@ print.footer.style=font:Arial Narrow,size:10,italics
# A '&' may be placed before a letter to be used as an accelerator. This does not work on GTK+.
menu.language=$(star language.menu.)

# Contextual menu
user.context.menu=$(ahk.context.menu)$(s4ahk.user.context.menu)

# User defined key commands
user.shortcuts=\
Ctrl+Shift+V|IDM_PASTEANDDOWN|\
Ctrl+PageUp|IDM_PREVFILE|\
Ctrl+PageDown|IDM_NEXTFILE|\
KeypadPlus|IDM_EXPAND|\
KeypadMinus|IDM_BLOCK_COMMENT|\
Ctrl+F1|IDM_HELP_SCITE|
Ctrl+F1|IDM_HELP_SCITE|\
$(ahk.debugger.shortcuts)$(s4ahk.user.shortcuts)

# Variables for extensions
extensions.dir=$(SciteUserHome)\Extensions
Expand Down
8 changes: 7 additions & 1 deletion source/ahk.commands.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@
#

# Contextual menu
user.context.menu=||\
ahk.context.menu=||\
Open #Include|1121|\
Add scriptlet...|1122|\
Run selection|1123|\
||\
Inspect variable...|1126|

# Debugger shortcuts
ahk.debugger.shortcuts=\
F10|1129|\
F11|1130|\
Shift+F11|1131|

# Run (F5)
command.go.$(file.patterns.ahk)="$(AutoHotkey)" /ErrorStdOut "$(FilePath)" $(1) $(2) $(3) $(4)

Expand Down
11 changes: 1 addition & 10 deletions source/tools/SciTEDebug.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,6 @@ return

;{ Toolbar Commands

F5::
if Dbg_OnBreak
goto cmd_run
else
goto cmd_pause

cmd_run:
Dbg_Continue("run")
return
Expand Down Expand Up @@ -374,17 +368,14 @@ if bIsAttach
OnExit
goto GuiClose

F10::
cmd_stepinto:
Dbg_Continue("step_into")
return

F11::
cmd_stepover:
Dbg_Continue("step_over")
return

+F11::
cmd_stepout:
Dbg_Continue("step_out")
return
Expand Down Expand Up @@ -1175,7 +1166,7 @@ SciTE_EnsureFileIsOpen(fname)
}

SciTE_GetFile()
{
{
global oSciTE
return oSciTE.CurrentFile
}
Expand Down

0 comments on commit 9b5af17

Please sign in to comment.