Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » COBOL » Windows® -> Preferences ->General -> Keys (mapping question/problem)
Windows® -> Preferences ->General -> Keys [message #507835] Thu, 14 January 2010 15:05 Go to next message
Jeff  is currently offline Jeff
Messages: 1
Registered: January 2010
Junior Member
Hello. I searched and didnt see the answer to this question. I am using rational developer for system Z. I am trying to map the Ctrl key (alone) = [newline] as I have had it on the mainframe. Is this possible? How?
Re: Windows® -> Preferences ->General -> Keys [message #509333 is a reply to message #507835] Thu, 21 January 2010 21:48 Go to previous message
Wei Xiangshuai is currently offline Wei Xiangshuai
Messages: 5
Registered: July 2009
Location: CHINA
Junior Member
Welcome to COBOL IDE Plug-in!
Generally, Ctrl Key is used to compose with other keys to implement some functions.

>I am trying to map the Ctrl key (alone) = [newline] as I have had it on the mainframe. Is this possible?

I am not sure if this is possible, you can validate this by yourself.

>How?

Just add KeyListener to your objects and implement keyPressed & keyReleased methos, As follows:

public void keyPressed(KeyEvent e) {
if(e.keyCode == SWT.CONTROL) {
e.doit = false;
// [newline] here
}
}
public void keyReleased(KeyEvent e) {
// add your operations here
}

Regards,
WEI
Previous Topic:StyledText-AbstractDecoratedTextEditor
Next Topic:Termination Review Scheduled for February 10
Goto Forum:
  


Current Time: Sat Aug 30 02:34:03 EDT 2014

Powered by FUDForum. Page generated in 0.08160 seconds