Problem with Context Menu Copy+Paste+Run Key Assignment

Jun 2, 2008
376
2
Newton, MA
I finally figured out how to configure the context menu for command-line editing (right-click in the clipboard section of the Edit menu). I then duplicated the assignments I made in version 19, including assigning Alt-R to Copy+Paste+Run. Opening the context menu with a right-click and selecting that option works, but Alt-R does the Copy+Paste but not the Run.
 
Jun 2, 2008
376
2
Newton, MA
All of the Alt-alpha keys I have defined, exactly as it did in version 19, are being picked up by TCMD. The problem is that Alt-R, which is associated with Copy-Paste-Run, does the copy and paste but fails to run. That's a bug.

I have Alt-P assigned to Copy-Paste, and it works fine. Alt-N opens a new tab just fine. Moreover, all of the keys work just fine in version 19.
 
May 20, 2008
11,380
98
Syracuse, NY, USA
Jay seems to be right. I assigned Alt-R to Copy+Paste+Run and it only copied and pasted.

And, FWIW, all Alt-letter combinations seem to work except for the letters F, E, V, T, L, W, O, H (expected, they're on TCMD's main menu) and Q (I don't know why).
 
Jun 2, 2008
376
2
Newton, MA
I just tried assigning Ctrl-R to that function, and it works. Then I tried Alt-. (Alt Period), and it has the same problem as Alt-R. So I'm wondering if it's a problem with Alt key assignments. Yep, Alt-/ has the problem. But the Alt key assignments to other functions seem to work.
 
May 20, 2008
11,380
98
Syracuse, NY, USA
I just tried assigning Ctrl-R to that function, and it works. Then I tried Alt-. (Alt Period), and it has the same problem as Alt-R. So I'm wondering if it's a problem with Alt key assignments. Yep, Alt-/ has the problem. But the Alt key assignments to other functions seem to work.
I assigned all the Alt-letter keys I mentioned to NewTab and they all worked.
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
My point is that you're setting up conflicts between menu accelerator keys and shortcut keys. Alt-R is already defined as an accelerator key. And your shortcuts are going to break whenever I add new menu entries.

TCMD with your Alt-R is actually calling Copy+paste+run, but the trailing return key is (sometimes, depending on the system speed) being discarded in the RTL when it's sent to the console. I am trying to find a workaround that doesn't require adding a delay (which does work).
 
Jun 2, 2008
376
2
Newton, MA
Can accelerator keys be turned off in the configuration? Apparently in version 19 Alt-R was not assigned as an accelerator key, and that shortcut worked fine -- and I don't seem to need it as a menu accelerator.

Alternatively, I'd have to train myself to use control keys instead of alt keys. For every alt key I was using I have added the corresponding control key as well. It's just that my fingers automatically type Alt-R before I even think (and this is something I do in TCMD all the time). It's also physically easier as I hold the alt key down with my left thumb while typing R with my index finger. Ctrl-R is much harder to type.
 
Similar threads
Thread starter Title Forum Replies Date
Dick Johnson Weird Color Problem Support 8
fishman@panix.com Problem with 27.15 Support 2
M Problem with VSDevCmd.bat in VS 16.7.3 Support 0
R Problem with @INT[ value] in V26 Support 9
M Selecting test "off by one" problem in Take command Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
K_Meinhard Small problem in german IDE 26 Support 3
B Problem with color in nested shells Support 1
Joe Caverly Problem creating and switching to a DESKTOP Support 9
vefatica Another popup problem Support 10
Alpengreis ffind dialog (/W) problem Support 4
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
B IF command problem in tcexit.btm Support 9
fishman@panix.com Problem at Startup of TCC Support 3
P Problem with SFTP copies Support 7
P Problem with FTP copies Support 10
R Problem with %_do_loop in nested do loops Support 2
fishman@panix.com New Problem with later Windows 10 Support 10
Peter Murschall A little problem with LEAVE and COMMENT Support 5
M Handling of %~I problem Support 4
WinLanEm FOR problem Support 18
K Problem With SCRPUT /u Support 3
vefatica What's TCMD's problem with ^e[0m? Support 13
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
rps Regex problem: \xnn not recognized as a hex character Support 0
rps PRIORITY LOW problem Support 1
old coot Regex problem: \xnn not recognized as a hex character Support 12
vefatica Another problem with build 22. Support 3
Alpengreis [23.x] Download-Problem Support 2
S Problem with " Support 3
C Problem navigating forums Support 11
x13 Problem listing repository files using DIR http(s)://... Support 8
Joe Caverly Problem with TEE in v22 Support 2
Alpengreis Problem with thousands delimiter and colors Support 17
M Take Command 18, migrating to another machine, license problem. Support 1
B TCC 21.01.50 Problem with ALIAS /r and SET /r Support 2
rps How to? @search problem Support 2
WinLanEm @SELECT problem Support 6
T Fixed Problem with use of Batch parameters in the IDE Support 1
Oz Solomon Problem with "list" Support 14
S V21.24 theme problem Support 2
Alpengreis Problem if command prompt is not legacy Support 4
Alpengreis TCMD.INI: The "super hidden" problem ... Support 6
G Odd problem - screen brightness Support 4
rps V20 In-process pipes problem Support 8
Alpengreis Again theme problem [v20.0.21]? Support 11
WinLanEm INPUT problem Support 1
Craig Fitzgerald problem with executable extensons with TCC version 19.10.51 x64 Support 3

Similar threads