[MovableContainer] allow widget repositioning on non-touch devices
what's new
- Added key event bindings in
MovableContainer:init()to allow users to move the dialog up or down using keyboard modifiers (ShiftorScreenKB) combined with arrow keys (UpandDown). These events trigger the newMovePositionevent. - Added a property
is_movable_with_keysto the MovableContainer class, that allows disabling it on widget where it is not necessary or not desirable, like dictionary widget. - Introduced the
MovableContainer:onMovePosition(is_moving_to_top)method to handle dialog repositioning. This method calculates the new vertical position based on the screen height, dialog height, and padding, updates the dialog's offset, and forces a screen redraw to reflect the changes.
screen recording
- closes #12596
Can it be done in MovableContainer to apply to all movable widgets?
I thought about that, but that would mean losing two shortcuts, with dictionary one for example, it would mean getting movement (not really needed) and losing access to text selection.
Edit: but thinking more clearly now, i guess it could have a property that is set on/off and when off (moving not needed), it frees up the shortcuts.
can you all see the screen recording? I opened this page on "edge" and the .mov is not shown there, so now I am wondering, can other browsers also not play it?
I can't atm om my phone.
android I figure... mmm I'll have to convert to .mp4 from now on then. Do let me know if the browser works though
Do let me know if the browser works though
Works for me in-browser with Firefox. With Edge, it is downloaded.
Any other relevant comments here?