1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

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.

This commit is contained in:
Mounir IDRASSI
2018-04-29 17:33:33 +02:00
parent 7a842266b3
commit e39f5fa5d6
8 changed files with 107 additions and 0 deletions

View File

@@ -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 &);