Skip to content

Commit

Permalink
Select all after setting focus as an attempt to fix input box not sel…
Browse files Browse the repository at this point in the history
…ecting everything under windows
  • Loading branch information
DarkFenX committed Feb 26, 2024
1 parent 82a9128 commit 3fadccc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gui/builtinContextMenus/droneSplitStack.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def __init__(self, parent, value):

self.input = wx.TextCtrl(self, wx.ID_ANY, style=wx.TE_PROCESS_ENTER)
self.input.SetValue(str(value))
self.input.SelectAll()

bSizer1.Add(self.input, 0, wx.LEFT | wx.RIGHT | wx.EXPAND, 15)

Expand All @@ -76,6 +75,7 @@ def __init__(self, parent, value):
bSizer1.Add(bSizer3, 0, wx.ALL | wx.EXPAND, 10)

self.input.SetFocus()
self.input.SelectAll()
self.input.Bind(wx.EVT_CHAR, self.onChar)
self.input.Bind(wx.EVT_TEXT_ENTER, self.processEnter)
self.SetSizer(bSizer1)
Expand Down
2 changes: 1 addition & 1 deletion gui/builtinContextMenus/implantSetSave.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def __init__(self, parent, value):
else:
value = str(value)
self.input.SetValue(value)
self.input.SelectAll()

bSizer1.Add(self.input, 0, wx.LEFT | wx.RIGHT | wx.EXPAND, 15)

Expand All @@ -70,6 +69,7 @@ def __init__(self, parent, value):
bSizer1.Add(bSizer3, 0, wx.ALL | wx.EXPAND, 10)

self.input.SetFocus()
self.input.SelectAll()
self.input.Bind(wx.EVT_TEXT_ENTER, self.processEnter)
self.SetSizer(bSizer1)
self.CenterOnParent()
Expand Down
2 changes: 1 addition & 1 deletion gui/builtinContextMenus/itemAmountChange.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def __init__(self, parent, value, limits=None):

self.input = wx.TextCtrl(self, wx.ID_ANY, style=wx.TE_PROCESS_ENTER)
self.input.SetValue(str(value))
self.input.SelectAll()

bSizer1.Add(self.input, 0, wx.LEFT | wx.RIGHT | wx.EXPAND, 15)

Expand All @@ -119,6 +118,7 @@ def __init__(self, parent, value, limits=None):
bSizer1.Add(bSizer3, 0, wx.ALL | wx.EXPAND, 10)

self.input.SetFocus()
self.input.SelectAll()
self.input.Bind(wx.EVT_CHAR, self.onChar)
self.input.Bind(wx.EVT_TEXT_ENTER, self.processEnter)
self.SetSizer(bSizer1)
Expand Down
2 changes: 1 addition & 1 deletion gui/builtinContextMenus/itemProjectionRange.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def __init__(self, parent, value):
value = int(value)
value = str(value)
self.input.SetValue(value)
self.input.SelectAll()

bSizer1.Add(self.input, 0, wx.LEFT | wx.RIGHT | wx.EXPAND, 15)

Expand All @@ -105,6 +104,7 @@ def __init__(self, parent, value):
bSizer1.Add(bSizer3, 0, wx.ALL | wx.EXPAND, 10)

self.input.SetFocus()
self.input.SelectAll()
self.input.Bind(wx.EVT_CHAR, self.onChar)
self.input.Bind(wx.EVT_TEXT_ENTER, self.processEnter)
self.SetSizer(bSizer1)
Expand Down

0 comments on commit 3fadccc

Please sign in to comment.