mediacube-ui 0.1.427 → 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,8 @@
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
+
5
7
  ### [0.1.427](https://github.com/MediaCubeCo/mcui/compare/v0.1.423...v0.1.427) (2025-10-18)
6
8
 
7
9
  ### [0.1.423](https://github.com/MediaCubeCo/mcui/compare/v0.1.422...v0.1.423) (2025-10-17)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.427",
3
+ "version": "0.1.428",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -698,14 +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_ctrl = e.metaKey || e.ctrlKey
702
- const is_copy = is_ctrl && e.key === 'c'
703
- const is_paste = is_ctrl && e.key === 'v'
704
- const is_select = is_ctrl && e.key === 'a'
705
- const is_command = is_paste || is_copy || is_select
701
+ const is_ctrl_pressed = e.metaKey || e.ctrlKey
706
702
  const is_allowed_symbol = e.key?.match(/Arrow|Backspace|\.,/)
707
703
 
708
- 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) {
709
705
  e.preventDefault()
710
706
  }
711
707