question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"?" can't be assigned?

See original GitHub issue

I have the following keymap:

    keymap() {
      return {
        '?': this.showHotKeyHelp,
        '/': this.goToSearch
      }
    }

The / is working fine. However ? does not do anything.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Dafrokcommented, Jul 8, 2019

Finally I catch the problem, the hotkeys triggers by a specified keycode instead of a character. The keydown & keyup event pass me not only an ASCII code as event.keyCode representing the original character without holding shift key, but also current charactor as event.key. You needs to trigger the hotkey by a charactor, not an ASCII code, but matching both event.keyCode and event.key may cause some conflicts. I think it needs two matching modes probably, but I haven’t thought of how to design this feature yet. Do you have any ideas?

1reaction
Dafrokcommented, Jun 21, 2019

Browsers doesn’t have any abilities to detect keyboard layout, and no one can promise there’s no conflicts between different layouts, so I consider adding an option to allow users to set their custom keycode map alias, how do you like it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

The argument type 'String' can't be assigned to the parameter ...
I am trying to make an HTTP POST request with the flutter plugin HTTP but I am getting an error of the title....
Read more >
The argument type 'String' can't be assigned to the ... - GitHub
String url ='https://jsonplaceholder.typicode.com/posts/1'; Response response = await get(Uri.parse(url)); The above snippet worked.
Read more >
Flutter Error: The argument type 'String' can't be assigned to ...
The cause of this error is that the functions provided by the http package previously received arguments with both String and Uri types,...
Read more >
The argument type 'String?' can't be assigned to ... - YouTube
flutter The argument type 'String?' can't be assigned to the parameter type 'String'a value of type 'list ' can't be assigned to a...
Read more >
[Solved] The argument type 'FutureProduct' can't be assigned ...
[Solved] The argument type 'FutureProduct' can't be assigned to the parameter type 'FutureProduct'
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found