diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..83977df7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +changelog: + exclude: + # A list of labels that exclude a pull request from appearing in release notes. + labels: + - ignore-for-release + authors: + - octocat + categories: + - title: Breaking Changes 🛠 + labels: + - Semver-Major + - breaking-change + - title: Exciting New Features 🎉 + labels: + - Semver-Minor + - feature + - title: Other Changes + labels: + - '*' + footer: | + ### Revogrid: + - ⭐ [Star the Revogrid Repo](https://github.com/revolist/revogrid) + - 🐦 [Follow at Twitter](https://x.com/revolist_ou/) + - 🔗 [Follow at LinkedIn](https://www.linkedin.com/company/revolist) \ No newline at end of file diff --git a/docs b/docs index dabf8a05..ca42b4b7 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit dabf8a05d570c7356fa853b559ea178d7f899442 +Subproject commit ca42b4b759f8043443cbe534275dffbb36e61bb1 diff --git a/src/components.d.ts b/src/components.d.ts index a09d9b58..139e4517 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -750,10 +750,7 @@ declare global { "afteredit": AfterEditEvent; "beforeautofill": ChangedRange; "beforerange": ChangedRange; - "afterfocus": { - model: any; - column: ColumnRegular; - }; + "afterfocus": FocusAfterRenderEvent; "roworderchanged": { from: number; to: number }; "beforesortingapply": { column: ColumnRegular; @@ -1317,10 +1314,7 @@ declare namespace LocalJSX { /** * Triggered after focus render finished. Can be used to access a focus element through `event.target`. This is just a duplicate of `afterfocus` from `revogr-focus.tsx`. */ - "onAfterfocus"?: (event: RevoGridCustomEvent<{ - model: any; - column: ColumnRegular; - }>) => void; + "onAfterfocus"?: (event: RevoGridCustomEvent) => void; /** * Emmited after the grid is initialized. Connected to the DOM. */ diff --git a/src/components/overlay/keyboard.service.ts b/src/components/overlay/keyboard.service.ts index 7ff623e2..e015c839 100644 --- a/src/components/overlay/keyboard.service.ts +++ b/src/components/overlay/keyboard.service.ts @@ -6,7 +6,6 @@ import { isCopy, isCut, isEnterKeyValue, - isLetterKey, isPaste, isTab, } from '../../utils/key.utils'; @@ -117,7 +116,7 @@ export class KeyboardService { } // pressed letter key - if (isLetterKey(e.keyCode)) { + if (e.key.length === 1) { this.sv.change(e.key); return; } diff --git a/src/utils/key.utils.ts b/src/utils/key.utils.ts index 01649ee4..327fa57a 100644 --- a/src/utils/key.utils.ts +++ b/src/utils/key.utils.ts @@ -1,17 +1,6 @@ import KeyCodesEnum, { codesLetter, keyValues } from './key.codes'; import OsPlatform from './platform'; -export function isLetterKey(code: number): boolean { - return ( - code === 32 || // space - (code >= 48 && code <= 57) || - (code >= 96 && code <= 111) || - (code >= 186 && code <= 192) || - (code >= 219 && code <= 222) || - code >= 226 || - (code >= 65 && code <= 90) - ); // a-z -} export function isMetaKey(code: number): boolean { const keys: KeyCodesEnum[] = [