Skip to content

Commit

Permalink
The code editor now properly handles both TAB and CTRL+A
Browse files Browse the repository at this point in the history
  • Loading branch information
morphx666 committed Dec 30, 2016
1 parent 4d0eadd commit a86b814
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions LSysInt Tester/FormMain.vb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ Public Class FormMain
Timeout.Infinite)

AddHandler TextBoxCode.TextChanged, Sub() updateCodeTimer.Change(500, Timeout.Infinite)
AddHandler TextBoxCode.PreviewKeyDown, Sub(s1 As Object, e1 As PreviewKeyDownEventArgs)
Select Case e1.KeyCode
Case Keys.Tab : e1.IsInputKey = True
Case Keys.A : If e1.KeyData And Keys.Control Then TextBoxCode.SelectAll()
End Select
End Sub
AddHandler ComboBoxLSysCodeDefs.SelectedIndexChanged, Sub()
TextBoxCode.Text = CType(ComboBoxLSysCodeDefs.SelectedItem, LSysCodeDef).Code
TextBoxCode.SelectionStart = 0
Expand Down
4 changes: 2 additions & 2 deletions LSysInt Tester/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("2016.12.30.503")>
<Assembly: AssemblyFileVersion("2016.12.30.503")>
<Assembly: AssemblyVersion("2016.12.30.510")>
<Assembly: AssemblyFileVersion("2016.12.30.510")>
4 changes: 2 additions & 2 deletions LSysInt/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("2016.12.30.222")>
<Assembly: AssemblyFileVersion("2016.12.30.222")>
<Assembly: AssemblyVersion("2016.12.30.224")>
<Assembly: AssemblyFileVersion("2016.12.30.224")>

0 comments on commit a86b814

Please sign in to comment.