cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Remap CTRL+W to a different Key?

bfriesen
18-Opal

Remap CTRL+W to a different Key?

One of our authors was wondering if 

CTRL+w

can be mapped to something else in editor or removed.

 

When trying to select using 

CTRL+E

they are closing the active window.

 

Thanks Bryon

5 REPLIES 5

map ctrl-w {}

Thanks Clay, does this need to be put into an acl and in the init folder?

 

Bryon

If you want it to apply for everyone, then that's probably easiest. If you already have an init.acl startup file, you can just add it to the existing file.

 

If you discover that it doesn't work from init.acl, you may need to move it to a file in editinit instead, so it will load later in the startup process.

 

If someone just wants a quick fix for the current session, they can just type it into the command window.

Thank you Clay, so to change the key I need to add the new key into the brackets  

map ctrl-w {ctrl-w + T}

Thanks

 

Bryon 

No, but it depends what you are trying to do.

  • If you want ctrl-w to perform some other operation, then put the desired command into the brackets, e.g. 
    map ctrl-w { response("You pressed ctrl-w!"); }
  • If you want to change the key combination that triggers the window close, then you'll need to define the new key combination and the appropriate command, and also unmap the ctrl-w key to stop it from triggering the command, e.g.
    map ctrl-T { FileClose; }
    map ctrl-w {}
    You can see what command a key combination will trigger by typing
    show fullkeymap
    in the command window.
Announcements

Top Tags