Add systemPreferences.setUserDefault for macOS
This API can be used to e.g. enable key repeat by setting `ApplePressAndHoldEnabled` to `false` (see also #47).
This commit is contained in:
parent
fb74f5576d
commit
486b6b9096
7 changed files with 169 additions and 11 deletions
|
@ -67,6 +67,9 @@ class SystemPreferences : public mate::EventEmitter<SystemPreferences>
|
|||
void UnsubscribeLocalNotification(int request_id);
|
||||
v8::Local<v8::Value> GetUserDefault(const std::string& name,
|
||||
const std::string& type);
|
||||
void SetUserDefault(const std::string& name,
|
||||
const std::string& type,
|
||||
mate::Arguments* args);
|
||||
bool IsSwipeTrackingFromScrollEventsEnabled();
|
||||
#endif
|
||||
bool IsDarkMode();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue