1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-06-20 19:45:04 -05:00

macOS: Fix Command-A in password fields

Install a macOS-specific secure text field hotkey handler so Command-A selects the full contents of password controls when Cocoa does not route the shortcut through wxWidgets accelerators. Keep the existing wxWidgets accelerator handler for Command-V and Command-A, and recognize the standard paste/select-all IDs when they do reach the C++ event path.

Add Objective-C++ compilation support for the macOS helper and include it in the GUI target only on macOS.

Fixes https://github.com/veracrypt/VeraCrypt/issues/1567
This commit is contained in:
Mounir IDRASSI
2026-05-28 15:33:18 +02:00
parent cfd54af700
commit 0caacd3405
5 changed files with 156 additions and 5 deletions
+7 -1
View File
@@ -51,7 +51,13 @@ clean:
%.o: %.cpp
@echo Compiling $(<F)
$(CXX) $(CXXFLAGS) -c $< -o $@
ifeq "$(PLATFORM)" "MacOSX"
%.o: %.mm
@echo Compiling $(<F)
$(CXX) $(CXXFLAGS) -x objective-c++ -fblocks -c $< -o $@
endif
%.osse41: %.cpp
@echo Compiling $(<F)
$(CXX) $(CXXFLAGS) -mssse3 -msse4.1 -c $< -o $@