diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-04-29 17:33:33 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-04-29 17:52:43 +0200 |
commit | e39f5fa5d6b1b09df16271cabb1dda5d42c0b980 (patch) | |
tree | cb3aff4a8c04c6b39c014a37e0683fd5b7817d94 /src/Main/GraphicUserInterface.h | |
parent | 7a842266b3f2e69d1706aec3039b661e3a5b25dd (diff) | |
download | VeraCrypt-e39f5fa5d6b1b09df16271cabb1dda5d42c0b980.tar.gz VeraCrypt-e39f5fa5d6b1b09df16271cabb1dda5d42c0b980.zip |
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.
Diffstat (limited to 'src/Main/GraphicUserInterface.h')
-rw-r--r-- | src/Main/GraphicUserInterface.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <class T> @@ -133,6 +135,11 @@ namespace VeraCrypt auto_ptr <wxSingleInstanceChecker> SingleInstanceChecker; mutable WaitDialog* mWaitDialog; +public: +#ifdef TC_MACOSX + static int g_customIdCmdV; + static int g_customIdCmdA; +#endif private: GraphicUserInterface (const GraphicUserInterface &); |