This commit is contained in:
@@ -113,7 +113,7 @@ internal static class CaretNative
|
||||
private static PopupWindowNative.Rect? TryGetAutomationCaret()
|
||||
{
|
||||
// A hung application must not hang the popup along with it: we wait for the
|
||||
// answer for a limited time, otherwise we show the popup at the cursor
|
||||
// answer for a limited time, otherwise the popup goes to the fixed point
|
||||
Task<PopupWindowNative.Rect?> query = Task.Run(QueryAutomationCaret);
|
||||
return query.Wait(AutomationTimeout) ? query.Result : null;
|
||||
}
|
||||
@@ -165,7 +165,7 @@ internal static class CaretNative
|
||||
}
|
||||
#else
|
||||
// Built without UI Automation: Chromium and Electron keep the system caret and MSAA
|
||||
// steps above, and where those stay silent the popup falls back to the cursor
|
||||
// steps above, and where those stay silent the popup falls back to the fixed point
|
||||
private static PopupWindowNative.Rect? TryGetAutomationCaret() => null;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -10,7 +10,8 @@ public enum PopupPlacementMode
|
||||
|
||||
/// <summary>
|
||||
/// Next to the caret in the active input field. When the application does not
|
||||
/// report its position, the popup is shown at the mouse cursor.
|
||||
/// report its position, the popup is shown as in <see cref="FixedPoint"/> — at the
|
||||
/// place and with the look that mode is set up with.
|
||||
/// </summary>
|
||||
AtCaret,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user