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 122239 - Shift+Arrow in numpad (XK_KP_Up vs XK_Up)
Summary: Shift+Arrow in numpad (XK_KP_Up vs XK_Up)
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 5.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2007-11-18 23:32 UTC by pcyanide
Modified: 2008-02-20 12:27 UTC (History)
0 users

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 pcyanide 2007-11-18 23:32:05 UTC
I am using Netbeans 5.5.1 Linux version on a PC

I prefer to keep NumLock Off. I have 
     
        Option "XkbOptions" "numpad:microsoft"

in /etc/X11/xorg.conf, in which case I expect numeric keypad to behave exactly like the arrow pad. 


In particular Shift+Down and Shift+Up (same as Shift+2, Shiift+8) on numeric keypad should add/remove line highlighting,
and applications like KWrite and even Eclipse work perfectly well, but Netbeans completely ignore these key combinations.

I modified files in /etc/X11/xkb, so that they report XK_Down and XK_Up instead of usual XK_KP_Down and XK_KP_Up for
numeric keypad and it fixed the problem ! Nevertheless it is an obvious work around, and I strongly believe that this
bug should be fixed.

The suggested fix is quite obvious: all XK_KP_... Shift+XK_KP_...  Ctrl+XK_KP_...  symbols should be processed in the
same way as corresponding XK_..., Shift+XK_... and Ctrl+XK_... symbols.

Thanks in advance
M-
Comment 1 Vitezslav Stejskal 2007-11-26 10:42:11 UTC
I looked in Tools-Options -> Keymap -> Other and the 'Extends Selection Up'... actions are only bound to shift-UP
comparing to 'Insertion Point Up'... actions, which are bound to both UP, KP_UP. We'll fix that.

In the meantime you can add the extra bindings yourself, just find the actions in Tools-Options -> Keymap -> Other,
select the action you want to change and hit 'Add...' button. In the little dialog press the key combination you want to
bind the action to and confirm the dialog with 'OK'. At the end confirm all the changes you've done by OKeying the
Tools-Options dialog. Thanks
Comment 2 Vitezslav Stejskal 2008-02-20 12:27:32 UTC
changeset 55cdaa3ef4f2 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=55cdaa3ef4f2