mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-01 13:56:00 +02:00
Immediate window fixes
This commit is contained in:
parent
e245c922db
commit
ecc38960f3
2 changed files with 80 additions and 68 deletions
|
@ -83,7 +83,7 @@ namespace IDE.ui
|
|||
}*/
|
||||
}
|
||||
|
||||
bool IsInsideEntry(int idx)
|
||||
public bool IsInsideEntry(int idx)
|
||||
{
|
||||
var immediateWidget = (ImmediateWidget)mEditWidget;
|
||||
return idx > immediateWidget.mEntryStartPos.mIndex;
|
||||
|
@ -443,6 +443,13 @@ namespace IDE.ui
|
|||
return;
|
||||
}
|
||||
|
||||
if (c == '\x7F') // Ctrl+Backspace
|
||||
{
|
||||
var editWidgetContent = (ImmediateWidgetContent)mEditWidgetContent;
|
||||
if (!editWidgetContent.IsInsideEntry(editWidgetContent.mCursorTextPos - 1))
|
||||
return;
|
||||
}
|
||||
|
||||
String cmdText = scope String();
|
||||
bool hasCmd = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue