web
You’re offline. This is a read only version of the page.
close
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,306

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

I have the same question (0)
  • Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

    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.

  • sandipdjadhav Profile Picture
    18,306 on at

    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
    11,009 User Group Leader on at

    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.

  • Suggested answer
    Community Member Profile Picture
    on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans