This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 89893 - Arrow keys scroll instead of moving carret
Summary: Arrow keys scroll instead of moving carret
Status: RESOLVED DUPLICATE of bug 190890
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
: 143830 (view as bug list)
Depends on: 109038
Blocks:
  Show dependency tree
 
Reported: 2006-11-22 19:27 UTC by Max Sauer
Modified: 2010-11-05 15:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2006-11-22 19:27:11 UTC
Since the interduction of Retouche, I'm experiencing a random bug on Linux
platform -- arrow keys begin to scroll instead of moving carret. The issue is
random, but I have reproduced it plenty of times on two different computers
(FC4-Gnome and Slackware-Fluxbox). It happens to me about once a day when
working with IDE, and typically happens when using mouse to focus editor window.
Opening/Closing edited file seems to be a workaround. 

Reproducible with both JDK 1.5.0_05 and Mustang build 103,104.

---
NetBeans IDE Dev (Build 200611051900)
1.5.0_05; Java HotSpot(TM) Client VM 1.5.0_05-b03
Linux version 2.6.9 running on i386
cs_CZ (nb); ISO-8859-2
Comment 1 Vitezslav Stejskal 2006-11-22 22:53:32 UTC
It's likely to do something with editor keybindings. This happened to me when
keymaps for a particular editor window were not set properly. Lots of other keys
stopped working as well (e.g. backspace).
Comment 2 Max Sauer 2006-11-23 10:42:34 UTC
Yes, we had some similar problem after the interduction of new options dialog.
BTW, I'm using Emacs keybindings.
Comment 3 Max Sauer 2007-01-10 11:00:14 UTC
I have found reproducible scenerio for this issue for Solaris/CDE and Linux:

1) Inside of a method, type:
FileReader fr = new FileReader("my.txt");
2) Invoke Alt-Enter to show hint for FileNotFoundExc.
3) Press Esc to get rid of the hint
=> Arrow keys stop working


---
NetBeans IDE Dev (Build 200701091900)
1.6.0; Java HotSpot(TM) 64-Bit Server VM 1.6.0-b105
SunOS version 5.10 running on sparcv9
en (nb); ISO646-US
Comment 4 Miloslav Metelka 2007-01-10 14:42:39 UTC
It could be wrong focus - by default the scrollpane has the arrow keybindings
registered to scrolling.
Comment 5 Max Sauer 2007-01-10 18:50:16 UTC
It's definitely not a focus issue. Mouse click inside editor does not help.
Comment 6 Miloslav Metelka 2007-01-16 12:28:31 UTC
Aha, so it means that the keybindings are likely not registered on the pane for
the moment and the pane delegates to its parent (the scrollpane) to service the
particular keystroke.
Comment 7 Pavel Flaska 2007-05-03 17:14:19 UTC
I can confirm I have seen it several times on Ubuntu Linux.
Comment 8 Vitezslav Stejskal 2007-05-06 23:08:41 UTC
Most likely settings related, it has probably the same cause as the issue #103210.
Comment 9 Max Sauer 2007-05-29 13:00:46 UTC
I don't really like this. Especially, when I (while being in this broken state)
press Ctrl|tab in order to switch to a different editor tab -- the list of
opened editors hangs than forever on top of my editor.

---
NetBeans IDE Dev (Build 070529)
1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
  
Comment 10 Vitezslav Stejskal 2007-07-10 12:58:04 UTC
Hopefully fixed with the issue #109038. Please reopen the report if it happens again.
Comment 11 Max Sauer 2007-07-11 12:18:23 UTC
Sorry, I have to reopen. This issue still appears, if following the above mentioned steps.

1) Inside of a method, type:
FileReader fr = new FileReader("my.txt");
2) Invoke Alt-Enter to show hint for FileNotFoundExc.
3) Press Esc to get rid of the hint
=> Arrow keys stop working
4) Press Ctrl-Tab
=> Cannot get rid of the list od opened files

---
Product Version: NetBeans IDE Dev (Build 070711) 
Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 
System: Linux version 2.6.12-1.1390_FC4smp running on i386; 
UTF-8; en_US (nb) Userdir: /home/ms159439/.netbeans/dev
Comment 12 Max Sauer 2007-07-11 14:07:24 UTC
Pressing 'Esc' one more time does help. P2>P3.
Comment 13 Vitezslav Stejskal 2007-07-13 11:37:00 UTC
I must be doing something wrong, but I can't reproduce it. The hint shows, ESC cancels it, navigation and everything
else seems to work fine. What project type are you using?
Comment 14 Max Sauer 2007-07-13 11:51:48 UTC
Standard j2se project. Seems to be somehow platfom specific.
Comment 15 Max Sauer 2007-08-07 12:40:57 UTC
Happens also on Windows Vista.
---
Product Version: NetBeans IDE Dev (Build 070807) 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 
System: Windows Vista version 6.0 running on x86; Cp1252; 
en_US (nb) Userdir: D:\msauer\test0
Comment 16 Jiri Prox 2008-04-11 00:42:49 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 17 Max Sauer 2008-11-13 10:19:01 UTC
To reproduce this issue, Emacs keybinding profile has to be selected inside OD. It has something to do with multi-keybindings, like when there is a multi-
keybinding starting with Esc+, the IDE somehow does not consume the ESC typed/pressed event invoked in order to hide hint/suggestion, and begins to 
evaluate the event as multi-keybinding, which is visible in bottom left IDE corner ('ESC+' displayed). When the IDE is in such state, the arrow keys scroll.

Lets fix this in 7.0.
Comment 18 Sergey Petrov 2009-04-10 11:19:44 UTC
reproducible with emacs binding in 090409,
need to press esc to cancel this mode.
Comment 19 Vitezslav Stejskal 2010-03-05 06:38:28 UTC
Reproducible in 6.9dev builds.
Comment 20 David Strupl 2010-10-21 15:19:32 UTC
*** Bug 143830 has been marked as a duplicate of this bug. ***
Comment 21 David Strupl 2010-11-05 15:19:59 UTC

*** This bug has been marked as a duplicate of bug 190890 ***