Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » COBOL » Windows® -> Preferences ->General -> Keys (mapping question/problem)
Windows® -> Preferences ->General -> Keys [message #507835] Thu, 14 January 2010 20:05 Go to next message
Jeff  is currently offline Jeff Friend
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] Fri, 22 January 2010 02:48 Go to previous message
Wei Xiangshuai is currently offline Wei XiangshuaiFriend
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.


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

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

Current Time: Tue Oct 03 05:26:40 GMT 2023

Powered by FUDForum. Page generated in 0.01864 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top