Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add detailed explanation of the process when the 'g' key is pressed i… #2457

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
### The G Key is Pressed

1. **Key Event Handling**: When the "g" key is pressed, the operating system captures the key event and sends it to the active application, which is the web browser in this case.

2. **Input Handling by Browser**: The browser processes this key event and checks if there are any active input fields. If there is an active input field, the character "g" is added to the field.

3. **Address Bar Interaction**: If the address bar is active, the browser might suggest URLs based on history or bookmarks starting with "g".

4. **Network Request Initiation**: If "google.com" is typed and Enter is pressed, the browser initiates a DNS lookup to resolve the domain name to an IP address.

5. **TCP/IP Connection**: The browser establishes a TCP connection to the resolved IP address.

6. **HTTPS Request**: The browser sends an HTTPS GET request to the server.

7. **Server Response**: The server responds with the HTML, CSS, and JavaScript needed to render the Google homepage.

8. **Rendering**: The browser parses the HTML, applies the CSS, and executes JavaScript to render the page.