Pressing 'tab' indents current line, should insert tab at caret

Once you’ve done the above, delete everything above this line.

Steps to reproduce

  • open a new document, enter text into the body
  • type “hello”
  • hit the ‘tab’ key
  • type “world”

Expected result

hello<tab>world

or

hello	world

Actual result

<tab>helloworld

or

	helloworld

Environment

SYSTEM INFO:
Obsidian version: v1.2.8
Installer version: v1.2.8
Operating system: Windows 10 Enterprise 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Try writing up some code, and you’ll quickly find you run into problems - say you want to comment a typing like so:

type Foo {
	property1: number					//comment1
	prop2: boolean						//comment2
	property_name3: string | string[]	//comment3
}

but it comes out looking like this:

type Foo {
		property1: number//comment1
		prop2: boolean//comment2
		property_name3: string | string[]//comment3
}

This behavior deviates from what’s expected for most text editors.