@quenty/inputkeymaputils 7.6.0 → 7.7.0

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [7.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputkeymaputils@7.6.0...@quenty/inputkeymaputils@7.7.0) (2022-11-19)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Start supporting :GetModifierChords(inputEnumType) ([7301613](https://github.com/Quenty/NevermoreEngine/commit/7301613f5a5f8a7aedd0ec2ca8e3409e3c39451b))
12
+
13
+
14
+
15
+
16
+
6
17
  # [7.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/inputkeymaputils@7.5.0...@quenty/inputkeymaputils@7.6.0) (2022-11-12)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/inputkeymaputils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/inputkeymaputils",
3
- "version": "7.6.0",
3
+ "version": "7.7.0",
4
4
  "description": "System to define rebindable key bindings and inputs for Roblox.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -28,23 +28,23 @@
28
28
  "dependencies": {
29
29
  "@quenty/baseobject": "^6.0.1",
30
30
  "@quenty/brio": "^8.1.1",
31
- "@quenty/clienttranslator": "^8.4.0",
31
+ "@quenty/clienttranslator": "^8.5.0",
32
32
  "@quenty/enumutils": "^3.0.0",
33
- "@quenty/inputmode": "^7.3.0",
33
+ "@quenty/inputmode": "^7.4.0",
34
34
  "@quenty/loader": "^6.0.1",
35
35
  "@quenty/maid": "^2.4.0",
36
- "@quenty/observablecollection": "^5.1.1",
36
+ "@quenty/observablecollection": "^5.2.0",
37
37
  "@quenty/pseudolocalize": "^3.0.0",
38
38
  "@quenty/rx": "^7.1.1",
39
- "@quenty/servicebag": "^6.2.0",
39
+ "@quenty/servicebag": "^6.3.0",
40
40
  "@quenty/statestack": "^8.1.1",
41
41
  "@quenty/string": "^3.0.0",
42
42
  "@quenty/table": "^3.1.0",
43
- "@quenty/valuebaseutils": "^7.1.1",
43
+ "@quenty/valuebaseutils": "^7.2.0",
44
44
  "@quenty/valueobject": "^7.1.1"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "24d3b85c01f0ce732d4290b62af8cc1b5c47f07a"
49
+ "gitHead": "2114f42ae399a4417a3ebd4d35bf481690ca7923"
50
50
  }
@@ -53,6 +53,7 @@ local RxBrioUtils = require("RxBrioUtils")
53
53
  local SlottedTouchButtonUtils = require("SlottedTouchButtonUtils")
54
54
  local StateStack = require("StateStack")
55
55
  local String = require("String")
56
+ local InputChordUtils = require("InputChordUtils")
56
57
 
57
58
  local InputKeyMapList = setmetatable({}, BaseObject)
58
59
  InputKeyMapList.ClassName = "InputKeyMapList"
@@ -332,6 +333,11 @@ function InputKeyMapList:ObserveSlottedTouchButtonDataBrio()
332
333
  })
333
334
  end
334
335
 
336
+ function InputKeyMapList:GetModifierChords(_inputEnumType)
337
+ -- TODO: Provide way to query modifer chords
338
+ return {}
339
+ end
340
+
335
341
  function InputKeyMapList:_ensureInit()
336
342
  if self._inputTypesForBinding then
337
343
  return self._inputTypesForBinding
@@ -366,6 +372,8 @@ function InputKeyMapList:_ensureInit()
366
372
  maid:GiveTask(self._isTapInWorld:PushState(true))
367
373
  elseif InputTypeUtils.isRobloxTouchButton(inputType) then
368
374
  maid:GiveTask(self._isRobloxTouchButton:PushState(true))
375
+ elseif InputChordUtils.isModifierInputChord(inputType) then
376
+ maid:GiveTask(self._inputTypesForBinding:Add(inputType.keyCode))
369
377
  end
370
378
  end
371
379