lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 2892d588 6/8: Add extra accelerators with "+"


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 2892d588 6/8: Add extra accelerators with "+" and "-" keys synonyms
Date: Thu, 30 Jun 2022 11:14:15 -0400 (EDT)

branch: master
commit 2892d588ab40ea968e195f1433f9cfcaf1286e71
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Add extra accelerators with "+" and "-" keys synonyms
    
    Allow using the keys on the main part of the keyboard with or without
    Shift (which might seem to be required, as "+" requires it in the
    standard US keyboard layout, but actually isn't, and never was) as well
    as their equivalents on numeric pad.
    
    Note that these accelerators are not shown in the menu, as this would
    make them too crowded, but still work using "extra" accelerators support
    in wxWidgets 3.1.6+.
---
 menus.xrc | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/menus.xrc b/menus.xrc
index bef2b515..b330c32b 100644
--- a/menus.xrc
+++ b/menus.xrc
@@ -386,11 +386,19 @@
     </object>
     <object class="wxMenuItem" name="add_cell">
         <label>_Add cell\tCtrl-+</label>
+        <extra-accels>
+            <accel>Shift-Ctrl-+</accel>
+            <accel>Ctrl-Num-+</accel>
+        </extra-accels>
         <bitmap platform="win" stock_id="insert-rows"/>
         <help>Add a new cell with case default parameters</help>
     </object>
     <object class="wxMenuItem" name="delete_cells">
         <label>_Delete cell(s)\tCtrl--</label>
+        <extra-accels>
+            <accel>Shift-Ctrl--</accel>
+            <accel>Ctrl-Num--</accel>
+        </extra-accels>
         <bitmap platform="win" stock_id="delete-row"/>
         <help>Delete selected cell(s)</help>
     </object>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]