lib/gollum/views/editable.rb in gollum-5.3.3 vs lib/gollum/views/editable.rb in gollum-6.0.0
- old
+ new
@@ -2,9 +2,21 @@
module Editable
def has_editor
true
end
+ def default_keybinding
+ @default_keybinding
+ end
+
+ def keybindings
+ Gollum::KEYBINDINGS.map do |kb|
+ { :name => kb,
+ :selected => default_keybinding == kb
+ }
+ end
+ end
+
def formats(selected = @page.format)
Gollum::Markup.formats.map do |key, val|
{ :name => val[:name],
:id => key.to_s,
:enabled => val.fetch(:enabled, true),