From 8874e47aa3b03433e141cef5c0d4e62349e5e236 Mon Sep 17 00:00:00 2001 From: Gerhard Aigner Date: Tue, 2 Jun 2020 15:14:27 +0200 Subject: [PATCH] ctrl-c doesn't return -1 in a RadioMenu [ci skip] I've tested on Linux: 1.0.5, 1.4.2, 1.5-beta an all of them throw an `InterruptException` --- stdlib/REPL/docs/src/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/REPL/docs/src/index.md b/stdlib/REPL/docs/src/index.md index 87f3eb2ed359c..2fd130d0f4b72 100644 --- a/stdlib/REPL/docs/src/index.md +++ b/stdlib/REPL/docs/src/index.md @@ -469,7 +469,7 @@ options = ["apple", "orange", "grape", "strawberry", The RadioMenu allows the user to select one option from the list. The `request` function displays the interactive menu and returns the index of the selected -choice. If a user presses 'q' or `ctrl-c`, `request` will return a `-1`. +choice. If a user presses 'q' `request` will return a `-1`. ```julia @@ -510,7 +510,7 @@ The MultiSelectMenu allows users to select many choices from a list. menu = MultiSelectMenu(options) # `request` returns a `Set` of selected indices -# if the menu us canceled (ctrl-c or q), return an empty set +# if the menu is canceled by pressing 'q' return an empty set choices = request("Select the fruits you like:", menu) if length(choices) > 0