[tomboy] Fix keyboard navigation in bulleted lists



commit 42706d3c21f180741a097a19b72c18569108694b
Author: Stefan Schweizer <steve schweizer gmail com>
Date:   Mon May 17 13:40:37 2010 +0200

    Fix keyboard navigation in bulleted lists
    
    Correct the check for the control key when more than one modifier is set
    (bgo#433244).

 Tomboy/NoteEditor.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Tomboy/NoteEditor.cs b/Tomboy/NoteEditor.cs
index fd78e16..123f86c 100644
--- a/Tomboy/NoteEditor.cs
+++ b/Tomboy/NoteEditor.cs
@@ -188,7 +188,7 @@ namespace Tomboy
 			case Gdk.Key.KP_Enter:
 			case Gdk.Key.Return:
 				// Allow opening notes with Ctrl + Enter
-				if (args.Event.State != Gdk.ModifierType.ControlMask) {
+				if ((args.Event.State & Gdk.ModifierType.ControlMask) == 0) {
 					if ((int) (args.Event.State & Gdk.ModifierType.ShiftMask) != 0) {
 						ret_value = ((NoteBuffer) Buffer).AddNewline (true);
 					} else {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]