Implement EVT_CHAR generation for wxDataViewCtrl under Mac

This requires manually sending the original key event back to the native
control because NSOutlineView doesn't implement the NSTextInputClient
protocol and so doesn't allow handling the keys in the usual way.
This commit is contained in:
Stefan Csomor
2021-04-13 17:35:20 +02:00
committed by Vadim Zeitlin
parent 18c45321f4
commit 26d6f82a81
4 changed files with 61 additions and 13 deletions

View File

@@ -573,6 +573,9 @@ public:
virtual void SetFont(const wxFont& font);
virtual void keyEvent(WX_NSEvent event, WXWidget slf, void* _cmd) wxOVERRIDE;
virtual bool doCommandBySelector(void* sel, WXWidget slf, void* _cmd) wxOVERRIDE;
private:
void InitOutlineView(long style);
int GetDefaultRowHeight() const;