Questions about resolved positions

my html:

<cover>

	<content>
		a
	</content>

	<content>
		b
	</content>

	<content>
		c
	</content>


	<content>
		d
	</content>


	<content>
		e
	</content>



</cover>

code:

'Enter': (state, dispatch) => {

  let {$from, $to, node} = state.selection;
  console.log('$from.pos', $from.pos);
  console.log('$to.pos', $to.pos);

}

Now the problem is, no matter where I press enter, the return pos is the same

So I don’t know the concept of POS

the online code:

What is 'Enter': (state, dispatch) => { and who is calling it? I would recommend putting a more elaborate example with minimal but complete code.

@kepta hello,minimal code: