Private
Public Access
Fixed where the row and cols wouldn't change when navigating with arrow keys
This commit is contained in:
1 parent
4d54935615
commit
98ac780f76
2 files changed
+7
-2
No files matched your search
Generated
+1
@@ -70,6 +70,7 @@ namespace Advanced_Software_Engineering
|
|||||||
this.textBox1.Click += new System.EventHandler(this.textBox1_Click);
|
this.textBox1.Click += new System.EventHandler(this.textBox1_Click);
|
||||||
this.textBox1.TextChanged += new System.EventHandler(this.handleKeypress);
|
this.textBox1.TextChanged += new System.EventHandler(this.handleKeypress);
|
||||||
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Text_Editor_PreviewKeyDown);
|
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Text_Editor_PreviewKeyDown);
|
||||||
|
this.textBox1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyUp);
|
||||||
//
|
//
|
||||||
// menuStrip1
|
// menuStrip1
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
@@ -232,7 +232,9 @@ namespace Advanced_Software_Engineering {
|
|||||||
} else if (e.KeyCode == Keys.F1 && e.Shift) {
|
} else if (e.KeyCode == Keys.F1 && e.Shift) {
|
||||||
DescribeCode();
|
DescribeCode();
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
}
|
} else {
|
||||||
|
updateRowCol();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkSyntaxToolStripMenuItem_Click(object sender, EventArgs e) => CheckCode();
|
private void checkSyntaxToolStripMenuItem_Click(object sender, EventArgs e) => CheckCode();
|
||||||
@@ -243,5 +245,7 @@ namespace Advanced_Software_Engineering {
|
|||||||
updateRowCol();
|
updateRowCol();
|
||||||
timer1.Stop();
|
timer1.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void textBox1_KeyUp(object sender, KeyEventArgs e) => updateRowCol();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user