Figma Profile picture
May 20, 2021 28 tweets 8 min read Read on X
This is a story of a Figma bug that wasn’t a bug at all.


In November of 2019, one of our users reported this: ⁝ MW I have problem in zooming into my particular element as the
In short, pressing Shift+2 using one key worked, but pressing Shift+2 using the numeric keypad key didn’t.

Curiously, the bug only happened on Windows, and not on a Mac.
Turns out this bug goes back all the way to… 1977.

This was the time when IBM, the #1 computer maker of that time, continued their attempts to conquer the burgeoning small, personal computer market. (Before, most of their computers looked like the one below.)
In 1977, they released IBM System/34 – a “small computer” for small businesses – with a keyboard and display called 5251.
System/34 was still be a pretty pricey machine, costing 5 or 6 figures. Part of that hefty price was a beautiful beam spring keyboard – with the numeric keypad on the right, but arrow keys on the very left. (Arrow keys were not as important in computers around then.)
Then, in 1980, IBM released another computer, called System/23, or Datamaster. This one you could lift and carry, although you should still be careful (it was almost 100 lbs!). It was also much cheaper, coming in at $9,000.
The machine looked like this. The company reused pretty much the layout of the IBM 5251 keyboard… although it came sporting a new design language, and then-brand-new buckling spring switches.
As far as I know, the machine wasn’t a huge success. But the one that followed, IBM 5150 from 1981, was. You might have heard it by its more common name: IBM PC.
IBM PC was a pretty fast project, so the designers decided to just grab the keyboard from the Datamaster verbatim, and just change the functions of some keys. The left block was replaced by function keys, and the arrow keys were moved to the right.
The arrow keys were more important then than in 1977, to navigate spreadsheets (also brand new!) and menus. But the limitations of the 5251 layout meant they had to share space with the numeric keypad.
And so the engineers created a key that could toggle between the arrows and the numeric keypad. They called it Num Lock.
But this wasn’t great. Imagine using a spreadsheet for a while. You type in the number, then you want to move to another cell with arrows, then type another number. Pressing Num Lock over and over again to switch between the modes would be slow, infuriating, and flow-reducing…
…particularly since Num Lock didn’t even have a light.

(Imagine needing to press Caps Lock every time you wanted to capitalize a letter at the beginning of a sentence, and then needing to press it again, never seeing its current state!)
So the engineers came up with a power-user shortcut… and since the Shift was a natural counterpart in the Caps Lock world, it could also do the same here!

The solution: you could hold Shift and press the arrow/numeric key to quickly reverse its current mode.
This was ingenious. Your other hand was free, after all, and holding Shift like this – some people call it a spring-loaded mode, or a “quasimode” (RIP Jef Raskin) – is much faster. You could type your number, press Shift+2 to go down to the next cell, and continue calculations.
…aaaaand at this point you should already know what was happening with the Figma bug.

Although there’s one more delightful ingredient:
In late 1980s IBM finally switched the keyboard layout in response to people complaining about a bunch of issues with the 5150 keyboard. What happened was what many consider the “God’s keyboard“ – IBM Model M, with an extended 100-ish-key layout that is still with us today.
That layout had its arrow keys separate from the numeric keypad… but since 5 years has passed, some people already got used to the Num Lock situation, so that had to be preserved also. You don’t mess up with people’s motor memory!
And if you have to keep Num Lock, you also have to keep the Shift shortcut… and that‘s exactly what was happening to the user that reported the Shift+2 bug, almost 40 years after the decisions were made.
The shortcut from MS-DOS was preserved in code through all the versions of Windows, from 1.0 all the way to 10!
And so, in Figma, Shift+2 on the regular keyboard worked as “Zoom to selection,” but pressing Shift+2 on the numeric keypad was interpreted as “↓” – and obviously did something different.
This also explains why this was never an issue on a Mac! Infamously, the first Mac had neither arrow keys (to force programmers to make mouse-oriented software) nor a numeric keyboard.
By the time they were added in 1987, they were both separate keys in sections, so the Num Lock never had to happen.
Fortunately, at that point, browsers gave us enough information to disambiguate between the one Shift+2 and the other Shift+2… so we could fix the bug and close it.

Even though you could argue it was never a bug – just an older, barely documented convention.
And how I learned this lesson? In the research for a book on the history of keyboards I’m working on, I talked to Dave Bradley who was the engineer behind those decisions back in 1981!

en.wikipedia.org/wiki/David_Bra…
Fun fact: He’s also a person behind Ctrl+Alt+Del… but that’s a whole different story.
(By the way, if you like that kind of stuff, here are two more stories for you:

1. It seems like every place I end up working, I deal with a bug like this: medium.engineering/the-curious-ca…
2. And this is a story of a first bug I had to fix, long time ago… a software fix to a hardware problem, just to play a game I really wanted to play: mwichary.medium.com/a-hacker-s-gui…)

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Figma

Figma Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @figma

Mar 28, 2023
Little Big Updates are here… and they're BIG.

Introducing 30+ new quality-of-life updates for Figma and FigJam to help improve your workflow.

Hint: You’re definitely going to want to check out the full thread 😉

figma.com/whats-new/?
1/32 On-canvas preview

Hover over design panel options to preview different settings and properties before committing to them.

(Font preview is in the works!)
2/32 Luminance mask support

Create masks based on image or object brightness.
Read 33 tweets
Feb 21, 2023
Do more with video in your prototypes. We’ve made it easier to create realistic video players in Figma.

Add interactions that let you play, pause, mute, or skip to timestamps in a single frame. And you can now trigger events with video playback.

See more in the 🧵
You can now preview videos in the design panel. Play or scrub the video preview and get the perfect timestamp for your interactions.
Place multiple videos at once, drag to resize when placing, or add as a fill to objects.

Add one or more videos using the place shortcut:
Mac: ⇧+⌘+K
Win: ⇧+Ctrl+K

or type “place” in the quick actions menu:
Mac: ⌘ +/ or ⌘ + P
Win: Ctrl +/ or Ctrl + P
Read 6 tweets
Feb 6, 2023
Working smarter, not harder also applies to prototyping. 😉

Here are six #FigmaTips from Designer Advocate @_AnaBoyer for prototyping in Figma.

1/ Draw prototyping links from navigational components to reduce the need for repeatedly drawing connections.
2/ Create interactive components in your libraries, so designs that use those components already have micro-interactions built into their prototypes, adding an additional level of fidelity.
3/ Nest interactive components to reduce the number of prototyping links.
Read 7 tweets
Dec 15, 2022
A few months ago, @linear experienced a DDoS that took down their freshly redesigned site. 💔

We spoke with their team about how they got the idea to make their homepage their Figma files, unintentionally throwing the Figma party of the year…

bit.ly/3FWkvJa
A few days prior to launch, @pacocoursey had teased the team's in-progress Figma files. Was now the perfect opportunity to finally share them with the world?

When their site went down, @jorilallo suggested forwarding their homepage to a public Figma file, and soon there were over 300 people swarming their designs… Image
Read 5 tweets
Dec 13, 2022
The Figma Designer Advocate team will drop one #FigmaTip a day over the next ten days to help you level up in Figma...

...and we're threading them all right here! 🎁bit.ly/10daystips
Read 6 tweets
May 11, 2022
Congrats to all of the Figma Community Awards winners 🥳
#Config2022
Favorite graphic resources for Figma:

Sketch Elements Brushes Set by @streamlinehq bit.ly/3M99yo8
Image
Favorite educational resource for Figma:

Micro interactions - Prototyping by @ideaisall bit.ly/3L3uyvl
Image
Read 11 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(