-
Couldn't load subscription status.
- Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When running a dialog inside of SketchUp and using access keys a ding sound is played. The sound is not played in standalone browsers. The sound is very annoying and indicates some sort of error occured, even though access keys work just fine.
Steps to reproduce:
- Create dialog by pasting code below in Ruby console.
- Press Alt+Y or Alt+N
base_dir = UI.select_directory(title: "Locate modules/")
html = <<-HTML
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<base href="#{base_dir}/" />
<script src="controls.js"></script>
<script src="jquery-1.12.4.js"></script>
<script>
// Initialize the controls when the document is ready.
$(document).ready(function() {
Controls();
} );
</script>
</head>
<body>
<p>Is this a rhetorical question?</p>
<p>(Enter is shortcut for Yes, Esc is shortcut for Cancel)</p>
<button data-access-key="y" class="dlg-callback-yes">Yes</button>
<button data-access-key="n" class="dlg-callback-no">No</button>
<button class="dlg-callback-cancel">Cancel</button>
</body>
</html>
HTML
dialog = UI::HtmlDialog.new(
dialog_title: "Dialog Dialog",
width: 300,
height: 180
)
dialog.center
dialog.set_html(html)
dialog.add_action_callback("yes") { puts "Yes" }
dialog.add_action_callback("no") { puts "No" }
dialog.add_action_callback("cancel") { puts "Cancel" }
dialog.showTested in SketchUp 2017 and 2018 on Win 7.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working