Pressing the Shift key during a drop move will attempt to drop the promoted
version of the piece.
fromX = fromX ? WhitePawn : BlackPawn; // first piece type in selected holdings
while(PieceToChar(fromX) == '.' || PieceToChar(fromX) == '+' || PieceToNumber(fromX) != fromY && fromX != (int) EmptySquare) fromX++;
fromY = DROP_RANK;
+ if(autoProm[fromX] && shiftKey) fromX = CHUPROMOTED(fromX);
}
/* [HGM] always test for legality, to get promotion info */