Added fix for repeating hotkeys, this only works with Windows 7 and later. Updated the readme.txt.template.

This commit is contained in:
RKrom 2014-06-12 14:22:16 +02:00
commit 5a594ba954
2 changed files with 15 additions and 13 deletions

View file

@ -5,21 +5,19 @@ Apply text and shapes to the screenshot. Offers capture of window, region or ful
CHANGE LOG:
@DETAILVERSION@
@DETAILVERSION@ UNSTABLE
Features:
* Added a speech bubble to the editor.
* Added numbered labels to the editor.
* Added a resize effect with settings window to the editor.
* Added a settings window for the torn-edge effect in the editor.
* Added a settings window for the drop shadow effect in the editor.
Changes:
* Editor: Element locations are now correctly updated when rotating or resizing.
* Feature #184,#282,#486: Image editor now has a Speech bubble
* Feature #281,#669,#707,#734: Image editor now has auto incrementing labels
* Editor: a resize effect with settings window has been added.
* Editor: a settings window for the torn-edge effect has been added.
* Editor: a settings window for the drop shadow effect has been added.
Bugs resolved:
* Bug #1610: Image editor: 'Obfuscate' and 'Highlight' won't rotate correctly.
* Bug #1619: Autocrop didn't take any elements into account.
* Bug #1559,#1643: Repeating hotkeys are now prevented, unfortunately only for Windows 7 and later.
* Bug #1610: Image editor: 'Obfuscate' and 'Highlight' and more, now should rotate / resize correctly.
* Bug #1619: Image editor: Autocrop now also considers the elements.
1.1.9.13-g01ce82d Windows 8.1 & Box bug-fix Release

View file

@ -57,7 +57,8 @@ namespace GreenshotPlugin.Controls {
ALT = 1,
CTRL = 2,
SHIFT = 4,
WIN = 8
WIN = 8,
NO_REPEAT = 0x4000
}
private enum MapType : uint {
@ -472,7 +473,10 @@ namespace GreenshotPlugin.Controls {
if (modifierKeyCode == Keys.LWin || modifierKeyCode == Keys.RWin) {
modifiers |= (uint)Modifiers.WIN;
}
// Disable repeating hotkey for Windows 7 and beyond, as described in #1559
if (Environment.OSVersion.Version.Major >= 6 && Environment.OSVersion.Version.Minor >= 1) {
modifiers |= (uint)Modifiers.NO_REPEAT;
}
if (RegisterHotKey(hotkeyHWND, hotKeyCounter, modifiers, (uint)virtualKeyCode)) {
keyHandlers.Add(hotKeyCounter, handler);
return hotKeyCounter++;