Draw mode ctrl + z

Hi is there a way to disable editor’s ctrl+z keymap when user enters drawing mode? Currently when I hit ctrl+z instead of undo last step in the drawing, it would undo the last editor action, which is creating the draw mode, and as a result my drawing just disapper.