mediacube-ui 0.1.426 → 0.1.428

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.428](https://github.com/MediaCubeCo/mcui/compare/v0.1.427...v0.1.428) (2025-10-18)
6
+
7
+ ### [0.1.427](https://github.com/MediaCubeCo/mcui/compare/v0.1.423...v0.1.427) (2025-10-18)
8
+
5
9
  ### [0.1.423](https://github.com/MediaCubeCo/mcui/compare/v0.1.422...v0.1.423) (2025-10-17)
6
10
 
7
11
  ### 0.1.422 (2025-10-01)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.426",
3
+ "version": "0.1.428",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -698,13 +698,10 @@ export default {
698
698
  const excluded_symbols = ['.', ',']
699
699
  this.allowNegative && excluded_symbols.push('-')
700
700
  const is_excluded_symbol = excluded_symbols.includes(e.key)
701
- const is_copy = e.metaKey && e.key === 'c'
702
- const is_paste = e.metaKey && e.key === 'v'
703
- const is_select = e.metaKey && e.key === 'a'
704
- const is_command = is_paste || is_copy || is_select
701
+ const is_ctrl_pressed = e.metaKey || e.ctrlKey
705
702
  const is_allowed_symbol = e.key?.match(/Arrow|Backspace|\.,/)
706
703
 
707
- if ((isNaN(+e.key) && !is_allowed_symbol && !is_excluded_symbol && !is_command) || is_space) {
704
+ if ((isNaN(+e.key) && !is_allowed_symbol && !is_excluded_symbol && !is_ctrl_pressed) || is_space) {
708
705
  e.preventDefault()
709
706
  }
710
707