Comments (3)
Oops, that looks like a bug to me. I can reproduce this. That said, I think there's also a bug in your code :-), which has the positive side-effect that it'll work around the bug and make it work as you probably expected:
FocusScope {
key-pressed(event) => {
if (event.text == "a") {
return accept; // <-- The return statement was missing here :-)
}
reject
}
}
from slint.
We probably should make a warning for statement that don't do anything.
from slint.
The rust compilation error is fixed. But opened #4954 to add a warning on useless statements
from slint.
Related Issues (20)
- Broken links to tutorial/quickstart HOT 1
- Tutorial "Slint Memory Game Tutorial" is out of date HOT 1
- Archive documentation should have a banner that say that this is not the lastest doc
- Make guide for setting up Kate more clear HOT 1
- no-frame: true disables window resizing on Windows HOT 1
- Any ideas for a global message box? HOT 1
- Initial window content not rendered in window - WSL2 HOT 2
- error: failed to run custom build command for `i-slint-backend-android-activity v1.5.0` HOT 2
- energy monitor example fails to run on Android 12 HOT 3
- License questions
- Bad X11 behavior (message flood?) making tint2 unresponsive HOT 4
- language server crashed HOT 5
- WSL Ubuntu - Slint Language Server crashed HOT 3
- StandardTableView causes the CPU to occupy 100%, and then the UI freezes HOT 2
- I can't install for x86_64-apple HOT 2
- Building with a skia renderer fails with a git error on Intel Mac HOT 8
- async examples HOT 1
- Using non standard types in listview struct/model? HOT 3
- Add support for frame throttling on X11
- C++ binaries incompatible with MinGW HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slint.