Created attachment 153920 [details]
Formula bar content test file (220.127.116.11.alpha0+)
If the content of the formula bar (input line) in Calc is one character longer than the visible formula bar input field, then all changes behind this character can't be undone/cancelled with the Esc key.
Every change before this mentioned character can be undone/cancelled with the Esc key.
You can test is by clicking at cell A1 in the attached test file and then goind to the formula bar and adding or deleting some characters at the end of the formula.
The formula bar shows the correct (real) content after going to another cell and then clicking again at the test cell.
Every change in a formula, which content is longer than the visible input field PLUS one character, can't be undone with Esc key.
Esc key should undo/cancel all input that was made since beginning of editing the cell.
Verified with LibO 18.104.22.168, 6.3.x.y and
Build ID: 41cd3e8e817c8c33a13608e62eeb06ce2c6977e4
CPU threads: 12; OS: Windows 10.0; UI render: GL; VCL: win;
TinderBox: Win-x86_64@62-TDF, Branch:master, Time: 2019-09-01_22:04:10
Build ID: f23e19cd15f14566832befba73fb6bbc1cffb0d7
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 4; OS Version: Linux 4.15; UI Render: default;
Locale: ca-ES (ca_ES.UTF-8
Version 22.214.171.124.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)