Fixed where the row and cols wouldn't change when navigating with arrow keys

This commit is contained in:
Lukasz Baldyga committed 2020-10-25 10:48:52 +00:00
1 parent 4d54935615
commit 98ac780f76
2 files changed
+7 -2

No files matched your search

@@ -70,6 +70,7 @@ namespace Advanced_Software_Engineering
this.textBox1.Click += new System.EventHandler(this.textBox1_Click);
this.textBox1.TextChanged += new System.EventHandler(this.handleKeypress);
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Text_Editor_PreviewKeyDown);
this.textBox1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyUp);
//
// menuStrip1
//
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -232,7 +232,9 @@ namespace Advanced_Software_Engineering {
} else if (e.KeyCode == Keys.F1 && e.Shift) {
DescribeCode();
e.Handled = true;
}
} else {
updateRowCol();
}
}
private void checkSyntaxToolStripMenuItem_Click(object sender, EventArgs e) => CheckCode();
@@ -243,5 +245,7 @@ namespace Advanced_Software_Engineering {
updateRowCol();
timer1.Stop();
}
private void textBox1_KeyUp(object sender, KeyEventArgs e) => updateRowCol();
}
}