Difference between revisions of "Pause bug in menus with scroll bars"

From DoomWiki.org

[unchecked revision][checked revision]
m
(Clarifications, corrections, and additions; +cat Errors and bugs)
Line 1: Line 1:
 
[[Image:Pausebug2.png|320px|thumb|A screenshot of the pause key bug with the cursor at the wrong place.]]
 
[[Image:Pausebug2.png|320px|thumb|A screenshot of the pause key bug with the cursor at the wrong place.]]
Pressing the pause key makes the skull cursor jump beside the scroll bars. This may be because [[Doom]] allows to type the first letter of a [[menu]] item to jump to an item starting with the same letter, so the pause key may be associated with scroll bars by the [[engine]], but is not supposed to. It also happens with Caps Lock which does the same thing, but it repeats when Caps Lock is on. The scroll bar can't be scrolled when the cursor is there. It will go back to its normal position if another key such as up, down or a shortcut letter is pressed. This [[bug]] can be found in the sound menu and the options menu.
+
Pressing the pause key within menus containing a scroll bar in [[Doom]] or [[Strife]] will cause the skull cursor to jump beside the first scroll bar, and then cycle through subsequent scroll bars with additional presses. This is because [[Doom]] ordinarily allows the user to type the first letter of a [[menu]] item's name to jump to that item. In order to be ostensibly non-selectable, scroll bar items set their hot key letter to the "NUL" character, with ASCII value 0. In Doom's event system, however, keys like the pause key and caps lock key, which have no ASCII character associated with them, meaning that press events for those keys carry the value of "0", inadvertently matching scroll bar items on the menu.
 +
 
 +
The scroll bar cannot be scrolled while the cursor is next to it, as that behavior is actually associated with the scroll bar's label. The cursor will go back to its normal position if another key such as up, down, or a shortcut letter is pressed. This [[bug]] can be found in the sound menu and the options menu.
 +
 
 +
[[Category:Errors and bugs]]

Revision as of 06:56, 4 September 2013

A screenshot of the pause key bug with the cursor at the wrong place.

Pressing the pause key within menus containing a scroll bar in Doom or Strife will cause the skull cursor to jump beside the first scroll bar, and then cycle through subsequent scroll bars with additional presses. This is because Doom ordinarily allows the user to type the first letter of a menu item's name to jump to that item. In order to be ostensibly non-selectable, scroll bar items set their hot key letter to the "NUL" character, with ASCII value 0. In Doom's event system, however, keys like the pause key and caps lock key, which have no ASCII character associated with them, meaning that press events for those keys carry the value of "0", inadvertently matching scroll bar items on the menu.

The scroll bar cannot be scrolled while the cursor is next to it, as that behavior is actually associated with the scroll bar's label. The cursor will go back to its normal position if another key such as up, down, or a shortcut letter is pressed. This bug can be found in the sound menu and the options menu.