瀏覽代碼

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 ();