fix termwiz compilation when widgets are enabled

refs: #1457
This commit is contained in:
Wez Furlong committed 2022-01-12 07:14:14 -07:00
1 parent 9b9bd0ae8c
commit 475fc0667b
2 files changed
+38

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
name: termwiz
on:
pull_request:
branches:
- main
paths-ignore:
- ".cirrus.yml"
- "docs/*"
- "ci/build-docs.sh"
- "ci/generate-docs.py"
- "ci/subst-release-info.py"
- ".github/workflows/pages.yml"
- ".github/workflows/verify-pages.yml"
- ".github/ISSUE_TEMPLATE/*"
- "**/*.md"
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: "Install Rust"
uses: actions-rs/toolchain@v1
with:
profile: "minimal"
toolchain: "stable"
override: true
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
- name: Build
run: |
source $HOME/.cargo/env
cargo build -p termwiz --all-features
+2
View File
@@ -244,6 +244,7 @@ impl<'widget> Ui<'widget> {
self.do_deliver(id, &WidgetEvent::Input(InputEvent::Mouse(m)))
}
WidgetEvent::Input(InputEvent::Paste(_))
| WidgetEvent::Input(InputEvent::PixelMouse(_))
| WidgetEvent::Input(InputEvent::Key(_))
| WidgetEvent::Input(InputEvent::Wake) => self.do_deliver(id, event),
};
@@ -324,6 +325,7 @@ impl<'widget> Ui<'widget> {
}
WidgetEvent::Input(InputEvent::Key(_))
| WidgetEvent::Input(InputEvent::Paste(_))
| WidgetEvent::Input(InputEvent::PixelMouse(_))
| WidgetEvent::Input(InputEvent::Wake) => {
if let Some(focus) = self.focused {
self.deliver_event(focus, &event);