From e39f5fa5d6b1b09df16271cabb1dda5d42c0b980 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 29 Apr 2018 17:33:33 +0200 Subject: MacOSX: support pasting values to password fields using keyboard (CMD+V and CMD+A now working properly). This make using password managers with VeraCrypt easier. --- src/Main/GraphicUserInterface.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Main/GraphicUserInterface.h') diff --git a/src/Main/GraphicUserInterface.h b/src/Main/GraphicUserInterface.h index f170d9a6..01f385a3 100644 --- a/src/Main/GraphicUserInterface.h +++ b/src/Main/GraphicUserInterface.h @@ -100,6 +100,8 @@ namespace VeraCrypt #ifdef TC_MACOSX virtual void MacOpenFiles (const wxArrayString &fileNames); virtual void MacReopenApp (); + static bool HandlePasswordEntryCustomEvent (wxEvent& event); + static void InstallPasswordEntryCustomKeyboardShortcuts (wxWindow* window); #endif template @@ -133,6 +135,11 @@ namespace VeraCrypt auto_ptr SingleInstanceChecker; mutable WaitDialog* mWaitDialog; +public: +#ifdef TC_MACOSX + static int g_customIdCmdV; + static int g_customIdCmdA; +#endif private: GraphicUserInterface (const GraphicUserInterface &); -- cgit v1.2.3