mohsen77sk / angular-touch-keyboard Goto Github PK
View Code? Open in Web Editor NEWVirtual Keyboard for Angular applications.
License: MIT License
Virtual Keyboard for Angular applications.
License: MIT License
it is me again ๐
the virtual keyboard should respect the maxLength property like normal keyboard
import { Layout, Display, Locale } from '../type';
import { fnDisplay } from '../constants';
const layouts: Layout = {
text_alphabetic: [
[ 'แฅ', 'แฌ', 'แ', 'แ ', 'แข', 'แง', 'แฃ', 'แ', 'แ', 'แ' ],
['แ', 'แก', 'แ', 'แค', 'แ', 'แฐ', 'แฏ', 'แ', 'แ'],
['{shift}', 'แ', 'แฎ', 'แช', 'แ', 'แ', 'แ', 'แ', '{backspace}'],
['{numeric}', '{space}', '{done}'],
],
text_shift: [
['แฅ', 'แญ', 'แ', 'แฆ', 'แ', 'แง', 'แฃ', 'แ', 'แ', 'แ'],
['แ', 'แจ', 'แ', 'แค', 'แ', 'แฐ', 'แ', 'แ', 'โพ'],
['{shift}', 'แซ', 'แฎ', 'แฉ', 'แ', 'แ', 'แ', 'แ', '{backspace}'],
['{numeric}', '{space}', '{done}'],
],
text_numeric: [
['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],
['-', '/', ':', ';', '(', ')', '$', '&', '@', '"'],
['{symbolic}', '.', ',', '?', '!', "'", '{backspace}'],
['{alphabetic}', '{space}', '{done}'],
],
text_symbolic: [
['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],
['_', '\\', '|', '~', '<', '>', 'โฌ', 'ยฃ', 'ยฅ', 'โข'],
['{numeric}', '.', ',', '?', '!', "'", '{backspace}'],
['{alphabetic}', '{space}', '{done}'],
],
search_alphabetic: [
[ 'แฅ', 'แฌ', 'แ', 'แ ', 'แข', 'แง', 'แฃ', 'แ', 'แ', 'แ' ],
['แ', 'แก', 'แ', 'แค', 'แ', 'แฐ', 'แฏ', 'แ', 'แ'],
['{shift}', 'แ', 'แฎ', 'แช', 'แ', 'แ', 'แ', 'แ', '{backspace}'],
['{numeric}', '{space}', '{done}'],
],
search_shift: [
['แฅ', 'แญ', 'แ', 'แฆ', 'แ', 'แง', 'แฃ', 'แ', 'แ', 'แ'],
['แ', 'แจ', 'แ', 'แค', 'แ', 'แฐ', 'แ', 'แ', 'โพ'],
['{shift}', 'แซ', 'แฎ', 'แฉ', 'แ', 'แ', 'แ', 'แ', '{backspace}'],
['{numeric}', '{space}', '{done}'],
],
search_numeric: [
['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],
['-', '/', ':', ';', '(', ')', '$', '&', '@', '"'],
['{symbolic}', '.', ',', '?', '!', "'", '{backspace}'],
['{alphabetic}', '{space}', '{done}'],
],
search_symbolic: [
['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],
['_', '\\', '|', '~', '<', '>', 'โฌ', 'ยฃ', 'ยฅ', 'โข'],
['{numeric}', '.', ',', '?', '!', "'", '{backspace}'],
['{alphabetic}', '{space}', '{done}'],
],
email_alphabetic: [
['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],
['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],
['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],
['{numeric}', '@', '{space}', '.', '{done}'],
],
email_shift: [
['a', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'],
['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'],
['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],
['{numeric}', '@', '{space}', '.', '{done}'],
],
email_numeric: [
['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],
['$', '!', '~', '&', '=', '#', '[', ']'],
['{symbolic}', '.', '_', '-', '+', '{backspace}'],
['{alphabetic}', '@', '{space}', '.', '{done}'],
],
email_symbolic: [
['`', '|', '{', '}', '?', '%', '^', '*', '/', "'"],
['$', '!', '~', '&', '=', '#', '[', ']'],
['{numeric}', '.', '_', '-', '+', '{backspace}'],
['{alphabetic}', '@', '{space}', '.', '{done}'],
],
url_alphabetic: [
['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],
['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],
['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],
['{numeric}', '/', '.com', '.', '{done}'],
],
url_shift: [
['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'],
['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'],
['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],
['{numeric}', '/', '.com', '.', '{done}'],
],
url_numeric: [
['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],
['@', '&', '%', '?', ',', '=', '[', ']'],
['{symbolic}', '_', ':', '-', '+', '{backspace}'],
['{alphabetic}', '/', '.com', '.', '{done}'],
],
url_symbolic: [
['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],
['*', '$', '#', '!', "'", '^', '[', ']'],
['{numeric}', '~', ';', '(', ')', '{backspace}'],
['{alphabetic}', '/', '.com', '.', '{done}'],
],
numeric_default: [
['1', '2', '3'],
['4', '5', '6'],
['7', '8', '9'],
['0', '{backspace}'],
],
decimal_default: [
['1', '2', '3'],
['4', '5', '6'],
['7', '8', '9'],
['.', '0', '{backspace}'],
],
tel_default: [
['1', '2', '3', '*'],
['4', '5', '6', '#'],
['7', '8', '9', '+'],
['0', '{backspace}'],
],
};
const display: Display = {
'{done}': fnDisplay.DONE,
'{shift}': fnDisplay.SHIFT,
'{backspace}': fnDisplay.BACKSPACE,
'{space}': fnDisplay.SPACE,
'{alphabetic}': 'แแแ',
'{numeric}': '123',
'{symbolic}': '#+=',
};
const locale: Locale = {
code: 'ka-GE',
dir: 'ltr',
layouts: layouts,
display: display,
};
export default locale;
can i add custom local simply for keyboard without fork the project ?
The keyboard should be multilingual
the enter key adds an "\n" that should be limited to textarea only, it creates confusion with the backspace key
i fix it in my projet with
else if (button === fnButton.ENTER) { if (this._activeInputElement.type === "textarea") { output = this._addStringAt(output, '\n', ...commonParams); } }
I needed to be on version 13.3.9.
please consider backward compatible. #4
I'm trying to use this really great lib in my Angular 16 application, but even if I follow the read.me instructions, I can't create the
This is my app.module:
import { NgxTouchKeyboardModule } from 'ngx-touch-keyboard';
...
@NgModule({
declarations: [...],
providers: [...],
bootstrap: [AppComponent],
imports: [..., NgxTouchKeyboardModule]
})
This is my html code:
<input type="text" ngxTouchKeyboard #touchKeyboard="ngxTouchKeyboard" (focus)="touchKeyboard.openPanel()"/>
And this the error that I receive: No directive found with exportAs 'ngxTouchKeyboard'
Image:
Angular 14.1.0 Neither version works
Custom keyboard layout or more inputModes ? Or add custom locales
In these two components they keyboard gets overshadowed and doesn't attach itselfs to the inputs inside the modals/dialogs.
the enter key dont submit form when used on simple input, not sure how to fix it again
Could be great have a zoom factor to show bigger buttons
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.