Skip to content

Commit

Permalink
Webclient: create topics via keyboard (#14)
Browse files Browse the repository at this point in the history
Modifier-N triggers the "create another one" button.

The modifier key depends on browser and operating system:
http://en.wikipedia.org/wiki/Access_key

Close ticket 14
  • Loading branch information
jri committed Aug 8, 2011
1 parent 11d361f commit 596d724
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ function ToolbarPanel() {
.append(search_button).submit(do_search)
// create "Create" widget
var create_menu = dm4c.ui.menu("create-type-menu", do_create_topic, undefined, "Create")
var create_another_button = dm4c.ui.button(undefined, do_create_another_topic, undefined, "plus").button("disable")
var create_another_button = dm4c.ui.button(undefined, do_create_another_topic, undefined, "plus")
.attr("accesskey", "n").button("disable")
var create_widget = $("<div>").attr( {id: "create-widget"})
.append(create_menu.dom)
.append(create_another_button)
Expand Down

0 comments on commit 596d724

Please sign in to comment.