Bug 1106744 - [libyui-ncurses] The list of function keys in the status line may not be up to date WRT enabled buttons
[libyui-ncurses] The list of function keys in the status line may not be up t...
Status: CONFIRMED
Classification: openSUSE
Product: openSUSE Distribution
Classification: openSUSE
Component: YaST2
Leap 15.0
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Martin Vidner
Jiri Srain
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-31 11:29 UTC by Martin Vidner
Modified: 2018-08-31 11:29 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
enable-next-button.rb - a test case (663 bytes, application/x-ruby)
2018-08-31 11:29 UTC, Martin Vidner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Vidner 2018-08-31 11:29:18 UTC
Created attachment 781518 [details]
enable-next-button.rb - a test case

(Found while testing https://bugzilla.suse.com/show_bug.cgi?id=1093358 )

In the ncurses UI, some buttons may have function key shortcuts, most notably F10 for Next and F9 for Back. These function keys are listed in a status line at the bottom of the screen.
When some buttons are enabled/disabled with UI.ChangeWidget(Id(:next), :Enabled, true/false), the status line may not get updated.

One workaround is to call UI.ReplaceWidget, even an Empty one. (so that OptimizeChanges calls doneMultipleChanges and eventually NCurses::SetStatusLine)