Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321094

Summary: Ctrl+alt+down arrow is not working on Linux
Product: z_Archived Reporter: Sylvia Tancheva <silviya>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact: Ilina Stefanova <ilina.s>
Severity: normal    
Priority: P3 CC: ganoro, juanemc2, kalin.a, Lars.Vogel, skye.book
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Sylvia Tancheva CLA 2010-07-28 03:45:22 EDT
Ctrl+alt+down arrow (duplicate) is not working.

Example:
If you stand on a line of code, for example
echo "Hi";
and press ctrl+alt+down arrow, the line should be duplicated, i.e
echo "Hi";
echo "Hi";

I'm using 64bit Ubuntu 10.04 (a VM), did not check other distributions, but it works OK in Win (checked in W7).
Comment 1 Roy Ganor CLA 2010-07-28 04:56:15 EDT
this is probably because the OS has a registered short cut for this sequence which is prior to our short cut. I tried to change it in Copy Lines short cut and it works as expected.

So it's not that high priority as I thought before...
Comment 2 Juan Polero CLA 2010-08-13 09:05:40 EDT
I have the same problem using Ubuntu 10.0.4 32 bits and Eclipse Helios Build id: 20100617-1415
Comment 3 Lars Vogel CLA 2010-10-04 17:12:54 EDT
I think this can get closed. If you remove Ctrl+alt+down from the Linux (Ubuntu) keybindings then the shortcut works as expected in Eclipse. 

I close this bug, please re-open if this is inapproriate.
Comment 4 Skye Book CLA 2011-04-12 09:02:52 EDT
(In reply to comment #3)
> I think this can get closed. If you remove Ctrl+alt+down from the Linux
> (Ubuntu) keybindings then the shortcut works as expected in Eclipse.

Just to reiterate what Lars is saying, it indeed works and this keybinding is part of the default Compiz configuration that ships with Ubuntu (and I believe has been being shipped since version 7.10).

If you install the compizconfig-settings-manager package, the binding can be disabled in Desktop Wall -> Bindings -> 'Move within wall' -> 'Move Down' (Note that the 'Move Up' option also blocks Eclipse's default mapping for the copy line up command so it may behoove you to disable or change that setting as well.
Comment 5 Kalin CLA 2011-07-26 04:07:34 EDT
Verified.
Correct behavior was observed if you have disabled keyboard shortcuts for CTRL+ALT+DOWN and CTRL+ALT+UP through (Ubuntu): System->Preferences->Keyboard Shortcuts
Machine restart is needed afterwards.