Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Visual Studio Tools- Keypress event

(0) ShareShare
ReportReport
Posted on by 18,267

On Dynamics GP-->for Lookup if user press 'Ctrl + l) it open Lookup. Is it possible to get same key press event using Visual Studio Tools?

Your earliest reply is highly appreciable.

Thanks

Sandip Jadhav

*This post is locked for comments

  • Suggested answer
    RE: Visual Studio Tools- Keypress event

    Sandip,

    Have you looked at using the 'Menus for VS Tools' Add-On?  I think that allows you to register VS forms into the menu structure and you can also give the form a shortcut of some kind (CTRL + S, or something like that). I don't know if you can reuse CTRL + L as Almas stated, because it's already in use.

    Regards,

    Aaron

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,006 User Group Leader on at
    RE: Visual Studio Tools- Keypress event

    Sandip,

    Sorry to getting back to you late, Eid Holidays. :)

    Ctrl+L is already used by browser so you may try using only L.

    below is a code.

    <textarea name="MyText" id="MyText" onKeyPress="handleKey(this);" ></textarea>

     

    <script>

        function handleKey(ta) {

            if (event.keyCode == 108 || event.keyCode == 76) {

                                    alert('L pressed.');

            }

        }

    </script>

     

    alert('L pressed.'); will be replaced by your code to open lookup window.

    Hope this will help.

  • sandipdjadhav Profile Picture
    sandipdjadhav 18,267 on at
    RE: Visual Studio Tools- Keypress event

    Almas,

    Nice to see you!!! I need Ctrl + L only for Lookup field. Is it possible to get Kepress event from Visual Studio Tools?

    Thanks

    Sandip

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,006 User Group Leader on at
    RE: Visual Studio Tools- Keypress event

    Ctrl+L only works with those fields for which we have used 'Linked Lookup' property. I think to give image of Crtl+L functionality you need to do some coding, just opposite to dexterity where we just link lookup and it opens on Ctrl+L.

    BTW nice question. :)

    Will try to do it when have some time.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans