mirror of https://github.com/odrling/Aegisub
Don't accept keyboard focus in the color picker controls which can't be used via the keyboard. Updates #1467.
Originally committed to SVN as r6671.
This commit is contained in:
parent
07eb718fa1
commit
309bc35af3
|
@ -100,6 +100,8 @@ private:
|
|||
void OnPaint(wxPaintEvent &evt);
|
||||
void OnMouse(wxMouseEvent &evt);
|
||||
|
||||
bool AcceptsFocusFromKeyboard() const { return false; }
|
||||
|
||||
public:
|
||||
ColorPickerSpectrum(wxWindow *parent, PickerDirection direction, wxSize size);
|
||||
|
||||
|
@ -132,6 +134,8 @@ class ColorPickerRecent : public wxControl {
|
|||
void OnPaint(wxPaintEvent &evt);
|
||||
void OnSize(wxSizeEvent &evt);
|
||||
|
||||
bool AcceptsFocusFromKeyboard() const { return false; }
|
||||
|
||||
public:
|
||||
ColorPickerRecent(wxWindow *parent, int cols, int rows, int cellsize);
|
||||
|
||||
|
@ -163,6 +167,8 @@ class ColorPickerScreenDropper : public wxControl {
|
|||
void OnMouse(wxMouseEvent &evt);
|
||||
void OnPaint(wxPaintEvent &evt);
|
||||
|
||||
bool AcceptsFocusFromKeyboard() const { return false; }
|
||||
|
||||
public:
|
||||
ColorPickerScreenDropper(wxWindow *parent, int resx, int resy, int magnification);
|
||||
|
||||
|
|
Loading…
Reference in New Issue