private boolean doTabRight(EventTrigger trigger) {
			if (!cursorOn) {
				// if no cursor, nothing to tab from or to
				return false;
			}

			scrollToCursor();
			Layout layout = findLayoutOnScreen(cursorPosition.getIndex());
			if (layout == null) {
				return false;
			}
			int numFields = layout.getNumFields();
			if (cursorPosition.fieldNum < numFields - 1) {
				doSetCursorPosition(cursorPosition.getIndex(), cursorPosition.fieldNum + 1, 0, 0,
					trigger);
			}
			else {
				BigInteger indexAfter = getIndexAfter(cursorPosition.getIndex());
				if (indexAfter == null) {
					return false;
				}
				doSetCursorPosition(indexAfter, 0, 0, 0, trigger);
			}
			scrollToCursor();
			repaint();
			return true;
		}
Sets the cursor as close to the given point as possible.

@param x the horizontal coordinate.
@param y the vertical coordinate.
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/FieldPanel.java