# .Click action doesn't release Ctrl

**URL:** <https://community.smartbear.com/t/click-action-doesnt-release-ctrl/276>\
**Category:** TestComplete\
**Tags:** test, testcomplete, migrated, desktop-testing\
**Created:** [September 4, 2025, 6:48am UTC](https://community.smartbear.com/t/click-action-doesnt-release-ctrl/276 "2025-09-04T06:48:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [September 4, 2025, 6:48am UTC](https://community.smartbear.com/t/click-action-doesnt-release-ctrl/276/1 "2025-09-04T06:48:32Z")

</div>

> Originally posted by **MW\_Didata** on September 03, 2025

Since the newest Testcomplete update 15.77.6  
when using a click action with Ctrl “obj.Click(-1, -1, skCtrl)”, ctrl doesn’t get released after.

Anyone else with this issue, or any ideas for a fix/ workaround?

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [September 4, 2025, 7:02am UTC](https://community.smartbear.com/t/click-action-doesnt-release-ctrl/276/2 "2025-09-04T07:02:35Z")

</div>

> Originally posted by **MW\_Didata** on September 04, 2025

To test this make sure you have something in your Clipboard.

Make a new test that Ctrl clicks the notepad window.  
Then press v.

Aliases.Notepad.wndNotepad.NotepadTextBox.RichEditD2DPT.Click(143, 67, skCtrl);  
Aliases.Notepad.wndNotepad.NotepadTextBox.RichEditD2DPT.Keys(“v”);

It only presses v but the content of my clipboard gets copied into notepad like it was pressing ctrl+v

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [September 4, 2025, 8:14am UTC](https://community.smartbear.com/t/click-action-doesnt-release-ctrl/276/3 "2025-09-04T08:14:05Z")

</div>

> Originally posted by **rraghvani** on September 04, 2025

I have a simple script to select multiple files in Explorer by holding Ctrl key and clicking the appropriate files.

```auto
function Explorer()
{
    // Select multiple files via Ctrl and Click
    let items = Sys.Process("explorer").Form("C:\\Temp - File Explorer").Panel("C:\\Temp").Window("DUIViewWndClassName", "", 1).Pane("Explorer Pane").Window("CtrlNotifySink", "", 5).Panel("Shell Folder View").List("Items View");
    items.ListItem("Results").Click(-1, -1, skCtrl);
    items.ListItem("Download").Click(-1, -1, skCtrl);
    items.ListItem("FrameSupportSample").Click(-1, -1, skCtrl);    
    items.Click(-1, -1, skNoShift);
}

```

It works. However, the Ctrl key seems to be always pressed, even after inserting the last line to perform skNoShift. I don’t use Click + Shift/Ctrl/Alt in my scripts, but the behaviour it is definitely not correct. It’s definitely a bug! As a workaround, you have to press the Ctrl key again, to release it!

Great find, but how on earth did it pass their regression tests 😡. Ensure you open a [support ticket](https://support.smartbear.com/testcomplete/message/).

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [September 4, 2025, 8:31am UTC](https://community.smartbear.com/t/click-action-doesnt-release-ctrl/276/4 "2025-09-04T08:31:29Z")

</div>

> Originally posted by **MW\_Didata** on September 04, 2025

I only have 1 test where ctrl click is used about 4 times.  
For now this test is disabled.

I have made a Support Ticket.

As a temporary workaround i used this:

> obj.Click(-1, -1, skCtrl); //Ctrl doesn’t get released
> 
> obj.Keys(“\[1\]”); //Manually release the Ctrl (^) button

* * *

1. Release
