it always bothered me that this key was called 'colon' when it's clearly a (single-)quote

This commit is contained in:
Gwenhael Le Moine 2024-09-09 16:20:52 +02:00
parent b6a0d94577
commit dc74c49351
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
6 changed files with 17 additions and 17 deletions

View file

@ -38,7 +38,7 @@
#define HPKEY_UP 10
#define HPKEY_NXT 11
#define HPKEY_COLON 12
#define HPKEY_QUOTE 12
#define HPKEY_STO 13
#define HPKEY_EVAL 14
#define HPKEY_LEFT 15

View file

@ -742,7 +742,7 @@ button_t buttons_sx[ NB_KEYS ] = {
.right = 0,
.sub = 0 },
{.name = "COLON",
{.name = "QUOTE",
.x = 0,
.y = 100,
.w = 36,
@ -750,9 +750,9 @@ button_t buttons_sx[ NB_KEYS ] = {
.lc = WHITE,
.label = 0,
.font_size = 0,
.lw = colon_width,
.lh = colon_height,
.lb = colon_bitmap,
.lw = quote_width,
.lh = quote_height,
.lb = quote_bitmap,
.letter = "M",
.left = "UP",
.is_menu = 0,
@ -1537,7 +1537,7 @@ button_t buttons_gx[ NB_KEYS ] = {
.right = "MENU",
.sub = 0 },
{.name = "COLON",
{.name = "QUOTE",
.x = 0,
.y = 100,
.w = 36,
@ -1545,9 +1545,9 @@ button_t buttons_gx[ NB_KEYS ] = {
.lc = WHITE,
.label = 0,
.font_size = 0,
.lw = colon_width,
.lh = colon_height,
.lb = colon_bitmap,
.lw = quote_width,
.lh = quote_height,
.lb = quote_bitmap,
.letter = "M",
.left = "UP",
.is_menu = 0,

View file

@ -297,9 +297,9 @@ static unsigned char minus_bitmap[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
static unsigned char plus_bitmap[] = { 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0xff, 0x03,
0xff, 0x03, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00 };
#define colon_width 2
#define colon_height 10
static unsigned char colon_bitmap[] = { 0x03, 0x03, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
#define quote_width 2
#define quote_height 10
static unsigned char quote_bitmap[] = { 0x03, 0x03, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
/* Below used only for X11 */
#define last_width 120

View file

@ -298,7 +298,7 @@ static int sdlkey_to_hpkey( SDL_Keycode k )
case SDLK_l:
return HPKEY_NXT;
case SDLK_m:
return HPKEY_COLON;
return HPKEY_QUOTE;
case SDLK_n:
return HPKEY_STO;
case SDLK_o:

View file

@ -439,7 +439,7 @@ void text_get_event( void )
hpkey = HPKEY_NXT;
break;
case 'm':
hpkey = HPKEY_COLON;
hpkey = HPKEY_QUOTE;
break;
case 'n':
hpkey = HPKEY_STO;

View file

@ -1992,7 +1992,7 @@ static void decode_key( XEvent* xev, KeySym sym, char* buf, int buflen )
break;
case XK_m:
case XK_M:
key_event( HPKEY_COLON, xev );
key_event( HPKEY_QUOTE, xev );
break;
case XK_n:
case XK_N:
@ -2638,7 +2638,7 @@ void x11_get_event( void )
paste[ paste_size++ ] = HPKEY_RIGHT;
} else {
flag |= 4;
paste[ paste_size++ ] = HPKEY_COLON;
paste[ paste_size++ ] = HPKEY_QUOTE;
}
break;
case 'a':
@ -2731,7 +2731,7 @@ void x11_get_event( void )
paste[ paste_size++ ] = HPKEY_ALPHA;
if ( islower( c ) )
paste[ paste_size++ ] = HPKEY_SHL;
paste[ paste_size++ ] = HPKEY_COLON;
paste[ paste_size++ ] = HPKEY_QUOTE;
break;
case 'n':
case 'N':