i want know mouse pointer position

editor = CodeMirror.fromTextArea(editorWrap[index], config);
editor.setOption(“theme”, “material-ocean”);

    //keydown event
    editor.on('keydown', function(cm,e) {
      if ( e.keyCode == 190 || e.which == 190 ) {
            let x = e.pageX; 
            let y = e.clientY;
            alert('x:'+x); //undefined

how i know mouse pointer position when keydown event occur

Neither CodeMirror nor the browser will provide you with a mouse position on a keydown event. But you could register your own mousemove handler to track it.