#2581 closed defect (fixed)
wrong cursor placement when editing sub/superscripts
Reported by: | Uwe Stöhr | Owned by: | poenitz |
---|---|---|---|
Priority: | high | Milestone: | 1.5.0 |
Component: | mathed | Version: | 1.4.1 |
Severity: | normal | Keywords: | regression patch |
Cc: | sts@… |
Description
Create a new formula and type in:
A_u
now you're in a subscript behind the "u". You want now to add a superscript and
press the uparrow button to jump behind the "A" to be able to generate the
superscript with 2. This wroks fine in LyX 1.3.x but in LyX 1.4 the cursor
jumps before the script inset when you press the uparrow key.
That means in LyX 1.3 you can enter the sequence:
A_u uparrow 2
In LyX 1.4 you have to enter:
A_u uparrow rightarrow rightarrow 2
Which costs a lot of time.
The same problem appear when you're in a superscript and press the downarrow key.
Attachments (1)
Change History (15)
comment:1 by , 19 years ago
Keywords: | regression added |
---|
comment:2 by , 18 years ago
comment:3 by , 18 years ago
Of course this is a regression. Even if there is another way in this case, the
1.4 behaviour is not logical, so at the very least it confuses users. And if
you have e.g. a longer fraction in the subscript you have to press rightarrow a
lot until you get out. The version with the uparrow key would require less
keystrokes.
comment:4 by , 18 years ago
Cc: | added |
---|
comment:5 by , 18 years ago
What is the consensus here? It's not hard to implement either version. But which
one is right?
comment:6 by , 18 years ago
There is only one version that would need implementing: the one used in 1.3.
That is IMO the correct one, and AFAIK the current behaviour was not introduced
intentionally, but as a side effect.
comment:8 by , 18 years ago
Milestone: | → 1.5.0 |
---|
So the 1.3 way is: x_|i -> x|_i ?
I don't know what you mean. The difference is:
That means in LyX 1.3 you can enter the sequence:
A_u uparrow 2
In LyX 1.4 you have to enter:
A_u uparrow rightarrow rightarrow 2
comment:9 by , 18 years ago
Ok, that's what I meant. Currently the stack of the CursorSlices is decreases
slice by slice. In the case of scripts the script inset is at the top if you are
in the script. Then on cursor up this inset is removed from the stack and the
cursor is in front of it.
The 1.3 behaviour needs an implementation of InsetMathScript::idxUpDown to put
the cursor behind the kernel.
by , 18 years ago
Attachment: | updownscript.patch added |
---|
Moving up from lower index shouldn't depend on existance of upper (and other way round)
comment:10 by , 18 years ago
Keywords: | patch added |
---|
comment:11 by , 18 years ago
Works perfect. Could you please send it to the list to get another OK, you have
mine.
comment:14 by , 17 years ago
Keywords: | fixedintrunk removed |
---|
In 1.4 and 1.5 you can enter
A_u rightarrow 2
This is as fast as 1.3 and IMHO more intuitive. I thus believe this is no
regression and this bug should be closed.