mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
⚠️ key "accelerator" is duplicated and overwritten in Tk samples
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
58d698af35
commit
d21c54ffbd
5 changed files with 5 additions and 5 deletions
|
@ -88,7 +88,7 @@ TkMenubutton.new($menu_frame, 'text'=>'Basic', 'underline'=>0) {|m|
|
|||
add('command', 'label'=>'Long entry that does nothing')
|
||||
['A','B','C','D','E','F','G'].each{|c|
|
||||
add('command', 'label'=>"Print letter \"#{c}\"",
|
||||
'underline'=>14, 'accelerator'=>"Meta+#{c}",
|
||||
'underline'=>14,
|
||||
'command'=>proc{print c,"\n"}, 'accelerator'=>"#{modifier}+#{c}")
|
||||
$menu_demo.bind("#{modifier}-#{c.downcase}", proc{print c,"\n"})
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ TkMenu.new($menu84_frame, 'tearoff'=>false) {|m|
|
|||
add('command', 'label'=>'Long entry that does nothing')
|
||||
['A','B','C','D','E','F','G'].each{|c|
|
||||
add('command', 'label'=>"Print letter \"#{c}\"",
|
||||
'underline'=>14, 'accelerator'=>"Meta+#{c}",
|
||||
'underline'=>14,
|
||||
'command'=>proc{print c,"\n"}, 'accelerator'=>"#{modifier}+#{c}")
|
||||
$menu84_demo.bind("#{modifier}-#{c.downcase}", proc{print c,"\n"})
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ TkMenubutton.new($menu_frame, 'text'=>'Basic', 'underline'=>0) {|m|
|
|||
['A','B','C','D','E','F','G'].each{|c|
|
||||
# add('command', 'label'=>"文字 \"#{c}\" を印字", 'underline'=>4,
|
||||
add('command', 'label'=>"Print letter \"#{c}\" (文字 \"#{c}\" を印字)",
|
||||
'underline'=>14, 'accelerator'=>"Meta+#{c}",
|
||||
'underline'=>14,
|
||||
'command'=>proc{print c,"\n"}, 'accelerator'=>"#{modifier}+#{c}")
|
||||
$menu_demo.bind("#{modifier}-#{c.downcase}", proc{print c,"\n"})
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ TkMenu.new($menu84_frame, 'tearoff'=>false) {|m|
|
|||
add('command', 'label'=>'Long entry that does nothing')
|
||||
['A','B','C','D','E','F','G'].each{|c|
|
||||
add('command', 'label'=>"Print letter \"#{c}\"",
|
||||
'underline'=>14, 'accelerator'=>"Meta+#{c}",
|
||||
'underline'=>14,
|
||||
'command'=>proc{print c,"\n"}, 'accelerator'=>"#{modifier}+#{c}")
|
||||
$menu84_demo.bind("#{modifier}-#{c.downcase}", proc{print c,"\n"})
|
||||
}
|
||||
|
|
|
@ -119,7 +119,7 @@ TkMenu.new($menu8x_demo, 'tearoff'=>false) {|m|
|
|||
['A','B','C','D','E','F','G'].each{|c|
|
||||
# add('command', 'label'=>"文字 \"#{c}\" を印字", 'underline'=>4,
|
||||
add('command', 'label'=>"Print letter \"#{c}\" (文字 \"#{c}\" を印字)",
|
||||
'underline'=>14, 'accelerator'=>"Meta+#{c}",
|
||||
'underline'=>14,
|
||||
'command'=>proc{print c,"\n"}, 'accelerator'=>"#{modifier}+#{c}")
|
||||
$menu8x_demo.bind("#{modifier}-#{c.downcase}", proc{print c,"\n"})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue