diff --git a/README.md b/README.md index c0fb79f..9ffaa99 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,14 @@ Alternatively, visit the forums (not very active): https://essence.handmade.netw To support development, you can donate to my Patreon: https://www.patreon.com/nakst. +## Testing + +You can download and test the latest nightly build from https://github.com/nakst/build-essence/releases. Download and extract `Essence.tar.xz`. If you are using VirtualBox, import `Essence.ova`. If you are using Qemu, run + + qemu-kvm -drive file=drive,format=raw -m 2048 -smp 2 || qemu-system-x86_64 -enable-kvm -drive file=drive,format=raw -m 2048 -smp 2 + +These builds are configured to run on emulators only, to make testing easier. Builds for real hardware are coming soon :) + ## Building See `help/Building.md` for a description of how to build and test the system. diff --git a/kernel/windows.cpp b/kernel/windows.cpp index caba62e..a0c38b3 100644 --- a/kernel/windows.cpp +++ b/kernel/windows.cpp @@ -272,9 +272,13 @@ void SendMessageToWindow(Window *window, EsMessage *message) { } else if (message->type == ES_MSG_KEY_DOWN || message->type == ES_MSG_KEY_UP) { window->embed->owner->messageQueue.SendMessage(window->embed->apiWindow, message); - if (message->keyboard.modifiers & (ES_MODIFIER_CTRL | ES_MODIFIER_ALT | ES_MODIFIER_FLAG | ES_MODIFIER_ALT_GR)) { + if ((message->keyboard.modifiers & (ES_MODIFIER_CTRL | ES_MODIFIER_ALT | ES_MODIFIER_FLAG | ES_MODIFIER_ALT_GR)) + || message->keyboard.scancode == ES_SCANCODE_LEFT_CTRL || message->keyboard.scancode == ES_SCANCODE_RIGHT_CTRL + || message->keyboard.scancode == ES_SCANCODE_LEFT_SHIFT || message->keyboard.scancode == ES_SCANCODE_RIGHT_SHIFT + || message->keyboard.scancode == ES_SCANCODE_LEFT_ALT || message->keyboard.scancode == ES_SCANCODE_RIGHT_ALT + || message->keyboard.scancode == ES_SCANCODE_LEFT_FLAG || message->keyboard.scancode == ES_SCANCODE_RIGHT_FLAG) { // Additionally send the keyboard input message to the embed parent - // if Ctrl, Alt or Flag were held. + // if Ctrl, Alt or Flag were held, or this is a modifier change message. // (Otherwise don't, to avoid increasing typing latency.) window->owner->messageQueue.SendMessage(window->apiWindow, message); } diff --git a/res/Fonts/Bitmap Sans Bold 9.font b/res/Fonts/Bitmap Sans Bold 9.font new file mode 100644 index 0000000..03f0bb6 Binary files /dev/null and b/res/Fonts/Bitmap Sans Bold 9.font differ diff --git a/res/Fonts/Bitmap Sans Regular 9.font b/res/Fonts/Bitmap Sans Regular 9.font index ee96c7e..fc14672 100644 Binary files a/res/Fonts/Bitmap Sans Regular 9.font and b/res/Fonts/Bitmap Sans Regular 9.font differ diff --git a/util/build.c b/util/build.c index 151caf5..747cc9e 100644 --- a/util/build.c +++ b/util/build.c @@ -107,6 +107,7 @@ BuildFont fonts[] = { { "Bitmap Sans", "", "Sans", "Latn", (FontFile []) { { "4", "Bitmap Sans Regular 9.font" }, + { "7", "Bitmap Sans Bold 9.font" }, {}, } },