From 7b09e72373d96a74d529d03e16115c77926810c1 Mon Sep 17 00:00:00 2001 From: Matheus Antonelli Date: Wed, 31 May 2023 21:05:16 -0300 Subject: [PATCH] =?UTF-8?q?fix(grid):=20edita=20c=C3=A1lula=20atrav=C3=A9s?= =?UTF-8?q?=20do=20numpad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As células do componente po-grid apenas eram habilitadas para edição através das teclas alfa-numéricas do teclado principal --- .../po-grid/po-grid-cell/po-grid-cell.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/ui/src/lib/components/po-grid/po-grid-cell/po-grid-cell.component.ts b/projects/ui/src/lib/components/po-grid/po-grid-cell/po-grid-cell.component.ts index 8e1d16ab84..5b45a0fa4e 100644 --- a/projects/ui/src/lib/components/po-grid/po-grid-cell/po-grid-cell.component.ts +++ b/projects/ui/src/lib/components/po-grid/po-grid-cell/po-grid-cell.component.ts @@ -69,7 +69,11 @@ export class PoGridCellComponent { } // A..Z - 0..9 - if ((event.keyCode >= 65 && event.keyCode <= 90) || (event.keyCode >= 48 && event.keyCode <= 57)) { + if ( + (event.keyCode >= 65 && event.keyCode <= 90) || + (event.keyCode >= 48 && event.keyCode <= 57) || + (event.keyCode >= 96 && event.keyCode <= 105) + ) { event.preventDefault(); this.onEditCell(event.key); }