Keyboard Events with Javascript

Поділитися
Вставка
  • Опубліковано 5 лют 2025

КОМЕНТАРІ • 55

  • @johnjennings3245
    @johnjennings3245 2 роки тому +2

    Great video man, doing 508 work right now and this helped me. Many thanks 👏

  • @edmel144
    @edmel144 3 роки тому +1

    This is an excellent video showing how to link HTML/JS (in VS Code) to out in the browser and console. And, how doing so helps you to see what keyboards events are doing.

  • @Leon-2026
    @Leon-2026 Рік тому

    Thank you so much, this was very helpful for a game project I am working on.

  • @roxyzolezzi1933
    @roxyzolezzi1933 Рік тому

    Great explanation, thank you so much! I finally understood c:

  • @adeelmuzaffar9027
    @adeelmuzaffar9027 2 роки тому

    Bro, you nailed it, I was taking it like mount Everest but after watching your video, feels like, Now it is a small stone to me😅😅, Finally I got to know what I was searching for, thank you.

  • @fabianbustos5188
    @fabianbustos5188 2 роки тому +2

    Very good!! Muy bueno, amigo 👍

  • @DonGivani
    @DonGivani 3 роки тому +1

    Thank you very much, you saved me time , exploring this subject!!!!

  • @rangabharath4253
    @rangabharath4253 3 роки тому +2

    awesome as always

    • @ieatwebsites
      @ieatwebsites  3 роки тому +1

      Thank you! 😁

    • @disrael2101
      @disrael2101 2 роки тому

      I still don't understand the difference between kepup and keydown

  • @jackdo1012
    @jackdo1012 3 роки тому +2

    can you show me the event that detects when you hold a spacebar for x seconds please

  • @denijazz10
    @denijazz10 2 роки тому

    My console does not give any single reaction for these key events, nothing... Why ?

  • @bod4gaming609
    @bod4gaming609 3 роки тому +2

    I'm sorry sir for this question. I hope you have warm heart to answer me. I'm a video editor.
    But I want make application that can read what key press even this application is not focused/active (show behind other window)
    Can you give me advice or recommendation. How to code that application still can run and can read/get keypressed even it is not focused/active.
    I've make a application to show what button press, but when it goes to other apps. It can't read/know what key I have press. Sorry for my english, thanks. I'm very respectfull if you want answer my question.

  • @rufatbaghirli2096
    @rufatbaghirli2096 3 роки тому +1

    Thank you for useful explanation!

  • @aer0449
    @aer0449 2 роки тому

    Man this helped me a lot thank you so much sir

  • @edmel144
    @edmel144 3 роки тому +1

    7:56 I have VS Code set up similarly, I notice for things like the .keyCode member of event 'e' no intellisense comes up. I notice this happens to other pieces of code for HTML/JS in VS Code. Is there a way to get these to show?

  • @jamesrandes8473
    @jamesrandes8473 2 роки тому

    why when i use onkeypress it has underline and says onkeypress is deprecated

  • @gfddgitgud3848
    @gfddgitgud3848 2 роки тому +1

    Nice!! thx!!

  • @mnnw148
    @mnnw148 Рік тому +1

    so great video

  • @juancaca1993
    @juancaca1993 2 роки тому

    Cool video, thanks for your effort!!!!!

  • @Jim_in_the_gym
    @Jim_in_the_gym 3 роки тому +2

    Thanks you are awesome

  • @NAEL4SLR
    @NAEL4SLR 2 роки тому +1

    Thanks for sharing

  • @danial8146
    @danial8146 3 роки тому

    very good but why shoud i use e.keycode when i can use e.key dirct ?

  • @MHamdy-gw2ox
    @MHamdy-gw2ox 3 роки тому +1

    really valuable!

  • @paulahauf8228
    @paulahauf8228 3 роки тому +1

    Thank You!!!

  • @thamidurandilbandara415
    @thamidurandilbandara415 3 роки тому +1

    Wow cool vid!Also thx,:D

  • @eniskalyon
    @eniskalyon 3 роки тому

    can you please tell us how to add a keyboard listener even we don't know that keycode number, for example how can we use event.key appropriately to give us an alert when "w" is pressed?

    • @ieatwebsites
      @ieatwebsites  3 роки тому +1

      You can use " event.key === 'w' "

  • @simranbanwait
    @simranbanwait 2 роки тому

    thankyou so much sir

  • @UrAshWhole
    @UrAshWhole 3 роки тому

    keycode is deprecated. What's the alternative?

  • @ferdinando7233
    @ferdinando7233 2 роки тому +1

    Thanksssss!!!!!!

  • @hamm3rman199
    @hamm3rman199 2 роки тому

    ugh a js file have a React icon

  • @christophermonyei7114
    @christophermonyei7114 2 роки тому +1

    Helpful

  • @ishaanpandey
    @ishaanpandey 3 роки тому +2

    wow great

  • @juliangonzalez1207
    @juliangonzalez1207 3 роки тому

    alta gorra

  • @mikoajstaniaszek6613
    @mikoajstaniaszek6613 2 роки тому

    xaxaXAXAxaxaXAXA dobry byczek jestes jd

  • @ChiChibi_Personal
    @ChiChibi_Personal 2 роки тому +1

    I also eat websites for a living.

  • @mikoajstaniaszek6613
    @mikoajstaniaszek6613 2 роки тому

    WP