bsoun / bang-search

Plugin to perform websearch from Sublime Text
MIT License
2 stars 0 forks source link

[Bug] bang_search_input + AutoHotkey #5

Closed Kristinita closed 7 years ago

Kristinita commented 7 years ago

1. Summary

I can not set custom hotkey use AutoHotkey method for hotkeys.

2. Expected behavior

Like bang_search_input default and bang_search AutoHotkey

Bang Search

3. Actual behavior

bang_search_input AutoHotkey

4. Settings

Part of my bang_search.sublime-settings file:

"&g.ru": {
    "type": "qwant",
    "caption": "Google Russia"
},

Part of my User\Default (Windows).sublime-keymap file:

{
  "keys": ["ctrl+alt+shift+super+f5"],
  "command": "bang_search_input",
  "args": {"search_method": "&g.ru"}
},

Part of my Mini-scripts.ahk file:

#enter::
Send {WIN up}
Send {ENTER up}
Send !^+#{F5}

5. Steps to reproduce

The problem is reproduced for me in a version of Sublime Text without plugins and user settings.

I use @BladeMight method for change native Windows 10 hotkeys to custom hotkeys for Sublime Text. So far, the method worked for all Sublime Text plugins exclude Bang.

See my GIF. If I press Ctrl+Alt+Shift+Super+F5, command bang_search_input successfully run for me. If I press Super+Enter for bang_search command, command successfully run for me. But if I press Super+Enter for bang_search_input command, Bang quick panel quickly appears and disappears

I try change &g.ru, Ctrl+Alt+Shift+Super+F5 and Super+Enter to other values, but I get same behavior.

6. Environment

Operating system and version: Windows 10 Enterprise LTSB 64-bit EN Sublime Text: Build 3126 AutoHotkey: 1.1.24.04

Thanks.

bsoun commented 7 years ago

Hello, Unfortunately, I'm unable to reproduce, because I'm working only with linux at the moment. It seems that the input panel receive the Enter from your hotkey. Can you test these things

Kristinita commented 7 years ago

I find a problem. This conflict script add command: hide_panel {"cancel": true} after command: bang_search_input {"search_method": "&g.ru"} command.

Thanks. Sorry at an issue.