comparison doc/main_window_menus.html @ 1160:2562e0bc89a1

Mark keyboard keys with a span and make them look like a key through css style.
author zas_
date Wed, 19 Nov 2008 22:42:20 +0000
parents e2ca6295c5d0
children
comparison
equal deleted inserted replaced
1159:e2ca6295c5d0 1160:2562e0bc89a1
248 <p>To change a menu item, first find the line corresponding to the menu item to change. For example the File menu Quit line originally looks like this:</p> 248 <p>To change a menu item, first find the line corresponding to the menu item to change. For example the File menu Quit line originally looks like this:</p>
249 249
250 <p><code>; (gtk_accel_path "&lt;main&gt;/File/Quit" "&lt;Control&gt;q")</code> 250 <p><code>; (gtk_accel_path "&lt;main&gt;/File/Quit" "&lt;Control&gt;q")</code>
251 </p> 251 </p>
252 252
253 <p>To change this menu's keyboard shortcut, first remove the leading semicolon (;), removing the semicolon will tell Geeqie that this menu item has been customized. Then change the keyboard shortcut defined by the text in quotes at the end of the line, be sure to only change the text within the quotes; in this case the text &ldquo;&lt;control&gt;q&rdquo;. For example changing the shortcut associated with Quit to the Q key will result in this line:</p> 253 <p>To change this menu's keyboard shortcut, first remove the leading semicolon (;), removing the semicolon will tell Geeqie that this menu item has been customized. Then change the keyboard shortcut defined by the text in quotes at the end of the line, be sure to only change the text within the quotes; in this case the text &ldquo;&lt;control&gt;q&rdquo;. For example changing the shortcut associated with Quit to the <span class="key">Q</span> key will result in this line:</p>
254 254
255 <p><code>(gtk_accel_path "&lt;main&gt;/File/Quit" "q")</code> 255 <p><code>(gtk_accel_path "&lt;main&gt;/File/Quit" "q")</code>
256 </p> 256 </p>
257 257
258 <p>Please note the removed semicolon and the change of &ldquo;&lt;control&gt;q&rdquo; to &ldquo;q&rdquo;, be careful not to change any of the other text on the line or Geeqie may ignore the customization. The keyboard modifiers and their respective text are listed below:</p> 258 <p>Please note the removed semicolon and the change of &ldquo;&lt;control&gt;q&rdquo; to &ldquo;q&rdquo;, be careful not to change any of the other text on the line or Geeqie may ignore the customization. The keyboard modifiers and their respective text are listed below:</p>
275 </thead> 275 </thead>
276 276
277 <tbody> 277 <tbody>
278 <tr> 278 <tr>
279 <td> 279 <td>
280 <p>[Shift]</p> 280 <p><span class="key">Shift</span></p>
281 </td> 281 </td>
282 282
283 <td> 283 <td>
284 <p>&lt;shift&gt;</p> 284 <p>&lt;shift&gt;</p>
285 </td> 285 </td>
286 </tr> 286 </tr>
287 287
288 <tr> 288 <tr>
289 <td> 289 <td>
290 <p>[Ctrl]</p> 290 <p><span class="key">Ctrl</span></p>
291 </td> 291 </td>
292 292
293 <td> 293 <td>
294 <p>&lt;control&gt;</p> 294 <p>&lt;control&gt;</p>
295 </td> 295 </td>
296 </tr> 296 </tr>
297 297
298 <tr> 298 <tr>
299 <td> 299 <td>
300 <p>[Alt]</p> 300 <p><span class="key">Alt</span></p>
301 </td> 301 </td>
302 302
303 <td> 303 <td>
304 <p>&lt;alt&gt;</p> 304 <p>&lt;alt&gt;</p>
305 </td> 305 </td>
306 </tr> 306 </tr>
307 </tbody> 307 </tbody>
308 </table> 308 </table>
309 </div> 309 </div>
310 310
311 <p>Modifiers can be combined, for example in the exit line above, the text would be &ldquo;&lt;control&gt;&lt;shift&gt;q&rdquo; to set the exit shortcut to [Ctrl] + [Shift] + Q.</p> 311 <p>Modifiers can be combined, for example in the exit line above, the text would be &ldquo;&lt;control&gt;&lt;shift&gt;q&rdquo; to set the exit shortcut to <span class="key">Ctrl</span> + <span class="key">Shift</span> + <span class="key">Q</span>.</p>
312 312
313 <hr id="bottomseparator" /> 313 <hr id="bottomseparator" />
314 314
315 <div class="navbottom"> 315 <div class="navbottom">
316 <table width="100%" border="0" cellpadding="4" cellspacing="0"> 316 <table width="100%" border="0" cellpadding="4" cellspacing="0">