1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Ctrl+Alt+Up/Down support, QuickFind Ctrl+D fixes

This commit is contained in:
Brian Fiete 2025-05-26 14:44:51 +02:00
parent 2ce4ec2e3f
commit adb7a2bdef
8 changed files with 259 additions and 110 deletions

View file

@ -5965,13 +5965,25 @@ namespace IDE
[IDECommand]
public void Cmd_AddSelectionToNextFindMatch()
{
GetActiveSourceEditWidgetContent()?.AddSelectionToNextFindMatch();
GetActiveSourceViewPanel()?.AddSelectionToNextFindMatch();
}
[IDECommand]
public void Cmd_MoveLastSelectionToNextFindMatch()
{
GetActiveSourceEditWidgetContent()?.MoveLastSelectionToNextFindMatch();
GetActiveSourceViewPanel()?.MoveLastSelectionToNextFindMatch();
}
[IDECommand]
public void Cmd_AddCursorAbove()
{
GetActiveSourceEditWidgetContent()?.AddMultiCursor(-1);
}
[IDECommand]
public void Cmd_AddCursorBelow()
{
GetActiveSourceEditWidgetContent()?.AddMultiCursor(1);
}
public void UpdateMenuItem_HasActivePanel(IMenu menu)
@ -8574,11 +8586,6 @@ namespace IDE
void SysKeyDown(KeyDownEvent evt)
{
if (evt.mKeyCode != .Alt)
{
NOP!();
}
if (!evt.mKeyFlags.HeldKeys.HasFlag(.Alt))
{
#if BF_PLATFORM_WINDOWS
@ -8756,6 +8763,13 @@ namespace IDE
break;
}
}
if ((evt.mKeyCode == .Return) && (evt.mKeyFlags.HasFlag(.Alt)))
{
// Don't "beep" for any Enter key combinations
window.mFocusWidget?.KeyDown(evt);
evt.mHandled = true;
}
}
void SysKeyUp(KeyCode keyCode)