UX Improvements for Keyboard Control (Kino) #2129
Replies: 3 comments 46 replies
-
This doesn't really work, many keybindings in Livebook use just letters, so conflicts could easily occur if someone is building a game or anything that uses a couple characters. Also in the future we may add more keybindings, so new conflicts could emerge. It would be helpful to see what are the use cases, the idea behind the keyboard control is to switch into "play mode" effectively without Liveobok in the picture :) |
Beta Was this translation helpful? Give feedback.
-
I was thinking of something similar in the past. |
Beta Was this translation helpful? Give feedback.
-
(Starting a new reply thread to keep the other thread focused on the key binding stuff.) Another issue that I've run up against when a keyboard control is active, especially when default handlers are disabled (the default), is that it's fairly easy to accidentally leave one enabled, scroll somewhere else in the Livebook, and then be confused when no keybinding are working because a control off-screen is canceling all events. Depending on the length of the notebook, it can be difficult to find the active control to disable it. It would be really nice to have some UI indicator that a keyboard control is active even when the cell is off screen. One option would be to make the keyboard control button sticky in some way -- when you scroll past it, it could stick to the gutter or something such that it's always visible. Any thoughts? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've spent the last few days playing around with a little custom Livebook integration and have been using
Kino.Control.keyboard/1
with it. It's very easy to use and generally works well, but there are a few things that keep coming up:I have some thoughts on target improvements to these, but I think there may be an opportunity to address a larger issue of integration with the native keyboard bindings. Generally speaking, I think keyboard controls should be used to augment, not override, the existing bindings already available in Livebook.
Speaking personally, my optimal usage would be using j/k to navigate cells, and when I have a cell with keyboard controls focused, those bindings would be available.
There are plenty of How-To's here, but I'll have it here for now! Very curious to hear others' thoughts on this.
Beta Was this translation helpful? Give feedback.
All reactions