๐Ÿ“… You're Invited: Meet the Socket team at RSAC (April 28 โ€“ย May 1).RSVP โ†’
Socket
Sign inDemoInstall
Socket

mole-virtual-keyboard

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mole-virtual-keyboard

![logo1](./docs/logo1.png) ![logo2](./docs/logo2.png)

0.2.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

mole-virtual-keyboard

logo1 logo2

ํ•œ๊ธ€ ์ž…๋ ฅ์ด ๊ฐ€๋Šฅํ•œ ์›น ์ „์šฉ ๊ฐ€์ƒ ํ‚ค๋ณด๋“œ์ž…๋‹ˆ๋‹ค.

DEMO

demo

Link

Installation

npm install mole-virtual-keyboard
yarn add mole-virtual-keyboard

Sample Code

import { HangulImeInputWrapper } from "mole-virtual-keyboard";
import { useEffect, useRef } from "react";

let inputWrapper: HangulImeInputWrapper | undefined = undefined;

export default function App() {
  const inputRef = useRef<HTMLInputElement>(null);

  useEffect(() => {
    if (!inputRef.current) return;
    inputWrapper = new HangulImeInputWrapper(inputRef.current);
  }, []);

  return (
    <div className="App">
      <div>
        <span>์ž…๋ ฅ : </span>
        <input
          ref={inputRef}
          type="text"
          onSelect={() => {
            inputWrapper?.checkChangedSelect();
          }}
        />
      </div>
      <div>
        {"ใ„ฑใ„ฒใ„ดใ„ทใ„ธใ„นใ…ใ…‚ใ…ƒใ……ใ…†ใ…‡ใ…ˆใ…‰ใ…Šใ…‹ใ…Œใ…ใ…Ž".split("").map((val, idx) => {
          return (
            <button
              key={idx}
              onClick={() => {
                inputWrapper?.insert(val);
              }}
            >
              {val}
            </button>
          );
        })}
      </div>
    </div>
  );
}

Keywords

hangul ime

FAQs

Package last updated on 23 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts