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

Bug 324275

Summary: On AIX- In SWT Text control Ctrl-c Ctrl-v does not work.
Product: [Eclipse Project] Platform Reporter: amit <devpamit>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: devpamit, eclipse.felipe, gheorghe
Version: 3.5   
Target Milestone: ---   
Hardware: All   
OS: other   
Whiteboard:
Attachments:
Description Flags
test program from net. none

Description amit CLA 2010-09-02 04:29:26 EDT
Build Identifier: I20090611-1540

I am trying to use shortcut key ctrl-c ctrl-v in sample application which has SWT text widget. It works find on windows OS. When i shift to AIX i can't use ctrl-c ctrl-v ctrl-x. Using Ctrl-Insert Shift-insert it works. But it don't give me uniform functionality. 

Reproducible: Always

Steps to Reproduce:
1.On AIX launch application with Editable text widget. 
2.Enter some text inside. Select the text and try to do copy paste.
3.
Comment 1 amit CLA 2010-09-02 04:30:41 EDT
Created attachment 178023 [details]
test program from net.
Comment 2 Prakash Rangaraj CLA 2010-09-02 04:46:02 EDT
Moving to SWT
Comment 3 amit CLA 2010-09-02 05:51:35 EDT
(In reply to comment #2)
> Moving to SWT

Tried on solaris box it works as that of windows.
Comment 4 Felipe Heidrich CLA 2010-09-02 10:15:45 EDT
Does Ctrl+Insert / Shift+Insert work ?
Comment 5 amit CLA 2010-09-03 01:22:21 EDT
As i said in problem description Ctrl-Insert Shift-insert it works. On Solaris i can see Ctrl-c Ctrl-v works for text. Just additonal info.
Comment 6 Felipe Heidrich CLA 2010-09-03 08:47:34 EDT
Sorry, I read the comment too fast.



I almost sure this is platform behaviour (the test program is using a native text which pretty much proves it). Bogdan, do you have access to a AIX machine ? 
Can you prove that Ctrl-Insert Shift-insert (and not ctrl-c ctrl-v) is the default keybinding for copy and paste on AIX/motif. Thank you.
Comment 7 Bogdan Gheorghe CLA 2010-09-03 16:54:42 EDT
Amit, try copying and pasting from the text field in the Man Page Viewer (available in Application Manager->Desktop apps). You'll see that copy and paste works only with Ctrl-Insert Shift-Insert. Since your demo app is making use of a native text, we are doing the correct thing here.
Comment 8 amit CLA 2010-09-06 07:52:34 EDT
(In reply to comment #7)
> Amit, try copying and pasting from the text field in the Man Page Viewer
> (available in Application Manager->Desktop apps). You'll see that copy and
> paste works only with Ctrl-Insert Shift-Insert. Since your demo app is making
> use of a native text, we are doing the correct thing here.

With man page editor i tryied copying text and paste in Text editor. It don't work. But Ctrl-Insert and Shift-Insert keys does work. But if as a product i want a uniform behaviour on all platform then don't Ctrl-c Ctrl-v should also work on AIX? Any way to get the same beviour in my application.
Comment 9 amit CLA 2010-09-07 10:50:45 EDT
Experts !!! any comments.
Comment 10 Felipe Heidrich CLA 2010-09-07 12:23:17 EDT
(In reply to comment #8)
> With man page editor i tryied copying text and paste in Text editor. It don't
> work. But Ctrl-Insert and Shift-Insert keys does work. But if as a product i
> want a uniform behaviour on all platform then don't Ctrl-c Ctrl-v should also
> work on AIX? 

Different platforms have different behaviours. Take the Mac for example, the keyboard modifiers are different from the PC, many keybinding in Eclipse differ in the Mac in order match the native behaviour. That is a good thing, it makes the real mac users happy.

>Any way to get the same beviour in my application.

Yes, you can customize the keybindings to whatever you want. Eclipse allows you to do that. By default, you get the native behaviour. Closing this report as wont fix (sorry).