mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-15 21:26:10 +00:00
Convert main static references off of Electron into interface implementation and expose the underlying Socket for low level interaction.
This commit is contained in:
3
ElectronNET.API/GlobalShortcut.cs
Normal file → Executable file
3
ElectronNET.API/GlobalShortcut.cs
Normal file → Executable file
@@ -1,13 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using ElectronNET.API.Interfaces;
|
||||
|
||||
namespace ElectronNET.API
|
||||
{
|
||||
/// <summary>
|
||||
/// Detect keyboard events when the application does not have keyboard focus.
|
||||
/// </summary>
|
||||
public sealed class GlobalShortcut
|
||||
public sealed class GlobalShortcut : IGlobalShortcut
|
||||
{
|
||||
private static GlobalShortcut _globalShortcut;
|
||||
private static object _syncRoot = new object();
|
||||
|
||||
Reference in New Issue
Block a user