Git Product home page Git Product logo

Comments (5)

extracold1209 avatar extracold1209 commented on August 10, 2024

@wodnjs6512

해당 이슈 개발 중 관련 이슈가 있었나요?

@genius0412

src/playground/blocks/inputs/keyboard.js#keyInputList 를 말씀하시는 것 맞을까요?

from entryjs.

genius0412 avatar genius0412 commented on August 10, 2024

네 맞습니다

from entryjs.

genius0412 avatar genius0412 commented on August 10, 2024

정확하게 버그를 말씀드리자면
드랍다운 부분을 클릭하고 'home' 키 등을 클릭하면
"대상없음" 이라고 뜨면서 'home' 키를 눌렀을때 실제로 실행이 됩니다
최근 업데이트로 인한 버그인것 같습니다.

from entryjs.

wodnjs6512 avatar wodnjs6512 commented on August 10, 2024

@genius0412 @extracold1209
해당 코드는 원래 미지원으로 중지해야하는 코드입니다. 기존에 지원 계획여부 확인중에 유입된 코드인것으로 파악되는데
변경되어서 원래는 동작해서는 안되는 코드입니다.(버튼 드랍다운에서 보이지 않도록 해둔 이유입니다.)
INSERT/ DELETE/ HOME/ END /PAGEUP / PAGEDOWN은 추후에 사용이 불가하게 될 것 같습니다.

그리고 맨위에서 첫번째에서 질문해주신 e.key 사용 여부인데요.

e.code == undefined ? e.key : e.code 로 사용하고있습니다.

src/util/utils.js@L:780 을 참조하시면 될것 같습니다.

해당 부분을 그렇게 사용 하는 이유는 풀사이즈 키보드와 텐키리스 키보드의 키 인풋 값이 다르기 때문입니다.
기존에는 keyCode를 사용했던 것은 맞으나, keyCode는 deprecated 이기때문에 key/code로 변경 되었습니다.
참조 https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode

그에 따라서 기존에 지원 되던 레거시 코드와의 호환성 때문에 keyInputList를 사용하고있습니다.

from entryjs.

genius0412 avatar genius0412 commented on August 10, 2024

감사합니다.

from entryjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.