![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
ngx-touch-keyboard
Advanced tools
Virtual Keyboard for Angular applications.
https://mohsen77sk.github.io/angular-touch-keyboard/
npm install @angular/cdk ngx-touch-keyboard
Add ngxTouchKeyboardModule
as an import in your app's root NgModule.
import { ngxTouchKeyboardModule } from 'ngx-touch-keyboard';
@NgModule({
...
imports: [
...
ngxTouchKeyboardModule,
],
...
})
export class AppModule { }
3.0.0
]@angular/core
: ^16.0.0
|| ^17.0.0
|| ^18.0.0
@angular/cdk
: ^16.0.0
|| ^17.0.0
|| ^18.0.0
2.0.0
]@angular/core
: ^14.0.0
|| ^15.0.0
@angular/cdk
: ^14.0.0
|| ^15.0.0
AngularTouchKeyboard is localized in 7 keyboard-specific locales:
en-US
English (United States) (default)en-UK
English (United Kingdom)fa-IR
Persian (Iran)he-IL
Hebrew (Israel)ka-GE
Georgian (Georgia)ru-RU
Russian (Russia)sv-SE
Swedish (Sweden)Simple usage example
<input
type="text"
ngxTouchKeyboard
#touchKeyboard="ngxTouchKeyboard"
(focus)="touchKeyboard.openPanel()"
/>
Locale usage example
<input
type="text"
ngxTouchKeyboard="fa-IR"
#touchKeyboard="ngxTouchKeyboard"
(focus)="touchKeyboard.openPanel()"
/>
Material usage example
<mat-form-field>
<mat-label>Default</mat-label>
<input
matInput
type="text"
ngxTouchKeyboard
#touchKeyboard="ngxTouchKeyboard"
/>
<button
mat-icon-button
matSuffix
type="button"
(click)="touchKeyboard.togglePanel()"
>
<mat-icon> keyboard </mat-icon>
</button>
</mat-form-field>
Property | Description |
---|---|
ngxTouchKeyboard | Required to initialize Virtual Keyboard to specified input. |
ngxTouchKeyboardDebug | Debug mode is on. |
ngxTouchKeyboardFullScreen | Full screen mode is on. |
Here's the list of all available methods:
Methods | Description |
---|---|
openPanel(): void | Open keyboard panel |
closePanel(): void | Close keyboard panel |
togglePanel(): void | Toggle keyboard panel |
default
: white themedark
: dark themeYou must put the class dark
in the body to use the dark
theme.
To customize the theme, you need to use css variables.
Name | Description |
---|---|
--tk-color-text | color of text button |
--tk-background | color of background panel |
--tk-background-button | color of background basic button |
--tk-background-button-fn | color of background functional button |
--tk-background-button-active | color of background active button |
Depends on attribute inputmode, the keyboard layout is changed.
inputmode | Screenshot |
---|---|
inputmode='text' | ![]() |
inputmode='search' | ![]() |
inputmode='email' | ![]() |
inputmode='url' | ![]() |
inputmode='numeric' | ![]() |
inputmode='decimal' | ![]() |
inputmode='tel' | ![]() |
The most useful commands for development are:
npm run start
to start a development servernpm run build-demo
to build the demo locally (it will be published automatically by GitHub Actions)[3.3.0] - 2024-09-19
FAQs
Virtual Keyboard for Angular applications
The npm package ngx-touch-keyboard receives a total of 193 weekly downloads. As such, ngx-touch-keyboard popularity was classified as not popular.
We found that ngx-touch-keyboard demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.