Преглед изворни кода

Fixed always returning true in ProcessKey even when not consuming keystroke

tznind пре 4 година
родитељ
комит
e833adf94d
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      Terminal.Gui/Views/TreeView.cs

+ 4 - 0
Terminal.Gui/Views/TreeView.cs

@@ -229,6 +229,10 @@ namespace Terminal.Gui {
 				case Key.End:
 					GoToEnd();
 				break;
+
+				default:
+					// we don't care about this keystroke
+					return false;
 			}
 
 			PositionCursor ();