---
title: "Discussion on \"How to Close SLDS Modal on Escape(Esc) key in LWC with KeyboardEvents\" | Hashnode"
description: "Discussion on \"How to Close SLDS Modal on Escape(Esc) key in LWC with KeyboardEvents\". MUCH MORE THAN THE MOUSE"
url: "https://hashnode.com/posts/how-to-close-slds-modal-on-escapeesc-key-in-lwc-with-keyboardevents/642ee9ce6d7186dde56c1f18"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Close SLDS Modal on Escape(Esc) key in LWC with KeyboardEvents](https://minerva18.hashnode.dev/how-to-close-slds-modal-on-escapeesc-key-in-lwc-with-keyboardevents?utm_source=hashnode&utm_medium=feed)

MUCH MORE THAN THE MOUSE

Jan 24, 2022 · 3 min read · minerva18.hashnode.dev  
Read the article

-   [#salesforce](https://hashnode.com/tag/salesforce)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#lwc](https://hashnode.com/tag/lwc)
-   [#lightning-web-components](https://hashnode.com/tag/lightning-web-components)

## Written by

[Raghavendhra Yarlagadda](https://hashnode.com/@minerva18)

@minerva18 · Hyderabad, India

  
[View profile](https://hashnode.com/@minerva18)

Learner, maker & breaker of things (not necessarily in that order)

I love to learn, build things &amp; solve problems. Developer with a love for design. DIY Electronics junkie. Certified Trailblazer Guide with a passion for assisting anyone navigate their Salesforce journey. Oh, and did I mention I have a black belt in eating? Foodie at heart! Also, a 12x Certified Developer, Salesforce Trailhead Triple Ranger (I’ve conquered more trails than an avid hiker) with 9 Years of professional experience building unique innovative solutions for customers using Salesforce, IoT, AI &amp; Design on the web and mobile. Random Facts: I can debug code and eat a gourmet meal simultaneously. My love for solving problems is only rivaled by my love for solving the mystery of what’s for dinner.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
