mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 15:12:32 +01:00
This patch is improving the key shortcut labelling in the root menu. It modifies the GetShortcutString function to save some cycles as wXModifierFromKey is already doing all the string comparisons. This patch introduces a new function called wXModifierToShortcutLabel that is checking the return value from wXModifierFromKey. Not sure why Control was set as a special key, as keyboards could have 2 controls but also 2 shift keys. Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
28 lines
1.0 KiB
C
28 lines
1.0 KiB
C
/* xmodifier.h
|
|
*
|
|
* Sudish Joseph <sj@vild.mindspring.com>, Sept. 1997
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
#ifndef _XMODIFIER_H_INCLUDED
|
|
#define _XMODIFIER_H_INCLUDED
|
|
|
|
void wXModifierInitialize(void);
|
|
int wXModifierFromKey(const char *key);
|
|
const char *wXModifierToShortcutLabel(int mask);
|
|
|
|
#endif /* _XMODIFIER_H_INCLUDED */
|