The ng-geo-keyboard
library provides the GeoKeyboard
directive, which maps English keyboard inputs to Georgian characters in input
and textarea
fields. It is simple, standalone, and highly configurable.
- Automatically converts English keyboard inputs to Georgian characters.
- Allows optional inclusion of non-Georgian symbols.
- Lightweight and easy to integrate into any Angular project.
- Works seamlessly with both
<input>
and<textarea>
elements.
Install the library via npm:
npm install ng-geo-keyboard
Import the GeoKeyboard
directive into your Angular application:
import { GeoKeyboard } from 'ng-geo-keyboard';
@Component({
selector: 'app-root',
standalone: true,
imports: [GeoKeyboard],
})
export class AppComponent {}
Use the geoKeyboard
directive in your template:
<input type="text" geoKeyboard /> <textarea geoKeyboard></textarea>
By default, the directive restricts input to Georgian characters. To allow mixed symbols, bind onlyGeoSymbols
to false
:
<input type="text" geoKeyboard [onlyGeoSymbols]="false" />
<textarea geoKeyboard [onlyGeoSymbols]="false"></textarea>
onlyGeoSymbols
(boolean, default:true
):true
: Only Georgian characters are allowed.false
: Non-Georgian symbols are preserved.