Commit Graph

8 Commits

Author SHA1 Message Date
Valtteri Koskivuori
00a0e525e6 Kernel+LibKeyboard: Store the keymap name when setting system keymap
This way we can query the kernel to see which keymap is currently in use.
2020-08-06 17:45:06 +02:00
Brian Gianforcaro
e67d0c9eef LibKeyboard: Don't compile CharacterMap:set_system_map in kernel mode
In preparation for using Userspace<T> in Syscall::SC_setkeymap_params
remove the usage of SC_setkeymap_params from when compiling in kernel
mode. In kernel model we would need to do a bunch of explicit FlatPtr
cats to in order to get it to compile, and it's unused anyway, so just
avoid the pain.
2020-08-02 10:56:33 +02:00
Andreas Kling
11c4a28660 Kernel: Move headers intended for userspace use into Kernel/API/ 2020-07-04 17:22:23 +02:00
Maciej Zygmanowski
48cd26f12d LibKeyboard: Don't crash when file is empty
Just return empty map, like when file error occurs.
2020-06-29 13:27:13 +02:00
Hüseyin ASLITÜRK
25e14911c5 LibKeyboard: Replace char data type to u32 for code point 2020-06-16 13:15:17 +02:00
Matthew Olsson
e8e728454c AK: JsonParser improvements
- Parsing invalid JSON no longer asserts
    Instead of asserting when coming across malformed JSON,
    JsonParser::parse now returns an Optional<JsonValue>.
- Disallow trailing commas in JSON objects and arrays
- No longer parse 'undefined', as that is a purely JS thing
- No longer allow non-whitespace after anything consumed by the initial
  parse() call. Examples of things that were valid and no longer are:
    - undefineddfz
    - {"foo": 1}abcd
    - [1,2,3]4
- JsonObject.for_each_member now iterates in original insertion order
2020-06-13 12:43:22 +02:00
Hüseyin ASLITÜRK
f79b410baa LibKeyboard: Move character map from Kernel to LibKeyboard 2020-06-13 12:36:30 +02:00
Hüseyin ASLITÜRK
3bf5602521 LibKeyboard: Add new library for keyboard applications
Move shared code base from keymap and KeyboardMapper to this library.
2020-06-03 21:52:40 +02:00