Author Topic: Hold down the arrow keys the cursor does not move?  (Read 3943 times)

jianguhan

  • Guest
Hold down the arrow keys the cursor does not move?
« on: January 19, 2010, 05:19:18 am »
If I press an arrow key and hold, the cursor does not move,when I release it, the cursor jump to where it should have in.

for example:
print("Hold down the arrow keys the cursor does not move?")
                                                   ^
                                  suppose the cursor is here,
                        and hold down the left arrow key for a while,
                                      the cursor is still here

print("Hold down the arrow keys the cursor does not move?")
                           ^
           then release left arrow key,
              the cursor jump to here

jianguhan

  • Guest
Re: Hold down the arrow keys the cursor does not move?
« Reply #1 on: January 19, 2010, 10:21:00 am »
I changed a font the cursor movement seems to be correct :o

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2184
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Hold down the arrow keys the cursor does not move?
« Reply #2 on: January 19, 2010, 10:57:35 am »
Hi jianguhan,

- Have you work on Terminal Server?
- Is system has heavy load?
- Can you reproduce this with previous font?

Generally such behavior is not a bug. HE optimizes refreshes caused by cursor movements and updated caret only on idle time.
Normally, if your system is fast enough you will not notice this, because there are always some delays even when you press button continuously.

I have checked with another document and everything looks Ok, but in you case maybe the reason is once more caused by non-monspaced font...
But in my case, even with non-monospaced font I cannot notice the problem...
Maybe I do not understand the problem?

Best regards,
Alex.

jianguhan

  • Guest
Re: Hold down the arrow keys the cursor does not move?
« Reply #3 on: January 20, 2010, 03:19:13 am »
I work in a notebook,
usually about 10% of cpu load,
the previous font is Dejavu Sans Mono.

I think Encoding may be the problem,
when I change the Encoding to UTF8 and change the Font back to  Dejavu Sans Mono,
everything is ok :)

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2184
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Hold down the arrow keys the cursor does not move?
« Reply #4 on: January 20, 2010, 03:35:07 pm »
Hi jianguhan,

is this happened with 756 version?
Is it reproducible (that was not clear for me)?

Fex: such font + such encoding + such text will produce the problem 100% ?

Best regards,
Alex.

jianguhan

  • Guest
Re: Hold down the arrow keys the cursor does not move?
« Reply #5 on: January 21, 2010, 04:54:13 am »
I'm using 756 version,
but I'm not sure whether the previous version  already have this problem.

I was wrong,
the problem is not Encoding.
I wrote some Lua code for test (test.gif),
if there are too many Functions and Operators,
then hold down the arrow keys to move the cursor,
CPU load will turn to 100%,
and the cursor movements does not draw.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2184
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Hold down the arrow keys the cursor does not move?
« Reply #6 on: January 21, 2010, 12:38:30 pm »
Hi jianguhan,

yes, I think this is what I mean. Optimization of the update caret.
Do not what is better to make navigation slower (not much of course) by updating caret after every mouse move or do it lazy, when application is idle.
I think current way is better:
- because most times it is work
- if you navigate fast it is any way difficult to follow caret movements
- it is faster.

So let us see if others will complain, then I can think about changing it.

But any way thanks to pointing on this.

Best regards,
Alex.