mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
FEATURE-1110: A first step in enabling a hotkey for opening the clipboard contents in the editor. This is not visible nor configurable in the UI, but needs to be configured in the greenshot.ini, by specifying ClipboardHotkey=<hotkey>
This commit is contained in:
parent
3adf9e9a51
commit
20e59ddd1c
4 changed files with 42 additions and 14 deletions
|
@ -463,10 +463,10 @@ namespace GreenshotPlugin.Controls {
|
|||
if (RegisterHotKey(_hotkeyHwnd, _hotKeyCounter, modifiers, (uint)virtualKeyCode)) {
|
||||
KeyHandlers.Add(_hotKeyCounter, handler);
|
||||
return _hotKeyCounter++;
|
||||
} else {
|
||||
Log.Warn($"Couldn't register hotkey modifier {modifierKeyCode} virtualKeyCode {virtualKeyCode}");
|
||||
return -1;
|
||||
}
|
||||
|
||||
Log.Warn($"Couldn't register hotkey modifier {modifierKeyCode} virtualKeyCode {virtualKeyCode}");
|
||||
return -1;
|
||||
}
|
||||
|
||||
public static void UnregisterHotkeys() {
|
||||
|
@ -574,9 +574,9 @@ namespace GreenshotPlugin.Controls {
|
|||
visibleName = visibleName.Substring(0,1) + visibleName.Substring(1).ToLower();
|
||||
}
|
||||
return visibleName;
|
||||
} else {
|
||||
return givenKey.ToString();
|
||||
}
|
||||
|
||||
return givenKey.ToString();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue