You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require 'cli/ui'
CLI::UI::Prompt.ask('A or B?') do |handler|
handler.option('A') { puts 'A' }
handler.option('B') { puts 'B' }
end
Pressing the left or right arrow keys cause an interrupt to be raised.
Looking at the code it seems to be caught by the else clause in the when :esc_bracket block.
Ideally left and right keypress inputs would be ignored since they're very easy to hit by mistake when navigating.
The text was updated successfully, but these errors were encountered:
Minimal example to reproduce;
Pressing the left or right arrow keys cause an interrupt to be raised.
Looking at the code it seems to be caught by the
else
clause in thewhen :esc_bracket
block.Ideally left and right keypress inputs would be ignored since they're very easy to hit by mistake when navigating.
The text was updated successfully, but these errors were encountered: