Forráskód Böngészése

CDB: Fix cursor disappear when going up in subtable with arrows

lviguier 2 hónapja
szülő
commit
589c77535a
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      hide/comp/cdb/Cursor.hx

+ 3 - 2
hide/comp/cdb/Cursor.hx

@@ -91,6 +91,8 @@ class Cursor {
 			return;
 		}
 
+		var line = getLine();
+
 		// Enter/leave subtable
 		if( dx == 0 && !shift && !ctrl && !alt) {
 			var c = getCell();
@@ -109,7 +111,7 @@ class Cursor {
 					return;
 				}
 
-				if (c == null) {
+				if (c == null && line.index == 0) {
 					st.element.find(".default-cursor").blur();
 					set(st.parent, st.cell.columnIndex, st.cell.line.index);
 					return;
@@ -118,7 +120,6 @@ class Cursor {
 		}
 
 		// Take care of current filter
-		var line = getLine();
 		if (line == null) return;
 		if( line != null && dy != 0 ) {
 			var allLines = line.element.parent().children("tr").not(".separator");