1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-24 18:48:01 +02:00

Fixed a few read-only modifications

This commit is contained in:
Brian Fiete 2020-05-20 06:42:38 -07:00
parent 9ede79e29d
commit 9a2d200b70
2 changed files with 6 additions and 3 deletions

View file

@ -1985,6 +1985,9 @@ namespace IDE.ui
public bool ToggleComment()
{
if (CheckReadOnly())
return false;
if ((HasSelection()) && (mSelection.Value.Length > 1))
{
var startLineAndCol = CursorLineAndColumn ;
@ -2748,7 +2751,7 @@ namespace IDE.ui
/// param.isRepeat = "Whether the key is repeated"
public override void KeyDown(KeyCode keyCode, bool isRepeat)
{
mIgnoreKeyChar = false;
mIgnoreKeyChar = false;
if (((keyCode == .Up) || (keyCode == .Down)) &&
(mAutoComplete != null) && (mAutoComplete.IsShowing()) && (mAutoComplete.mListWindow != null) &&