Comments (6)
Just checked and it does work correctly on macOS.
from fyne.
Probably because the builtin select-all shortcut on Mac is Super+A instead of Ctrl+A, but it does look like there may be a bug since you have no Entry widget or anything else in the snippet that would be using the builtin select all shortcut
from fyne.
Hmm, I wonder if there is a bug here where we conflict internally because that is a defined keyboard shortcut.
Can you register the SelectAllShortcut
when not on Darwin and see if that works?
from fyne.
I've been trying to find a way to register only that without success. And I think the corresponding code always ignores custom shortcuts in favor of the predefined ones: https://github.com/fyne-io/fyne/blob/master/internal/driver/glfw/window.go#L867
If this the expected behavior, adding a sentence about it in the documentation would at least prevent surprises.
With that in mind it seems the only safe solution would be to switch to Alt instead of Control as a modifier key. Which would have the added benefit of being consistent with input fields.
from fyne.
I'm pretty sure that's a bug and not intended behavior. Some reworking of the shortcut handling here is needed I think.
IMO developers should be able to override the builtin shortcuts, but the builtin widgets should still receive them if focused. (EG you can register Ctrl+A on the window canvas, but if an Entry widget is focused it should still receive the builtin select all shortcut, unless it itself is overridden to register a different handler for that keybinding.
from fyne.
Agreed
from fyne.
Related Issues (20)
- How to solve Chinese garbled characters? HOT 1
- Select Does Not Gain Focus When Tapped HOT 1
- Clicking on empty part of widget.List does not unfocus other widgets HOT 3
- Calling popUp.Hide() closes all overlays, not just the popup itself. Feature or bug? HOT 1
- container.NewScroll does not support horizontal scroll for widget tree object HOT 5
- fyne does not render text from SVG files. HOT 1
- panic if app.New() is not the first method called. HOT 2
- Support Software Rendering for X11 by allowing to disable GLX HOT 13
- Issue with SetSystemTrayIcon when using jpg format
- Licence has self conflicting wording, possible typo HOT 3
- What means MinSize() of Entry? HOT 5
- Is there a separate window.Run function HOT 2
- Production app running a test app when importing Appearance Screen HOT 4
- SetIcon don't work HOT 1
- App freezes when rapidly modifying content of container HOT 5
- fyne package does not work with main package not in the current directory HOT 2
- Android packaging fails: could not determine kind of name for C.ALooper_pollAll HOT 6
- binding.Untyped crashes when set to nil HOT 1
- AppTab does not display blue indicator line if you create it empty and then Append items to it later. HOT 1
- Automatically remove focus from a widget that is no longer in the object tree HOT 6
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 fyne.