Commit 46a8b68
committed
fix(mdviewer): fix End/Home key jumping to end of file near images
Contenteditable jumps to container end/start instead of block end/start
when cursor is near an <img>. Intercept End/Home (and Cmd+Right/Left
on Mac) to manually position cursor at block boundary.1 parent 09e5dcf commit 46a8b68
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1835 | 1835 | | |
1836 | 1836 | | |
1837 | 1837 | | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
1838 | 1866 | | |
1839 | 1867 | | |
1840 | 1868 | | |
| |||
0 commit comments