[GopherJS] Virtual Keyboard
Virtual kayboard/keypad in GopherJS [1].
Real world application is Pāli Dictionary. There are special characters in romanized Pāli. For the convenience of input Pāli words, users can use the virtual keyboard to type Pāli word without installation of Pāli input method in computers
Source code:
The main logic in Go code is simple:
- Create input element for each letter in Pāli alphabet.
- Listen to click event of the input element. In the callback of click event, add the corresponding Pāli letter to the user input.
For complete source code + demo code, see [2].
For plain JavaScript version, see [6].
Tested on:
- Ubuntu Linux 16.10
- Go 1.7.5
- Chromium Version 55.0.2883.87 Built on Ubuntu , running on Ubuntu 16.10 (64-bit)
References:
[1] | GopherJS - A compiler from Go to JavaScript (GitHub, GopherJS Playground, ) |
[2] | GitHub - siongui/gopherjs-pali-virtual-keypad: Virtual Keyboard for Pāli input. Written in Go. |
[3] | [AngularJS] Virtual Keyboard |
[4] | [Vue.js] Virtual Keyboard |
[5] | [Dart] Virtual Keyboard |
[6] | [JavaScript] Virtual Keyboard |