fix: set keyboard focus correctly
This commit is contained in:
parent
3b111ac505
commit
dcd10e2401
|
@ -16,6 +16,10 @@
|
||||||
<Dalamud>$(AppData)\XIVLauncher\addon\Hooks\dev</Dalamud>
|
<Dalamud>$(AppData)\XIVLauncher\addon\Hooks\dev</Dalamud>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'">
|
||||||
|
<Dalamud>$(DALAMUD_HOME)</Dalamud>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(IsCI)' == 'true'">
|
<PropertyGroup Condition="'$(IsCI)' == 'true'">
|
||||||
<Dalamud>$(HOME)/dalamud</Dalamud>
|
<Dalamud>$(HOME)/dalamud</Dalamud>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
@ -111,7 +111,7 @@ namespace Glamaholic.Ui.Helpers {
|
||||||
ImGui.PopTextWrapPos();
|
ImGui.PopTextWrapPos();
|
||||||
|
|
||||||
if (ImGui.IsWindowAppearing()) {
|
if (ImGui.IsWindowAppearing()) {
|
||||||
ImGui.SetKeyboardFocusHere();
|
ImGui.SetKeyboardFocusHere(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.Separator();
|
ImGui.Separator();
|
||||||
|
|
|
@ -410,7 +410,7 @@ namespace Glamaholic.Ui {
|
||||||
ImGui.InputText("##dye-filter", ref this._dyeFilter, 512);
|
ImGui.InputText("##dye-filter", ref this._dyeFilter, 512);
|
||||||
|
|
||||||
if (ImGui.IsWindowAppearing()) {
|
if (ImGui.IsWindowAppearing()) {
|
||||||
ImGui.SetKeyboardFocusHere();
|
ImGui.SetKeyboardFocusHere(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ImGui.BeginChild("dye picker", new Vector2(250, 350), false, ImGuiWindowFlags.HorizontalScrollbar)) {
|
if (ImGui.BeginChild("dye picker", new Vector2(250, 350), false, ImGuiWindowFlags.HorizontalScrollbar)) {
|
||||||
|
@ -453,7 +453,7 @@ namespace Glamaholic.Ui {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ImGui.IsWindowAppearing()) {
|
if (ImGui.IsWindowAppearing()) {
|
||||||
ImGui.SetKeyboardFocusHere();
|
ImGui.SetKeyboardFocusHere(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GameFunctions.DresserContents.Count > 0) {
|
if (GameFunctions.DresserContents.Count > 0) {
|
||||||
|
@ -778,7 +778,7 @@ namespace Glamaholic.Ui {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._showRename && !renameWasVisible) {
|
if (this._showRename && !renameWasVisible) {
|
||||||
ImGui.SetKeyboardFocusHere();
|
ImGui.SetKeyboardFocusHere(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._editing) {
|
if (this._editing) {
|
||||||
|
|
Loading…
Reference in New Issue